lucene
1918
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
7
/home/eko/MUBench/MUBench/checkouts/lucene/1918/original-src/org/apache/lucene/store/RAMDirectory.java
fileExists(String)
class RAMDirectory { /** Returns true iff the named file exists in this directory. */ public final boolean fileExists(String name) { ensureOpen(); RAMFile file; synchronized (this) { file = (RAMFile)fileMap.get(name); } return file != null; } }
HashMap#get -> IF#CONTROL
IF#CONTROL
0.1
probably alternative pattern where it checked if(file !=null) and then returned it