This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235690

Summary: Implement Java Hints for "Probable Bugs"
Product: java Reporter: Svata Dedic <sdedic>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: rasa.silva
Priority: P1 Keywords: PLAN
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Svata Dedic 2013-09-09 11:35:00 UTC
The following hints should be implemented:

* 'Comparator.compare()' method does not use parameter
* 'Math.random()' cast to 'int'
* 'assert' statement with side effects
* 'hashCode()' called on array
* Call to 'toString()' on array
* Confusing 'null' argument to var-arg method
* Confusing primitive array argument to var-arg method
* Constant conditions \& exceptions
* Infinite recursion
* Magic Constant
* Malformed XPath expression
* Malformed format string
* Mismatched query and update of StringBuilder
* Number comparison using '==', instead of 'equals()'
* Statement with empty body
* StringBuffer constructor call with 'char' argument
* Suspicious 'Collections.toArray()' call
* Suspicious collections method calls
* Suspicious variable/parameter name combination
* Throwable instance not thrown
* Throwable result of method call ignored
Comment 1 Quality Engineering 2013-09-28 04:36:41 UTC
Integrated into 'main-silver', will be available in build *201309280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2d7156da7cab
User: Svata Dedic <sdedic@netbeans.org>
Log: #235690: implement Math.random() cast hint
Comment 2 Svata Dedic 2013-10-18 10:40:36 UTC
Implemented Throwable instance + method result not thrown/ignored in rev. http://hg.netbeans.org/jet-main/rev/14bafdfa41cf
Comment 3 Quality Engineering 2013-10-24 02:39:36 UTC
Integrated into 'main-silver', will be available in build *201310240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/14bafdfa41cf
User: Svata Dedic <sdedic@netbeans.org>
Log: #235690: Implemented Throwable instance + method result not thrown/ignored
Comment 4 Svata Dedic 2015-04-09 15:11:34 UTC
This should be closed :) a long time.