public class SpoiledChildInterfaceImplementor
extends java.lang.Object
implements edu.umd.cs.findbugs.Detector
Modifier and Type | Field and Description |
---|---|
private edu.umd.cs.findbugs.BugReporter |
bugReporter |
private static java.util.Set<QMethod> |
OBJECT_METHODS |
Constructor and Description |
---|
SpoiledChildInterfaceImplementor(edu.umd.cs.findbugs.BugReporter bugReporter)
constructs a SCII detector given the reporter to report bugs on
|
Modifier and Type | Method and Description |
---|---|
private static java.util.Set<QMethod> |
buildMethodSet(org.apache.bcel.classfile.JavaClass cls)
builds a set of all non constructor or static initializer method/signatures
|
private void |
filterSuperInterfaceMethods(org.apache.bcel.classfile.JavaClass inf,
java.util.Set<QMethod> infMethods,
org.apache.bcel.classfile.JavaClass cls)
removes methods found in an interface when a super interface having the same methods is implemented in a parent.
|
void |
report()
required for implementing the interface
|
java.lang.String |
toString() |
void |
visitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
looks for classes that implement interfaces but don't provide those methods
|
private static final java.util.Set<QMethod> OBJECT_METHODS
private final edu.umd.cs.findbugs.BugReporter bugReporter
public SpoiledChildInterfaceImplementor(edu.umd.cs.findbugs.BugReporter bugReporter)
bugReporter
- the sync of bug reportspublic void visitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
visitClassContext
in interface edu.umd.cs.findbugs.Detector
classContext
- the context object of the currently parsed classpublic void report()
report
in interface edu.umd.cs.findbugs.Detector
private static java.util.Set<QMethod> buildMethodSet(org.apache.bcel.classfile.JavaClass cls)
cls
- the class to build the method set fromprivate void filterSuperInterfaceMethods(org.apache.bcel.classfile.JavaClass inf, java.util.Set<QMethod> infMethods, org.apache.bcel.classfile.JavaClass cls)
inf
- the interface to look for super interfaces forinfMethods
- the remaining methods that are needed to be foundcls
- the super class to look for these methods inpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2018 MeBigFatGuy.com. All Rights Reserved.