Hi,

I have come upon a question about the code inspection:

My source file looks something like this:

public class A {
        private static final String CVS_REVISION = "$Revision$";

        static {
                if (System.getProperty("debug.version") != null) {
                        System.out.println("<V> A: " + CVS_REVISION);
                }
        }

        [other stuff]
}

I use this to give myself the possiblity to see every revision
number of my classes just by running my program with -Ddebug.version.

When I start code analysis, IDEA complains about "unreachable code",
stating CVS_REVISION has one use, but it is not reachable from entry points.

This is true, because CVS_REVISION is not used any more but it is
definately not unreachable. Is this the wanted behavior?

Christian


-- 
Christian Schmolzi
T-Systems GEI GmbH
Goebelstr. 1-3, D-64293 Darmstadt
Email: [EMAIL PROTECTED]
Tel:   (+49) 6151 820-4670
Fax:   (+49) 6151 820-4440


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

Reply via email to