InspectionGadgets

/**

  • For CVS

*/
public static final String REVISION_ID = "$Id: WhereClause.java,v 1.3 2004/02/11 12:02:19 parthis Exp $";

/**

  • For CVS

*/
public static final String REVISION_TAG = "$Name: $";

Hi The above line is in every file and they are for CVS there is no Usage apart from that, is there any way to filter selected final static member of a class from being inspected ?
if it's there how to do it ?
if it's not there could we have something like that please :)

cheers,
parthi.

8 comments

Just curios, for what purpose do you need these variables, if they are
not used anywhere?

Tom

0

They are for CVS to place the revision id and Tagging

cheers,

parthi.

0

They are for CVS to place the revision id and Tagging


But why then use variables and no comments?

Tom

0

do you mean to say . is missing it that ?
or ??

0

my point is,
since they are public static fields they are subjected to usage checks and other checks, which these field don't require... is there a way to avoid this ??
if i have 5000 classes in my project this takes a huge amount of time :(
or am i getting it wrong ??

0


All of the "unused variable/method/class" inspections are part of IDEA's built-in inspection suite, not from InspectionGadgets. You'll have to get JetBrains to fix it. I remember a Tracker request for allowing variables like this to be ignored for purposes of the unused variable inspection (keyed off some regex), so you might look it up and vote for it. In the mean-time, you might try creating some test class which does nothing but reference these variables. Ugly, but effective.

--Dave

0


This sort of thing can actually be quite handy, as it makes the CVS label show up in the .class file. There it can be viewed with a handy disassembler, if needed. I don't do it myself, although now that you mention it I might suggest it on the work project we've currently got starting.

--Dave Griffith

0

I think he is saying why not use comments for your revision ID instead of a
field?

"parthis" <no_mail@jetbrains.com> wrote in message
news:27134885.1076586849910.JavaMail.itn@is.intellij.net...

do you mean to say . is missing it that ?
or ??



0

Please sign in to leave a comment.