Class MethodAnalysis
java.lang.Object
edu.umd.cs.findbugs.util.MethodAnalysis
Utility class for method analysis.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor to prevent instantiation, because it is a utility class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDuplicatedLocation(MethodDescriptor methodDescriptor, int pc) Check if the location is duplicated in the method.
-
Constructor Details
-
MethodAnalysis
private MethodAnalysis()Private constructor to prevent instantiation, because it is a utility class.
-
-
Method Details
-
isDuplicatedLocation
public static boolean isDuplicatedLocation(MethodDescriptor methodDescriptor, int pc) throws CheckedAnalysisException Check if the location is duplicated in the method. Locations in finally blocks will be duplicated in the bytecode level.- Returns:
trueif the location is duplicated in the method,falseotherwise- Throws:
CheckedAnalysisException- if an error occurs during the analysis
-