[Fb-contrib-commit] SF.net SVN: fb-contrib: [540] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-05-17 04:03:52
|
Revision: 540 Author: dbrosius Date: 2006-05-16 21:03:41 -0700 (Tue, 16 May 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=540&view=rev Log Message: ----------- prioritize based on array size Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java 2006-05-16 04:33:50 UTC (rev 539) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java 2006-05-17 04:03:41 UTC (rev 540) @@ -126,7 +126,7 @@ case SEEN_INDEX_STORE: if ((seen == ASTORE) || ((seen >= ASTORE_0) && (seen <= ASTORE_3))) { - bugReporter.reportBug(new BugInstance(this, "SACM_STATIC_ARRAY_CREATED_IN_METHOD", NORMAL_PRIORITY) + bugReporter.reportBug(new BugInstance(this, "SACM_STATIC_ARRAY_CREATED_IN_METHOD", (arraySize < 3) ? LOW_PRIORITY : ((arraySize < 10) ? NORMAL_PRIORITY : HIGH_PRIORITY)) .addClass(this) .addMethod(this) .addSourceLine(this, getPC())); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |