com.mebigfatguy.fbcontrib.detect
Class SpoiledChildInterfaceImplementor

java.lang.Object
  extended by com.mebigfatguy.fbcontrib.detect.SpoiledChildInterfaceImplementor
All Implemented Interfaces:
edu.umd.cs.findbugs.Detector, edu.umd.cs.findbugs.Priorities

public class SpoiledChildInterfaceImplementor
extends java.lang.Object
implements edu.umd.cs.findbugs.Detector

looks for classes that implement interfaces by relying on methods being implemented in super classes, even though the superclass knows nothing about the interface being implemented by the child.


Field Summary
 
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
 
Constructor Summary
SpoiledChildInterfaceImplementor(edu.umd.cs.findbugs.BugReporter bugReporter)
          constructs a SCII detector given the reporter to report bugs on
 
Method Summary
 void report()
          required for implementing the interface
 void visitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
          looks for classes that implement interfaces but don't provide those methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpoiledChildInterfaceImplementor

public SpoiledChildInterfaceImplementor(edu.umd.cs.findbugs.BugReporter bugReporter)
constructs a SCII detector given the reporter to report bugs on

Parameters:
bugReporter - the sync of bug reports
Method Detail

visitClassContext

public void visitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
looks for classes that implement interfaces but don't provide those methods

Specified by:
visitClassContext in interface edu.umd.cs.findbugs.Detector
Parameters:
classContext - the context object of the currently parsed class

report

public void report()
required for implementing the interface

Specified by:
report in interface edu.umd.cs.findbugs.Detector


Copyright © 2005-2010 MeBigFatGuy.com. All Rights Reserved.