[ checkstyle-Bugs-2879752 ] HideUtilityClassConstructor for private inner classes

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

[ checkstyle-Bugs-2879752 ] HideUtilityClassConstructor for private inner classes

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2879752, was opened at 2009-10-15 09:38
Message generated for change (Tracker Item Submitted) made by d_gruntz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=2879752&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: Core Framework
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dominik Gruntz (d_gruntz)
Assigned to: Oliver Burn (oburn)
Summary: HideUtilityClassConstructor for private inner classes

Initial Comment:
On the following example HideUtilityClassConstructor complains that the utility class Holder should not have a public or default constructor.

public class C {
   private static class Holder {
      private int x;
   }
}

By default, the inner static class Holder has a private default constructor. It has neither a public nor a package visible constructor, therefore I did not expect a warning of HideUtilityClassConstructor on this class.

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

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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Checkstyle-devel mailing list
Checkstyle-devel@...
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel