Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spotbugs/spotbugs
/ functions
Functions
19,706 in github.com/spotbugs/spotbugs
⨍
Functions
19,706
◇
Types & classes
5,132
↓ 95 callers
Method
matches
Determine whether given type matches this predicate. @param t a Type @return true if the Type matches, false otherwise
spotbugs/src/main/java/edu/umd/cs/findbugs/util/TypeMatcher.java:37
↓ 94 callers
Method
getTarget
Get the target vertex.
spotbugs/src/main/java/edu/umd/cs/findbugs/graph/GraphEdge.java:36
↓ 93 callers
Method
isPublic
Is the entity public?
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AccessibleEntity.java:50
↓ 92 callers
Method
entrySet
()
spotbugs/src/main/java/edu/umd/cs/findbugs/util/Bag.java:67
↓ 91 callers
Method
addArg
Add an argument to the JVM used to execute FindBugs. @param arg the argument
spotbugs-ant/src/main/java/edu/umd/cs/findbugs/anttask/AbstractFindBugsTask.java:383
↓ 91 callers
Method
getCFG
Get the CFG built by this object. Assumes that the build() method has already been called. @return the CFG
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/CFGBuilder.java:41
↓ 91 callers
Method
iterator
Return an Iterator over all the BugInstance objects in the BugCollection.
spotbugs/src/main/java/edu/umd/cs/findbugs/BugCollection.java:311
↓ 90 callers
Method
lastIndexOf
(Object o)
spotbugsTestCases/src/java/gcUnrelatedTypes/AllListsCouldBeEqual.java:82
↓ 89 callers
Method
assertBugInMethod
Asserts that there is a bug instance with the given bug type in the given class in the given method. The match is checked according to {@link BugInsta
spotbugs-tests/src/test/java/edu/umd/cs/findbugs/AbstractIntegrationTest.java:279
↓ 88 callers
Method
isEmpty
()
spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindUselessObjects.java:261
↓ 87 callers
Method
createXMethod
Create an XMethod object from a BCEL Method. @param className the class to which the Method belongs @param method the Method @r
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XFactory.java:240
↓ 87 callers
Method
getMethodDescriptor
@return the MethodDescriptor identifying this object
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XMethod.java:56
↓ 87 callers
Method
getOpcode
()
spotbugs/src/main/java/edu/umd/cs/findbugs/visitclass/DismantleBytecode.java:508
↓ 87 callers
Method
logException
Log an exception. @param e the exception @param message message describing how/why the exception occurred
eclipsePlugin/src/de/tobject/findbugs/FindbugsPlugin.java:542
↓ 87 callers
Method
size
(Map<String, Integer> map)
spotbugsTestCases/src/java/ghIssues/Issue1219.java:35
↓ 86 callers
Method
instanceOf
(@DottedClassName String dottedSubtype, @DottedClassName String dottedSupertype)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/ch/Subtypes2.java:184
↓ 86 callers
Method
pushValue
Work around some weirdness in BCEL (inherited from JVM Spec 1): BCEL considers long and double types to consume two slots on the stack. This method en
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/type/TypeFrameModelingVisitor.java:240
↓ 85 callers
Method
addOption
Add an option requiring an argument. @param option the option, must start with "-" @param argumentDesc brief (one or two word)
spotbugs/src/main/java/edu/umd/cs/findbugs/config/CommandLine.java:141
↓ 84 callers
Method
getHandle
Get the instruction handle.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Location.java:90
↓ 83 callers
Method
getBytes
(String s)
spotbugs/src/main/java/edu/umd/cs/findbugs/charsets/UTF8.java:106
↓ 83 callers
Method
hashCode
()
spotbugsTestCases/src/java/bugIdeas/Ideas_2009_07_26.java:26
↓ 81 callers
Method
getInstance
()
spotbugs/src/gui/main/edu/umd/cs/findbugs/gui2/MainFrame.java:166
↓ 81 callers
Method
isFinal
Is the entity final?
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AccessibleEntity.java:45
↓ 79 callers
Method
iterator
Get an iterator over the resources in the this code base. @return ICodeBaseIterator over the resources in the code base
spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/IScannableCodeBase.java:38
↓ 79 callers
Method
replace
(int stackOffset, Item value)
spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java:3288
↓ 78 callers
Method
reportMissingClass
file a ClassNotFoundException with the lookupFailureCallback @see #getLookupFailureCallback()
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AnalysisContext.java:298
↓ 78 callers
Method
size
()
spotbugs/src/gui/main/edu/umd/cs/findbugs/gui2/BugSet.java:413
↓ 77 callers
Method
getThisClass
Get the JavaClass object for the current or most recently visited class
spotbugs/src/main/java/edu/umd/cs/findbugs/visitclass/PreorderVisitor.java:531
↓ 74 callers
Method
addCalledMethod
(MethodDescriptor m)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XFactory.java:130
↓ 74 callers
Method
equals
(Object o)
spotbugs/src/gui/main/edu/umd/cs/findbugs/gui2/BugLeafNode.java:72
↓ 74 callers
Method
getNext
Get the next PatternElement.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/bcp/PatternElement.java:53
↓ 73 callers
Method
isEmpty
(String s)
eclipsePlugin/src/edu/umd/cs/findbugs/plugin/eclipse/quickfix/QuickFixesExtensionHelper.java:133
↓ 73 callers
Method
toArray
()
spotbugsTestCases/src/java/gcUnrelatedTypes/AllListsCouldBeEqual.java:142
↓ 73 callers
Method
toDottedClassName
Convert class name to dotted format. If the class name is already in dotted format, it is returned unmodified. @param className a class na
spotbugs/src/main/java/edu/umd/cs/findbugs/util/ClassName.java:130
↓ 72 callers
Method
accept
Accept a BugAnnotationVisitor. @param visitor the visitor to accept
spotbugs/src/main/java/edu/umd/cs/findbugs/BugAnnotation.java:49
↓ 72 callers
Method
getRegisterNumber
()
spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java:835
↓ 72 callers
Method
getType
Get the type of edge.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Edge.java:86
↓ 71 callers
Method
getTopValue
Get the value on the top of the Java operand stack. @throws DataflowAnalysisException if the Java operand stack is empty
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Frame.java:207
↓ 70 callers
Method
addString
Add a String annotation. @param value the String value @return this object
spotbugs/src/main/java/edu/umd/cs/findbugs/BugInstance.java:1580
↓ 70 callers
Method
debug
(BasicBlock bb, String msg)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Dataflow.java:461
↓ 70 callers
Method
put
(T1 key, T2 value)
spotbugsTestCases/src/java/sfBugs/Bug1923609.java:103
↓ 68 callers
Method
log
(String msg, Exception e)
spotbugsTestCases/src/java/findbugsDiscuss/Bug20070301.java:69
↓ 67 callers
Method
add
(@Nonnull BugAnnotation annotation)
spotbugs/src/main/java/edu/umd/cs/findbugs/BugInstance.java:2129
↓ 67 callers
Method
equals
(Object obj)
spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/analysis/EnumValue.java:51
↓ 67 callers
Method
split
(String signature, boolean skipInitialAngleBracket)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/generic/GenericUtilities.java:449
↓ 66 callers
Method
addClass
Add a class annotation. If this is the first class annotation added, it becomes the primary class annotation. @param className the name of
spotbugs/src/main/java/edu/umd/cs/findbugs/BugInstance.java:957
↓ 66 callers
Method
isPrivate
Is the entity private?
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AccessibleEntity.java:60
↓ 66 callers
Method
reportAccumulatedBugs
Reports accumulated bug instances to the {@link BugReporter} and clears itself.
spotbugs/src/main/java/edu/umd/cs/findbugs/BugPcMap.java:65
↓ 65 callers
Method
addAttribute
Add a single attribute name and value. @param name the attribute name @param value the attribute value @return this object (so
spotbugs/src/main/java/edu/umd/cs/findbugs/xml/XMLAttributeList.java:75
↓ 65 callers
Method
entrySet
()
spotbugsTestCases/src/java/bugIdeas/Ideas_2010_06_01.java:26
↓ 65 callers
Method
getFrame
Get the frame. @return the Frame object
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java:117
↓ 65 callers
Method
showMessageDialog
(String message)
spotbugs/src/main/java/edu/umd/cs/findbugs/IGuiCallback.java:37
↓ 63 callers
Method
getMessage
Format a string describing this bug instance. @return the description
spotbugs/src/main/java/edu/umd/cs/findbugs/BugInstance.java:1892
↓ 63 callers
Method
getSource
@return the Source attribute
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XClass.java:78
↓ 63 callers
Method
put
Put an array of {@link ValueNumber} for an {@link AvailableLoad} and update the reverse map
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/vna/ValueNumberFrame.java:738
↓ 62 callers
Method
addSwitch
Add a command line switch. This method is for adding options that do not require an argument. @param option the option, must start with "-
spotbugs/src/main/java/edu/umd/cs/findbugs/config/CommandLine.java:99
↓ 62 callers
Method
equals
(Object obj)
spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindNoSideEffectMethods.java:212
↓ 62 callers
Method
getBugPattern
Get the BugPattern.
spotbugs/src/main/java/edu/umd/cs/findbugs/BugInstance.java:315
↓ 62 callers
Method
getPC
()
spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java:342
↓ 62 callers
Method
getProperty
@param name property name @return string value (or null if the property does not exist)
spotbugs/src/main/java/edu/umd/cs/findbugs/SystemProperties.java:194
↓ 62 callers
Method
instance
Get the singleton instance of the DescriptorFactory. @return the singleton instance of the DescriptorFactory
spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/DescriptorFactory.java:77
↓ 61 callers
Method
isValid
Is the frame valid (meaning it is not TOP or BOTTOM)?
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Frame.java:164
↓ 60 callers
Method
getXMethod
()
spotbugs/src/main/java/edu/umd/cs/findbugs/visitclass/PreorderVisitor.java:467
↓ 60 callers
Method
lookupClass
Look up a class from the classpath. @param className name of class to look up @return the JavaClass object for the class @throws ClassNotF
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/URLClassPath.java:413
↓ 59 callers
Method
hashCode
()
spotbugsTestCases/src/java/sfBugsNew/Bug1244.java:13
↓ 59 callers
Method
put
(ClassAnnotation c, EqualsKindSummary.KindOfEquals k)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/EqualsKindSummary.java:44
↓ 59 callers
Method
readLine
(BufferedReader reader)
spotbugsTestCases/src/java/suppression/Issue641.java:34
↓ 59 callers
Method
size
()
eclipsePlugin/src/de/tobject/findbugs/view/explorer/BugGroup.java:117
↓ 58 callers
Method
getSpecialKind
@return Returns the specialKind.
spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java:877
↓ 58 callers
Method
getValue
Given a ClassDescriptor/value pair, return the interned TypeQualifierValue representing that pair. @param desc a ClassDescriptor denoting
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/jsr305/TypeQualifierValue.java:270
↓ 58 callers
Method
toSlashedClassName
Convert class name to slashed format. If the class name is already in slashed format, it is returned unmodified. @param className a class
spotbugs/src/main/java/edu/umd/cs/findbugs/util/ClassName.java:113
↓ 57 callers
Method
assertNoBugInMethod
Asserts that there are exactly zero bug instances with the given bug type in the given class in the given method. The match is checked according to {@
spotbugs-tests/src/test/java/edu/umd/cs/findbugs/AbstractIntegrationTest.java:243
↓ 57 callers
Method
getClassContext
Get the ClassContext for a class. @param javaClass the class @return the ClassContext for that class
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AnalysisContext.java:855
↓ 57 callers
Method
getMethodAnalysis
Get an analysis of the given method. @param <E> the type of the analysis (e.g., FoobarAnalysis) @param analysisClass the analys
spotbugs/src/main/java/edu/umd/cs/findbugs/classfile/IAnalysisCache.java:106
↓ 57 callers
Method
getType
()
eclipsePlugin/src/de/tobject/findbugs/view/explorer/BugGroup.java:216
↓ 57 callers
Method
setSpecialKind
@param specialKind The specialKind to set.
spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java:864
↓ 56 callers
Method
addField
(XField field)
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/heap/FieldSet.java:71
↓ 56 callers
Method
getMethodSig
()
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/CFG.java:198
↓ 56 callers
Method
getSubtypes2
Get the Subtypes2 inheritance hierarchy database.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/AnalysisContext.java:1025
↓ 56 callers
Method
isEmpty
()
spotbugsTestCases/src/java/sfBugs/RFE3364649.java:6
↓ 55 callers
Method
match
Determine whether or not the given BugInstance has the feature this Matcher tests for. @param bugInstance the BugInstance @return true if
spotbugs/src/main/java/edu/umd/cs/findbugs/filter/Matcher.java:41
↓ 54 callers
Method
locationIterator
Get an Iterator over the Locations in the control flow graph.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/CFG.java:317
↓ 53 callers
Method
checkToken
(JAIFScanner scanner, String lexeme, JAIFTokenKind kind)
spotbugs-tests/src/test/java/edu/umd/cs/findbugs/jaif/JAIFScannerTest.java:34
↓ 53 callers
Method
getNumber
()
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/vna/ValueNumber.java:106
↓ 53 callers
Method
remove
()
spotbugs/src/main/java/edu/umd/cs/findbugs/SelfCalls.java:142
↓ 53 callers
Method
start
Return true if a new scanner should be created starting at this instruction, false otherwise.
spotbugs/src/main/java/edu/umd/cs/findbugs/InstructionScannerGenerator.java:35
↓ 52 callers
Method
checkNotNull
(String string)
spotbugsTestCases/src/java/com/google/errorprone/bugpatterns/PreconditionsCheckNotNullNegativeCase1.java:25
↓ 52 callers
Method
getNumSlots
Get the number of slots (locals plus stack values).
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/Frame.java:493
↓ 52 callers
Method
getXClass
Get the XClass object providing information about the class named by the given ClassDescriptor. @param classDescriptor a ClassDescriptor @
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/XFactory.java:661
↓ 52 callers
Method
getXField
()
spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindRefComparison.java:266
↓ 52 callers
Method
keySet
()
spotbugsTestCases/src/java/sfBugs/Bug1830576.java:10
↓ 52 callers
Method
values
()
spotbugs/src/main/java/edu/umd/cs/findbugs/filter/RelationalOp.java:50
↓ 51 callers
Method
addCheckedCall
(@DottedClassName String className, String methodName, String sig, int argumentParameterIndex, int
spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindUnrelatedTypesInGenericContainer.java:142
↓ 51 callers
Method
assertBugExactly
(String bugType, String clazz, String method, String view)
spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/FindImproperSynchronizationWithAccessibleBackingCollectionsTest.java:293
↓ 51 callers
Method
forEach
Consume each reporter one by one, and throw an exception if some of them. @param consumer Operation to handle each reporter.
spotbugs/src/main/java/edu/umd/cs/findbugs/BugReportDispatcher.java:126
↓ 51 callers
Method
getLogger
()
spotbugsTestCases/src/java/npe/LoggerFalsePositive.java:11
↓ 51 callers
Method
getPackageName
Get the (dotted) name of the package in which the entity is defined.
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/ClassMember.java:46
↓ 50 callers
Method
equals
(Object obj)
spotbugsTestCases/src/java/sfBugsNew/Bug1244.java:18
↓ 50 callers
Method
getConstantPoolGen
Get the ConstantPoolGen used to create the MethodGens for this class. @return the ConstantPoolGen
spotbugs/src/main/java/edu/umd/cs/findbugs/ba/ClassContext.java:312
↓ 50 callers
Method
getInstance
()
spotbugs/src/gui/main/edu/umd/cs/findbugs/gui2/GUISaveState.java:150
← previous
next →
101–200 of 19,706, ranked by callers