Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vinayaksh42/flowanalysisarraylist


https://github.com/vinayaksh42/flowanalysisarraylist

Last synced: about 1 month ago
JSON representation

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));
}
```