[ checkstyle-Feature Requests-3518868 ] RedundateModifier if transient on static or final field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ checkstyle-Feature Requests-3518868 ] RedundateModifier if transient on static or final field

SourceForge.net
Feature Requests item #3518868, was opened at 2012-04-17 11:04
Message generated for change (Tracker Item Submitted) made by netappbluedevil
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397081&aid=3518868&group_id=29721

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: Check
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Daniel Holmes (netappbluedevil)
Assigned to: Nobody/Anonymous (nobody)
Summary: RedundateModifier if transient on static or final field

Initial Comment:
transient on a static or final field is essentially meaningless.

http://www.xyzws.com/Javafaq/can-transient-variables-be-declared-as-final-or-static/0

Surprisingly, the java compiler does not complaint if you declare a static member field as transient or a final member field as transient in your classes. These should be compile-time errors. Because a "transient" part of an object's state is assumed to be changing within each instance, it can not be static or final.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397081&aid=3518868&group_id=29721

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Checkstyle-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel
Loading...