Actually, I guess you can't make a class abstract and final. So, there's no
way around this.

-----Original Message-----
From: Jordan Zimmerman 
Sent: Tuesday, February 12, 2002 4:39 PM
To: '[EMAIL PROTECTED]'
Subject: Unused constructor problem


I sometimes add a private constructor to utility classes that have nothing
but static methods to prevent it from being created/extended. Ariadna
reports the constructor as unused. I realize that I could accomplish this by
making it abstract final. But, it seems to me, that IDEA shouldn't complain
about valid code.

As I mentioned in a previous message, it seems to me that IDEA is going to
need a special comment or naming convention so that users can tell IDEA not
to treat a method/data as unused.

class util_class
{
        public static void      util1()
        {
                // ...
        }

        public static void      util2()
        {
                // ...
        }

        private util_class()
        {
        }
}
 
===========================
Jordan Zimmerman
Altura International
Catalog City

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to