Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
0
In File:
com/itextpdf/text/pdf/XfaForm.java
In Method:
inverseSearchGlobal(ArrayList)
Code with Finding:
class XfaForm.Xml2Som {
public String inverseSearchGlobal(ArrayList<String> parts) {
if (parts.isEmpty())
return null;
InverseStore store = inverseSearch.get(parts.get(parts.size() - 1));
if (store == null)
return null;
for (int k = parts.size() - 2; k >= 0; --k) {
String part = parts.get(k);
int idx = store.part.indexOf(part);
if (idx < 0) {
if (store.isSimilar(part))
return null;
return store.getDefaultName();
}
store = (InverseStore)store.follow.get(idx);
}
return store.getDefaultName();
}
}