FindBugs™ 1.3.9

edu.umd.cs.findbugs
Interface StatelessDetector

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
CloneIdiom, EmptyZipFileEntry, EqStringTest, FindBadCast, FindBadForLoop, FindFieldSelfAssignment, FindFinalizeInvocations, FindFloatEquality, FindFloatMath, FindHEmismatch, FindJSR166LockMonitorenter, FindLocalSelfAssignment2, FindMismatchedWaitOrNotify, FindNakedNotify, FindNonShortCircuit, FindOpenStream, FindRunInvocations, FindSpinLoop, FindTwoLockWait, FindUncalledPrivateMethods, FindUnconditionalWait, FindUninitializedGet, FindUselessControlFlow, IncompatMask, InefficientMemberAccess, InefficientToArray, InfiniteRecursiveLoop, InheritanceUnsafeGetResource, IteratorIdioms, LazyInit, MutableLock, PreferZeroLengthArrays, PublicSemaphores, QuestionableBooleanAssignment, ReadReturnShouldBeChecked, RedundantInterfaces, RuntimeExceptionCapture, StartInConstructor, StringConcatenation, SuperfluousInstanceOf, SuspiciousThreadInterrupted, SwitchFallthrough, UnnecessaryMath, UselessSubclassMethod, UseObjectEquals, VarArgsProblems, WaitInLoop, WrongMapIterator

public interface StatelessDetector
extends java.lang.Cloneable

is a marker interface for detectors that don't save state from one class file to the next. If a detector implements this interface, a clone will be generated for each element it is applied to. The idea of using this interface is questionable. Better for people writing stateless detectors to just not keep around state they don't need, rather than depending on cloning and garbage collection.


Method Summary
 java.lang.Object clone()
           
 

Method Detail

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.