Uses of Class
edu.umd.cs.findbugs.ba.Location
Packages that use Location
Package
Description
Main package for the FindBugs application - contains the engine class
(
FindBugs), the object model classes for bug
instances (BugInstance,
BugAnnotation), and other miscellany.A bytecode analysis framework for BCEL, providing CFG construction, generic
dataflow analysis, and a variety of specific dataflow analyses.
Support for analyzing code containing JSR-305 type qualifier annotations.
Support for analyses based on the BCEL bytecode framework.
-
Uses of Location in edu.umd.cs.findbugs
Fields in edu.umd.cs.findbugs declared as LocationModifier and TypeFieldDescriptionprivate final LocationCallSite.locationprivate final LocationResourceCreationPoint.locationLocation in the method where the resource is created.Fields in edu.umd.cs.findbugs with type parameters of type LocationMethods in edu.umd.cs.findbugs that return LocationModifier and TypeMethodDescriptionCallSite.getLocation()Get the Location (basic block and instruction) where the call site is located.ResourceCreationPoint.getLocation()Get the location where the resource is created.Methods in edu.umd.cs.findbugs with parameters of type LocationModifier and TypeMethodDescriptionvoidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) voidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, Location location) voidResourceCollection.addCreatedResource(Location location, Resource resource) Add a resource created within the analyzed method.BugInstance.addSomeSourceForTopTwoStackValues(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) BugInstance.addSourceForTopStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) BugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add source line annotation for given Location in a method.BugInstance.addSourceLine(MethodDescriptor methodDescriptor, Location location) Add source line annotation for given Location in a method.static SourceLineAnnotationSourceLineAnnotation.fromVisitedInstruction(ClassContext classContext, org.apache.bcel.classfile.Method method, Location loc) Create from Method and Location in a visited class.static SourceLineAnnotationSourceLineAnnotation.fromVisitedInstruction(MethodDescriptor methodDescriptor, Location location) Create from MethodDescriptor and Location of visited instruction.ResourceCollection.getCreatedResource(Location location) Get the resource that is created at given location.static LocalVariableAnnotationLocalVariableAnnotation.getLocalVariableAnnotation(org.apache.bcel.classfile.Method method, Location location, org.apache.bcel.generic.IndexedInstruction ins) static BugAnnotationBugInstance.getSomeSource(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, OpcodeStack stack, int stackPos) static BugAnnotationBugInstance.getSourceForStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int depth) static BugAnnotationBugInstance.getSourceForTopStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) booleanSwitchHandler.isTypeSwitchCaseLoad(Location location) In type switches anASTOREis inserted by the compiler for each case.Constructors in edu.umd.cs.findbugs with parameters of type LocationModifierConstructorDescriptionResourceCreationPoint(Location location, String resourceClass) Constructor. -
Uses of Location in edu.umd.cs.findbugs.ba
Classes in edu.umd.cs.findbugs.ba that implement interfaces with type arguments of type LocationModifier and TypeClassDescriptionprivate classAn Iterator over the Locations in the CFG.classA class representing a location in the CFG for a method.Fields in edu.umd.cs.findbugs.ba declared as LocationModifier and TypeFieldDescriptionprivate LocationAbstractFrameModelingVisitor.locationprivate LocationCFG.LocationIterator.nextFields in edu.umd.cs.findbugs.ba with type parameters of type LocationModifier and TypeFieldDescriptionLockChecker.cacheCompactLocationNumbering.locationToNumberMapCompactLocationNumbering.numberToLocationMapMethods in edu.umd.cs.findbugs.ba that return LocationModifier and TypeMethodDescriptionCFG.getExceptionThrowerLocation(Edge exceptionEdge) Get the Location where exception(s) thrown on given exception edge are thrown.static LocationLocation.getFirstLocation(BasicBlock basicBlock) static LocationLocation.getLastLocation(BasicBlock basicBlock) AbstractFrameModelingVisitor.getLocation()Get the Location.CompactLocationNumbering.getLocation(int number) Get the Location given its number.CFG.getLocationAtEntry()Get the Location representing the entry to the CFG.CFG.getPreviousLocation(Location loc) CFG.LocationIterator.next()Methods in edu.umd.cs.findbugs.ba that return types with arguments of type LocationModifier and TypeMethodDescriptionCFG.getLocationsContainingInstructionWithOffset(int offset) Get a Collection of Locations which specify the instruction at given bytecode offset.CFG.locationIterator()Get an Iterator over the Locations in the control flow graph.CFG.locations()Get an Iterator over the Locations in the control flow graph.CFG.orderedLocations()Returns a collection of locations, ordered according to the compareTo ordering over locations.Methods in edu.umd.cs.findbugs.ba with parameters of type LocationModifier and TypeMethodDescriptionintAbstractDataflowAnalysis.getFactAfterLocation(Location location) Get the dataflow fact representing the point just after given Location.BasicAbstractDataflowAnalysis.getFactAfterLocation(Location location) Get the dataflow fact representing the point just after given Location.Dataflow.getFactAfterLocation(Location location) Get the dataflow fact representing the point just after given Location.DataflowAnalysis.getFactAfterLocation(Location location) Get the dataflow fact representing the point just after given Location.AbstractDataflowAnalysis.getFactAtLocation(Location location) Get the dataflow fact representing the point just before given Location.BasicAbstractDataflowAnalysis.getFactAtLocation(Location location) Get dataflow fact at (just before) given Location.Dataflow.getFactAtLocation(Location location) Get dataflow fact at (just before) given Location.DataflowAnalysis.getFactAtLocation(Location location) Get dataflow fact at (just before) given Location.LockChecker.getFactAtLocation(Location location) Get LockSet at given Location.intGet the number of given Location, which will be a non-negative integer in the range 0..getSize() - 1.CFG.getPreviousLocation(Location loc) voidAbstractFrameModelingVisitor.setFrameAndLocation(FrameType frame, Location location) Set the frame and Location for the instruction about to be modeled. -
Uses of Location in edu.umd.cs.findbugs.ba.bcp
Methods in edu.umd.cs.findbugs.ba.bcp with parameters of type LocationModifier and TypeMethodDescriptionprivate MatchResultPatternMatcher.State.matchLocation(Location location) -
Uses of Location in edu.umd.cs.findbugs.ba.deref
Fields in edu.umd.cs.findbugs.ba.deref with type parameters of type LocationModifier and TypeFieldDescriptionprivate final Map<ValueNumber, Set<Location>> UnconditionalValueDerefSet.derefLocationSetMapMap of value numbers to locationsMethods in edu.umd.cs.findbugs.ba.deref that return types with arguments of type LocationModifier and TypeMethodDescriptionUnconditionalValueDerefSet.getDerefLocationSet(int vn) UnconditionalValueDerefSet.getDerefLocationSet(ValueNumber vn) Get the set of dereference Locations for given value number.UnconditionalValueDerefSet.getUnconditionalDerefLocationSet(ValueNumber vn) Get the set of Locations where given value is guaranteed to be dereferenced.Methods in edu.umd.cs.findbugs.ba.deref with parameters of type LocationModifier and TypeMethodDescriptionvoidUnconditionalValueDerefSet.addDeref(ValueNumber vn, Location location) Mark a value as being dereferenced at given Location.static Set<ValueNumber> UnconditionalValueDerefAnalysis.checkAllNonNullParams(Location location, ValueNumberFrame vnaFrame, org.apache.bcel.generic.ConstantPoolGen constantPool, org.apache.bcel.classfile.Method method, IsNullValueDataflow invDataflow, TypeDataflow typeDataflow) private voidUnconditionalValueDerefAnalysis.checkInstance(Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) Check to see if the instruction has a null check associated with it, and if so, add a dereference.private voidUnconditionalValueDerefAnalysis.checkNonNullParams(Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) If this is a method call instruction, check to see if any of the parameters are @NonNull, and treat them as dereferences.static Set<ValueNumber> UnconditionalValueDerefAnalysis.checkNonNullParams(Location location, ValueNumberFrame vnaFrame, org.apache.bcel.generic.ConstantPoolGen constantPool, org.apache.bcel.classfile.Method method, IsNullValueFrame invFrame) private voidUnconditionalValueDerefAnalysis.checkNonNullPutField(Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) If this is a putfield or putstatic instruction, check to see if the field is @NonNull, and treat it as dereferences.private voidUnconditionalValueDerefAnalysis.checkNonNullReturnValue(XMethod thisMethod, Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) If this is a method call instruction, check to see if any of the parameters are @NonNull, and treat them as dereferences.private voidUnconditionalValueDerefAnalysis.checkUnconditionalDerefDatabase(Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) Check method call at given location to see if it unconditionally dereferences a parameter.static Set<ValueNumber> UnconditionalValueDerefAnalysis.checkUnconditionalDerefDatabase(Location location, ValueNumberFrame vnaFrame, org.apache.bcel.generic.ConstantPoolGen constantPool, IsNullValueFrame invFrame, TypeDataflow typeDataflow) voidUnconditionalValueDerefSet.cleanDerefSet(Location location, ValueNumberFrame vnaFrame) private voidUnconditionalValueDerefAnalysis.handleNullCheck(Location location, ValueNumberFrame vnaFrame, UnconditionalValueDerefSet fact) static booleanUnconditionalValueDerefAnalysis.reportPotentialDereference(Location location, IsNullValueFrame invFrame) Method parameters in edu.umd.cs.findbugs.ba.deref with type arguments of type LocationModifier and TypeMethodDescriptionvoidUnconditionalValueDerefSet.setDerefSet(ValueNumber vn, Set<Location> derefSet) Set a value as being unconditionally dereferenced at the given set of locations. -
Uses of Location in edu.umd.cs.findbugs.ba.jsr305
Fields in edu.umd.cs.findbugs.ba.jsr305 declared as LocationFields in edu.umd.cs.findbugs.ba.jsr305 with type parameters of type LocationModifier and TypeFieldDescriptionprivate final Map<Location, Set<SourceSinkInfo>> TypeQualifierDataflowAnalysis.sourceSinkMapMethods in edu.umd.cs.findbugs.ba.jsr305 that return LocationMethods in edu.umd.cs.findbugs.ba.jsr305 with parameters of type LocationModifier and TypeMethodDescriptionTypeQualifierDataflowAnalysis.getSourceSinkInfoSet(Location location) Get the set of SourceSinkInfo objects representing sources/sinks at a given Location.private voidBackwardTypeQualifierDataflowAnalysis.modelArguments(Location location) private voidBackwardTypeQualifierDataflowAnalysis.modelFieldStore(Location location) private voidBackwardTypeQualifierDataflowAnalysis.modelReturn(TypeQualifierAnnotation returnValueAnnotation, Location location) private voidForwardTypeQualifierDataflowAnalysis.registerConstantPushSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerConstantSource(Location location, Object constantValue) private voidForwardTypeQualifierDataflowAnalysis.registerFieldLoadSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerLDC2ValueSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerLDCValueSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerOtherSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerPushNullSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerReturnValueSource(Location location) private voidForwardTypeQualifierDataflowAnalysis.registerTopOfStackSource(SourceSinkType sourceSinkType, Location location, javax.annotation.meta.When when, boolean interproc, Object constantValue) Constructors in edu.umd.cs.findbugs.ba.jsr305 with parameters of type LocationModifierConstructorDescriptionSourceSinkInfo(SourceSinkType type, Location location, ValueNumber vn, javax.annotation.meta.When when) Constructor. -
Uses of Location in edu.umd.cs.findbugs.ba.npe
Fields in edu.umd.cs.findbugs.ba.npe declared as LocationModifier and TypeFieldDescriptionprivate final LocationLocationWhereValueBecomesNull.locationfinal LocationRedundantBranch.locationprivate final LocationIsNullValue.locationOfKaBoomFields in edu.umd.cs.findbugs.ba.npe with type parameters of type LocationMethods in edu.umd.cs.findbugs.ba.npe that return LocationModifier and TypeMethodDescriptionLocationWhereValueBecomesNull.getLocation()IsNullValue.getLocationOfKaBoom()Methods in edu.umd.cs.findbugs.ba.npe that return types with arguments of type LocationModifier and TypeMethodDescriptionNullDerefAndRedundantComparisonFinder.findNullAssignments(Set<LocationWhereValueBecomesNull> locationWhereValueBecomesNullSet) NullValueUnconditionalDeref.getDerefLocationSet()Methods in edu.umd.cs.findbugs.ba.npe with parameters of type LocationModifier and TypeMethodDescriptionvoidUsagesRequiringNonNullValues.add(Location loc, ValueNumber vn, PointerUsageRequiringNonNullValue usage) private voidNullDerefAndRedundantComparisonFinder.checkForUnconditionallyDereferencedNullValues(Location thisLocation, Map<ValueNumber, SortedSet<Location>> knownNullAndDoomedAt, Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap, ValueNumberFrame vnaFrame, IsNullValueFrame invFrame, UnconditionalValueDerefSet derefSet, boolean isEdge) Check for unconditionally dereferenced null values at a particular location in the CFG.static BugAnnotationNullDerefAndRedundantComparisonFinder.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) Deprecated.static FieldAnnotationNullDerefAndRedundantComparisonFinder.findFieldAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) static LocalVariableAnnotationNullDerefAndRedundantComparisonFinder.findLocalAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) static XFieldNullDerefAndRedundantComparisonFinder.findXFieldFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) Deprecated.voidNullDerefAndRedundantComparisonCollector.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame) voidNullDerefAndRedundantComparisonCollector.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame, boolean isConsistent) Subclasses should override this method to capture locations where a null pointer is dereferenced.voidNullDerefAndRedundantComparisonCollector.foundRedundantNullCheck(Location location, RedundantBranch redundantBranch) Subclasses should override this method to capture locations where a redundant null comparison is performed.UsagesRequiringNonNullValues.get(Location loc, ValueNumber vn, ValueNumberDataflow vnaDataflow) static IsNullValueIsNullValue.noKaboomNonNullValue(Location ins) Get the instance representing a value known to be non-null because a NPE would have occurred if it were null.private voidNullDerefAndRedundantComparisonFinder.noteUnconditionallyDereferencedNullValue(Location thisLocation, Map<ValueNumber, SortedSet<Location>> bugLocations, Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap, UnconditionalValueDerefSet derefSet, IsNullValue isNullValue, ValueNumber valueNumber) Note the locations where a known-null value is unconditionally dereferenced.Method parameters in edu.umd.cs.findbugs.ba.npe with type arguments of type LocationModifier and TypeMethodDescriptionvoidNullValueUnconditionalDeref.add(IsNullValue isNullValue, Set<Location> unconditionalDerefLocationSet) private voidNullDerefAndRedundantComparisonFinder.checkForUnconditionallyDereferencedNullValues(Location thisLocation, Map<ValueNumber, SortedSet<Location>> knownNullAndDoomedAt, Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap, ValueNumberFrame vnaFrame, IsNullValueFrame invFrame, UnconditionalValueDerefSet derefSet, boolean isEdge) Check for unconditionally dereferenced null values at a particular location in the CFG.voidNullDerefAndRedundantComparisonCollector.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) Subclasses should override this method to capture values assigned null (or that become null through a comparison and branch) that are guaranteed to reach a dereference (ignoring implicit exception paths).voidNullDerefAndRedundantComparisonCollector.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) Subclasses should override this method to capture values assigned null (or that become null through a comparison and branch) that are guaranteed to reach a dereference (ignoring implicit exception paths).private voidNullDerefAndRedundantComparisonFinder.noteUnconditionallyDereferencedNullValue(Location thisLocation, Map<ValueNumber, SortedSet<Location>> bugLocations, Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap, UnconditionalValueDerefSet derefSet, IsNullValue isNullValue, ValueNumber valueNumber) Note the locations where a known-null value is unconditionally dereferenced.private voidNullDerefAndRedundantComparisonFinder.removeStrictlyDominatedLocations(Set<Location> locations, DominatorsAnalysis domAnalysis) private voidNullDerefAndRedundantComparisonFinder.removeStrictlyPostDominatedLocations(Set<Location> locations, PostDominatorsAnalysis postDomAnalysis) Constructors in edu.umd.cs.findbugs.ba.npe with parameters of type LocationModifierConstructorDescriptionprivateIsNullValue(int kind, Location ins) LocationWhereValueBecomesNull(Location location, ValueNumber valueNumber) Constructor.RedundantBranch(Location location, int lineNumber, IsNullValue firstValue) Constructor.RedundantBranch(Location location, int lineNumber, IsNullValue firstValue, IsNullValue secondValue) Constructor. -
Uses of Location in edu.umd.cs.findbugs.ba.type
Fields in edu.umd.cs.findbugs.ba.type declared as LocationConstructors in edu.umd.cs.findbugs.ba.type with parameters of type LocationModifierConstructorDescription(package private)LocationAndFactPair(Location location, TypeFrame frame) -
Uses of Location in edu.umd.cs.findbugs.ba.vna
Fields in edu.umd.cs.findbugs.ba.vna with type parameters of type LocationModifier and TypeFieldDescriptionprivate final HashMap<Location, ValueNumberFrame> ValueNumberAnalysis.factAfterLocationMapprivate final HashMap<Location, ValueNumberFrame> ValueNumberAnalysis.factAtLocationMapMethods in edu.umd.cs.findbugs.ba.vna with parameters of type LocationModifier and TypeMethodDescriptionstatic BugAnnotationValueNumberSourceInfo.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static FieldAnnotationValueNumberSourceInfo.findFieldAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) static LocalVariableAnnotationValueNumberSourceInfo.findLocalAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) static BugAnnotationValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static XFieldValueNumberSourceInfo.findXFieldFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) ValueNumberAnalysis.getFactAfterLocation(Location location) ValueNumberAnalysis.getFactAtLocation(Location location) static BugAnnotationValueNumberSourceInfo.getFromValueNumber(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int stackPos) -
Uses of Location in edu.umd.cs.findbugs.classfile.engine.bcel
Fields in edu.umd.cs.findbugs.classfile.engine.bcel declared as LocationModifier and TypeFieldDescriptionprivate final LocationValueRangeAnalysisFactory.RedundantCondition.deadCodeLocationprivate final LocationValueRangeAnalysisFactory.RedundantCondition.liveCodeLocationprivate final LocationValueRangeAnalysisFactory.RedundantCondition.locationMethods in edu.umd.cs.findbugs.classfile.engine.bcel that return LocationModifier and TypeMethodDescriptionValueRangeAnalysisFactory.RedundantCondition.getDeadCodeLocation()ValueRangeAnalysisFactory.RedundantCondition.getLiveCodeLocation()private static LocationValueRangeAnalysisFactory.getLocation(BasicBlock block) ValueRangeAnalysisFactory.RedundantCondition.getLocation()Constructors in edu.umd.cs.findbugs.classfile.engine.bcel with parameters of type Location -
Uses of Location in edu.umd.cs.findbugs.detect
Fields in edu.umd.cs.findbugs.detect declared as LocationModifier and TypeFieldDescription(package private) LocationFindUselessObjects.ValueInfo.created(package private) LocationFindUselessObjects.RegularLocation.loc(package private) final LocationFindRefComparison.WarningWithProperties.locationprivate LocationStreamFrameModelingVisitor.locationprivate LocationStream.openLocationfinal LocationStreamEscape.targetFields in edu.umd.cs.findbugs.detect with type parameters of type LocationModifier and TypeFieldDescriptionStreamResourceTracker.streamOpenLocationMapMap of locations where streams are opened to the actual Stream objects.Methods in edu.umd.cs.findbugs.detect that return LocationModifier and TypeMethodDescription(package private) LocationFindNullDerefsInvolvingNonShortCircuitEvaluation.findLocation(CFG cfg, int pc) (package private) LocationFindNullDerefsInvolvingNonShortCircuitEvaluation.findLocation(CFG cfg, org.apache.bcel.generic.InstructionHandle handle) private LocationCheckTypeQualifiers.getEdgeSourceLocation(CFG cfg, Edge edge) private LocationCheckTypeQualifiers.getEdgeTargetLocation(CFG cfg, Edge edge) Stream.getOpenLocation()private LocationFindSqlInjection.getPreviousLocation(CFG cfg, Location startLocation, boolean skipNops) private LocationCheckTypeQualifiers.getSinkLocation(SourceSinkInfo sourceSinkInfo) private LocationCheckTypeQualifiers.getSinkLocation(Iterable<? extends SourceSinkInfo> info) private LocationFindSqlInjection.getValueNumberCreationLocation(ValueNumberDataflow vnd, ValueNumber vn) Methods in edu.umd.cs.findbugs.detect with parameters of type LocationModifier and TypeMethodDescriptionprivate voidFindNullDeref.addParamAnnotations(Location location, BitSet definitelyNullArgSet, BitSet violatedParamSet, WarningPropertySet<? super NullArgumentWarningProperty> propertySet, BugInstance warning) voidStreamResourceTracker.addStreamEscape(Stream source, Location target) Indicate that a stream escapes at the given target Location.voidStreamResourceTracker.addStreamOpenLocation(Location streamOpenLocation, Stream stream) Indicate that a stream is constructed at this Location.(package private) booleanFindNullDeref.callToAssertionMethod(Location loc) static booleanFindNullDeref.catchesNull(org.apache.bcel.classfile.ConstantPool constantPool, org.apache.bcel.classfile.Code code, Location location) private voidFindRefComparison.checkEqualsComparison(Location location, org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, org.apache.bcel.generic.ConstantPoolGen cpg, TypeDataflow typeDataflow) private voidCheckTypeQualifiers.checkForConflictingValues(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private voidCheckTypeQualifiers.checkForEqualityTest(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, Location loc, ValueNumberFrame factAtLocation) private voidFindSelfComparison2.checkForSelfOperation(ClassContext classContext, Location location, ValueNumberDataflow valueNumberDataflow, String op, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, String sourceFile) private voidFindNullDeref.checkNonNullParam(Location location, org.apache.bcel.generic.ConstantPoolGen cpg, TypeDataflow typeDataflow, org.apache.bcel.generic.InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) We have a method invocation in which a possibly or definitely null parameter is passed.private voidFindRefComparison.checkRefComparison(Location location, org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, FindRefComparison.RefComparisonTypeFrameModelingVisitor visitor, TypeDataflow typeDataflow, List<FindRefComparison.WarningWithProperties> stringComparisonList, List<FindRefComparison.WarningWithProperties> refComparisonList) private voidFindNullDeref.checkUnconditionallyDereferencedParam(Location location, org.apache.bcel.generic.ConstantPoolGen cpg, TypeDataflow typeDataflow, org.apache.bcel.generic.InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) AnyMethodReturnValueStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) InstanceFieldLoadStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) IOStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) MethodReturnValueStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) StaticFieldLoadStreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) StreamFactory.createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) Determine if a Stream is created at given location.private voidFindNullDeref.decorateWarning(Location location, WarningPropertySet<WarningProperty> propertySet, BugInstance warning) private voidCheckTypeQualifiers.emitDataflowWarning(XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, ValueNumber vn, FlowValue forward, FlowValue backward, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) private voidCheckTypeQualifiers.emitSourceWarning(String bugType, XMethod xMethod, TypeQualifierValue<?> typeQualifierValue, FlowValue backwardsFlowValue, TypeQualifierValueSet backwardsFact, SourceSinkInfo source, ValueNumber vn, Location location) private voidFindNullDeref.examineCallSite(Location location, org.apache.bcel.generic.ConstantPoolGen cpg, TypeDataflow typeDataflow) private voidFindNullDeref.examinePutfieldInstruction(Location location, org.apache.bcel.generic.PUTFIELD ins, org.apache.bcel.generic.ConstantPoolGen cpg) private voidFindNullDeref.examineReturnInstruction(Location location) voidFindNullDeref.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame) Deprecated.voidFindNullDeref.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame, boolean isConsistent) voidNoiseNullDeref.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame) Deprecated.voidNoiseNullDeref.foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue, ValueNumberFrame vnaFrame, boolean isConsistent) voidFindNullDeref.foundRedundantNullCheck(Location location, RedundantBranch redundantBranch) voidNoiseNullDeref.foundRedundantNullCheck(Location location, RedundantBranch redundantBranch) private StringFindNullDeref.getDescription(Location loc, ValueNumber refValue) (package private) StringNoiseNullDeref.getDescription(Location loc, ValueNumber refValue) private LocationFindSqlInjection.getPreviousLocation(CFG cfg, Location startLocation, boolean skipNops) (package private) BugAnnotationFindNullDeref.getVariableAnnotation(Location location) private voidFindRefComparison.handleStringComparison(org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, FindRefComparison.RefComparisonTypeFrameModelingVisitor visitor, List<FindRefComparison.WarningWithProperties> stringComparisonList, Location location, org.apache.bcel.generic.Type lhsType, org.apache.bcel.generic.Type rhsType) private voidFindRefComparison.handleSuspiciousRefComparison(org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, List<FindRefComparison.WarningWithProperties> refComparisonList, Location location, String lhs, org.apache.bcel.generic.ReferenceType lhsType, org.apache.bcel.generic.ReferenceType rhsType, Optional<Integer> priorityOverride) (package private) booleanNoiseNullDeref.inCatchNullBlock(Location loc) private booleanFindNullDeref.inExplicitCatchNullBlock(Location loc) private booleanFindNullDeref.inIndirectCatchNullBlock(Location loc) private voidFindRefComparison.inspectLocation(org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.MethodGen methodGen, LinkedList<FindRefComparison.WarningWithProperties> refComparisonList, LinkedList<FindRefComparison.WarningWithProperties> stringComparisonList, FindRefComparison.RefComparisonTypeFrameModelingVisitor visitor, TypeDataflow typeDataflow, Location location) private booleanFindSqlInjection.isConstantStringLoad(Location location, org.apache.bcel.generic.ConstantPoolGen cpg) private booleanprivate booleanprivate booleanIs instruction at given location a load?private booleanFindSqlInjection.isSafeValue(Location location, org.apache.bcel.generic.ConstantPoolGen cpg) private booleanIs instruction at given location a store?private booleanStreamResourceTracker.isStreamOpenLocation(Location location) Determine if given Location is a stream open location point.private voidFindNullDeref.reportNullDeref(WarningPropertySet<WarningProperty> propertySet, Location location, String type, int priority, BugAnnotation variable) private voidNoiseNullDeref.reportNullDeref(WarningPropertySet<WarningProperty> propertySet, Location location, String type, int priority, BugAnnotation cause, BugAnnotation variable) private booleanFindNullDeref.safeCallToPrimateParseMethod(XMethod calledMethod, Location location) voidStream.setOpenLocation(Location openLocation) FindSqlInjection.updateJava9AndAboveStringAppendState(ClassContext ctx, Location location, org.apache.bcel.generic.ConstantPoolGen cpg, FindSqlInjection.StringAppendState stringAppendState) FindSqlInjection.updateStringAppendState(Location location, org.apache.bcel.generic.ConstantPoolGen cpg, FindSqlInjection.StringAppendState stringAppendState) voidFindTwoLockWait.visitLocation(ClassContext classContext, Location location, org.apache.bcel.generic.MethodGen methodGen, LockDataflow dataflow) Method parameters in edu.umd.cs.findbugs.detect with type arguments of type LocationModifier and TypeMethodDescriptionprivate voidFindNullDeref.addPropertiesForDereferenceLocations(WarningPropertySet<WarningProperty> propertySet, Collection<Location> derefLocationSet, boolean isConsistent) private voidNoiseNullDeref.addPropertiesForDereferenceLocations(WarningPropertySet<WarningProperty> propertySet, Collection<Location> derefLocationSet) voidFindNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) voidFindNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) voidNoiseNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) voidNoiseNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) (package private) intFindNullDeref.maxPC(Collection<Location> locs) (package private) intFindNullDeref.minPC(Collection<Location> locs) private booleanFindNullDeref.uniqueLocations(Collection<Location> derefLocationSet) private booleanNoiseNullDeref.uniqueLocations(Collection<Location> derefLocationSet) Constructors in edu.umd.cs.findbugs.detect with parameters of type LocationModifierConstructorDescriptionLock(Location location, String lockClass, ValueNumber lockValue) RegularLocation(TypeAnalysis ta, ValueNumberAnalysis vna, Location loc) Constructor.StreamEscape(Stream source, Location target) Constructor.(package private)WarningWithProperties(BugInstance warning, WarningPropertySet<WarningProperty> propertySet, SourceLineAnnotation sourceLine, Location location) -
Uses of Location in edu.umd.cs.findbugs.props
Methods in edu.umd.cs.findbugs.props that return LocationModifier and TypeMethodDescriptionprivate static LocationWarningPropertyUtil.pcToLocation(ClassContext classContext, org.apache.bcel.classfile.Method method, int pc) Get a Location matching the given PC value.Methods in edu.umd.cs.findbugs.props with parameters of type LocationModifier and TypeMethodDescriptionstatic voidWarningPropertyUtil.addPropertiesForDataMining(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add all relevant general warning properties to the given property set for the given Location.private static voidWarningPropertyUtil.addReceiverObjectType(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add a RECEIVER_OBJECT_TYPE warning property for a particular location in a method to given warning property set.private static voidWarningPropertyUtil.addRecentlyCalledMethods(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add CALLED_METHOD_n warning properties based on methods which have been called and returned normally at given Location.
ValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(Method,Location,ValueNumber,ValueNumberFrame, String)instead