Follow

Release Note Rules Version 2.0.11 - 1/12/2015

New Rules

  • PLRULES-731 Close() Invoked On a Value That Is Always Null
  • PLRULES-734 Return Value Of PutIfAbsent Ignored, Value Passed To PutIfAbsent Reused
  • PLRULES-744 Class too big for analysis
  • PLRULES-752 Certain swing methods needs to be invoked in Swing thread
  • PLRULES-757 A volatile reference to an array doesn't treat the array elements as volatile
  • PLRULES-758 Usage of GetResource may be unsafe if class is extended
  • PLRULES-759 Method with Boolean return type returns explicit null
  • PLRULES-760 Synchronize and null check on the same field
  • PLRULES-761 Repeated conditional tests
  • PLRULES-762 Creates an empty zip file entry
  • PLRULES-763 Creates an empty jar file entry
  • PLRULES-764 Dubious catching of IllegalMonitorStateException
  • PLRULES-765 Method performs math using floating point precision
  • PLRULES-766 Class implements Cloneable but does not define or use clone method
  • PLRULES-767 Class defines clone() but doesn't implement Cloneable
  • PLRULES-768 clone method does not call super.clone()
  • PLRULES-769 Use of identifier that is a keyword in later versions of Java
  • PLRULES-774 Method might drop exception
  • PLRULES-775 Method might ignore exception
  • PLRULES-776 Method invoked that should be only be invoked inside a doPrivileged block
  • PLRULES-777 Classloaders should only be created inside doPrivileged block
  • PLRULES-779 Fields of immutable classes should be final
  • PLRULES-780 Thread passed where Runnable expected
  • PLRULES-781 Maps and sets of URLs can be performance hogs
  • PLRULES-783 The equals and hashCode methods of URL are blocking
  • PLRULES-786 Can't use reflection to check for presence of annotation without runtime retention
  • PLRULES-788 Method invokes System.exit(...)
  • PLRULES-789 Method invokes dangerous method runFinalizersOnExit
  • PLRULES-790 Method invokes inefficient new String(String) constructor
  • PLRULES-791 Method invokes inefficient new String() constructor
  • PLRULES-792 Method invokes toString() method on a String
  • PLRULES-793 Explicit garbage collection; extremely dubious except in benchmarking code
  • PLRULES-794 Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead
  • PLRULES-795 Method invokes inefficient Number constructor; use static valueOf instead
  • PLRULES-796 Method invokes inefficient floating-point Number constructor; use static valueOf instead
  • PLRULES-797 Consider using Locale parameterized version of invoked method
  • PLRULES-798 Primitive value is unboxed and coerced for ternary operator
  • PLRULES-799 Primitive value is boxed and then immediately unboxed
  • PLRULES-800 Primitive value is boxed then unboxed to perform primitive coercion
  • PLRULES-801 Method allocates a boxed primitive just to call toString
  • PLRULES-802 Method allocates an object, only to get the class object
  • PLRULES-803 Monitor wait() called on Condition
  • PLRULES-804 Random value from 0 to 1 is coerced to the integer 0
  • PLRULES-805 Use the nextInt method of Random rather than nextDouble to generate a random integer
  • PLRULES-806 Nonconstant string passed to execute method on an SQL statement
  • PLRULES-807 A prepared statement is generated from a nonconstant String
  • PLRULES-808 A thread was created using the default empty run method
  • PLRULES-809 Possible double check of field
  • PLRULES-810 Finalizer nulls fields
  • PLRULES-811 Finalizer only nulls fields
  • PLRULES-812 Finalizer should be protected, not public
  • PLRULES-813 Empty finalizer should be deleted
  • PLRULES-814 finalizer nullifies superclass finalizer
  • PLRULES-815 Finalizer does nothing but call superclass finalizer
  • PLRULES-816 Finalizer does not call superclass finalizer
  • PLRULES-817 Explicit invocation of finalizer
  • PLRULES-818 Equals checks for incompatible operand
  • PLRULES-819 Covariant equals() method defined for enum
  • PLRULES-820 Covariant equals() method defined, Object.equals(Object) inherited
  • PLRULES-821 equals() method defined that doesn't override Object.equals(Object)
  • PLRULES-822 equals() method defined that doesn't override equals(Object)
  • PLRULES-823 Class doesn't override equals in superclass
  • PLRULES-824 Covariant equals() method defined
  • PLRULES-825 equals method overrides equals in superclass and may not be symmetric
  • PLRULES-826 equals method fails for subtypes
  • PLRULES-827 Unusual equals method
  • PLRULES-828 equals method compares class names rather than class objects
  • PLRULES-829 equals method always returns true
  • PLRULES-830 equals method always returns false
  • PLRULES-831 Huge string constants is duplicated across multiple class files
  • PLRULES-832 Method does not check for null argument
  • PLRULES-833 equals() method does not check for null argument
  • PLRULES-834 Covariant compareTo() method defined
  • PLRULES-836 Use of class without a hashCode() method in a hashed data structure
  • PLRULES-837 Class defines hashCode() and uses Object.equals()
  • PLRULES-838 Class defines compareTo(...) and uses Object.equals()
  • PLRULES-839 Class defines hashCode() but not equals()
  • PLRULES-840 Class defines equals() and uses Object.hashCode()
  • PLRULES-841 Class inherits equals() and uses Object.hashCode()
  • PLRULES-842 Class defines equals() but not hashCode()
  • PLRULES-843 Abstract class defines covariant equals() method
  • PLRULES-844 Comparison of String objects using == or !=
  • PLRULES-845 Comparison of String parameter using == or !=
  • PLRULES-846 Abstract class defines covariant compareTo() method
  • PLRULES-847 Field not guarded against concurrent access
  • PLRULES-848 Mutable servlet field
  • PLRULES-849 Inconsistent synchronization
  • PLRULES-851 Public static method may expose internal representation by returning array
  • PLRULES-852 May expose internal representation by returning reference to mutable object
  • PLRULES-853 May expose internal representation by incorporating reference to mutable object
  • PLRULES-854 May expose internal static state by storing a mutable object into a static field
  • PLRULES-855 Invokes run on a thread (did you mean to start it instead?)

Comments

Powered by Zendesk