Mantis Bug Tracker

View Issue DetailsJump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000055jquantlib[All Projects] toolspublic2008-12-20 12:172009-03-09 00:11
ReporterRichard Gomes 
Assigned ToRichard Gomes 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version0.1.2Fixed in Version0.1.2 
Summary0000055: PMD should list private fields which are not final
DescriptionPrivate fields in general are initialized by constructors.
So they should be made final.

For a good reason, a field can be left non-final, because it is probably used as a variable intended to keep state, not as a simple object holder.

This verification helps developers to review their code and find objects left not initialized by constructors.
TagsNo tags attached.
Attached Files

- Relationships
related to 0000183feedback PMD :: analise design rules and controversial rules 
child of 0000030closedRichard Gomes Remove Macker 

-  Notes
(0000102)
Richard Gomes (manager)
2009-02-02 02:34

* I've created colt.xml and fastutil.xml under directory src/main/pmd as example.

* I've integrated these 2 rulesets in pom.xml near line 900:
              <ruleset>${basedir}/src/main/pmd/colt.xml</ruleset>
              <ruleset>${basedir}/src/main/pmd/fastutil.xml</ruleset>

* The following articles explain how PMD rulesets can be created:
  http://pmd.sourceforge.net/howtowritearule.html [^]
  http://www.onjava.com/pub/a/onjava/2003/04/09/pmd_rules.html [^]
(0000111)
Ueli Hofstetter (developer)
2009-02-03 12:39

review/confirm
(0000140)
Richard Gomes (manager)
2009-02-08 17:11

done

see src/main/pmd/fieldDeclaration.xml
(0000236)
Richard Gomes (manager)
2009-03-09 00:11

Do not fix: it's not convenient.

- Issue History
Date Modified Username Field Change
2008-12-20 12:17 Richard Gomes New Issue
2008-12-20 12:17 Richard Gomes Status new => assigned
2008-12-20 12:17 Richard Gomes Assigned To => Dominik Holenstein
2009-01-25 06:41 Dominik Holenstein Assigned To Dominik Holenstein =>
2009-01-25 21:21 Richard Gomes Target Version => 0.1.2
2009-01-25 23:24 Richard Gomes Relationship added child of 0000030
2009-01-27 01:11 Administrator Status assigned => new
2009-02-02 02:34 Richard Gomes Note Added: 0000102
2009-02-02 19:20 Ueli Hofstetter Status new => assigned
2009-02-02 19:20 Ueli Hofstetter Assigned To => Ueli Hofstetter
2009-02-03 12:39 Ueli Hofstetter Note Added: 0000111
2009-02-03 12:39 Ueli Hofstetter Assigned To Ueli Hofstetter => Richard Gomes
2009-02-08 16:55 Richard Gomes Description Updated
2009-02-08 16:55 Richard Gomes Issue Monitored: Dominik Holenstein
2009-02-08 16:55 Richard Gomes Issue Monitored: Ueli Hofstetter
2009-02-08 16:55 Richard Gomes Issue Monitored: Srinivas Hasti
2009-02-08 16:55 Richard Gomes Issue Monitored: Richard Gomes
2009-02-08 16:58 Richard Gomes Relationship added related to 0000183
2009-02-08 17:05 Richard Gomes Description Updated
2009-02-08 17:11 Richard Gomes Note Added: 0000140
2009-02-08 17:11 Richard Gomes Status assigned => resolved
2009-02-08 17:11 Richard Gomes Fixed in Version => 0.1.2
2009-02-08 17:11 Richard Gomes Resolution open => fixed
2009-03-09 00:11 Richard Gomes Note Added: 0000236
2009-03-09 00:11 Richard Gomes Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker