Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinayaksh42/flowanalysisarraylist
https://github.com/vinayaksh42/flowanalysisarraylist
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vinayaksh42/flowanalysisarraylist
- Owner: vinayaksh42
- Created: 2024-02-22T07:11:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-20T22:23:36.000Z (8 months ago)
- Last Synced: 2024-03-21T00:45:50.414Z (8 months ago)
- Language: Java
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Problem Statement:
Detecting if ArrayList is being used with or without emptiness check.
For example:
1. This is an unsafe usage of ArrayList:
```java
System.out.println(myList.get(0));
```
2. This is a safe usage of ArrayList:
```java
if (!myList.isEmpty()) {
System.out.println(myList.get(1));
}
```