[ pmd-Bugs-2818152 ] private final without setter is flagged

View: New views
1 Messages — Rating Filter:   Alert me  

[ pmd-Bugs-2818152 ] private final without setter is flagged

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2818152, was opened at 2009-07-07 14:57
Message generated for change (Comment added) made by ruza
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=479921&aid=2818152&group_id=56262

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pmd
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bill Stackhouse (bstackhouse)
Assigned to: Tom Copeland (tomcopeland)
Summary: private final without setter is flagged

Initial Comment:
If a field is declared private final, the BeanMembersShouldSerialize
rule fails if there is only a getter method. Adding a setter resolves
the problem, but of course the setter cannot set anything.

It seems the rule should not require a setter. Right?



----------------------------------------------------------------------

Comment By: Jan Ruzicka (ruza)
Date: 2009-08-19 17:41

Message:
I'm running to the same problem. This comes for all POJ Data Holder
classes, that have values assigned at construction and just read.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=479921&aid=2818152&group_id=56262

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pmd-devel mailing list
Pmd-devel@...
https://lists.sourceforge.net/lists/listinfo/pmd-devel