Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
11
In File:
com/google/javascript/jscomp/CallGraph$1.java
In Method:
apply(Function)
Code with Finding:
class CallGraph {
public boolean apply(Function function) {
String functionName = function.getName();
// Anonymous functions will have null names,
// so it is important to handle that correctly here
if (functionName != null && desiredName != null) {
return desiredName.equals(functionName);
} else {
return desiredName == functionName;
}
}
}