com.mebigfatguy.fbcontrib.detect
Class PossibleIncompleteSerialization

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

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

looks for classes that don't handle serialization of parent class member fields when the class in question is serializable but is derived from non serializable classes.


Field Summary
 
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
 
Constructor Summary
PossibleIncompleteSerialization(edu.umd.cs.findbugs.BugReporter bugReporter)
          constructs a PIS detector given the reporter to report bugs on
 
Method Summary
 void report()
           
 void visitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
          implements the visitor to look for classes that are serializable, and are derived from non serializable classes and don't either implement methods in Externalizable or Serializable to save parent class fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PossibleIncompleteSerialization

public PossibleIncompleteSerialization(edu.umd.cs.findbugs.BugReporter bugReporter)
constructs a PIS 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)
implements the visitor to look for classes that are serializable, and are derived from non serializable classes and don't either implement methods in Externalizable or Serializable to save parent class fields.

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

report

public void report()
Specified by:
report in interface edu.umd.cs.findbugs.Detector


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