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

Key: IDEA-13371
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Anders Wallgren
Votes: 0
Watchers: 0
Operations

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

@NonNls annotation should be transitive through String.format calls.

Created: 22 Jun 07 01:29   Updated: 22 Jun 07 15:47
Component/s: Code Analysis. Inspection

Environment: Windows Vista

Build: 7,020
Severity: Medium


 Description  « Hide
We have found the @NonNls annotation a very useful feature, but there is one improvement I think would make it even better.

A common scenario I run into is that I have a method parameter annotated as @NonNls, and then use String.format to format the string passed to that method. In this case, I get a "hardcoded string" warning on the argument to String.format.

What would be great is if the inspection would know that the result of String.format is being passed to a method whose parameter is annotated as @NonNls and elide the warning.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.