History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-4213
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Maxim Shafirov
Reporter: Norris Shelton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Allow for unused annotation in properties files

Created: 20 Jan 06 19:22   Updated: 22 Oct 08 08:16
Component/s: Code Analysis. Inspection
Fix Version/s: Demetra 5646

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,121
Fixed in build: 5,629
Severity: Medium


 Description  « Hide
I use a .properties file to maintain all of my DB queries. I have 9 of them that are determined dynamically. They are labeled like:

queryA=...
queryB=...
queyrC=....

In the code, they are selected via "query" + class.getProperty(). This leads to them appearing to be unused. This is a realy pain when I check in code and have it run the inspections. It always reports these 9.

Is there a way to allow for some type of notation or annotation noting that this warning can be ignore?

  1. @SuppressWarnings({"UnusedProperty"})


 All   Comments   Work Log   Change History      Sort Order:
Maxim Shafirov - 20 Jan 06 19:35
Or we can have a list of property key patterns to ignore in inspection settngs like:
some.prefix.*.some.suffix

Norris Shelton - 08 Aug 06 22:38
That would work for me.

Maxim Shafirov - 21 Aug 06 22:26
Well, I've just actually implemented your first suggestion. This inspection now has dedicated 'suppress' action, which insert a special comment near property in question's declaration.

NNTP User - 22 Aug 06 18:28
Sweet. Thanks a lot.

NNTP User - 27 Dec 06 21:54
Sweet. Thanks a lot.

NNTP User - 22 Oct 08 08:16
Sweet. Thanks a lot.