Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Bas Leijdekkers 
Subsystem
Code Analysis. Inspection 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7744
Fixed in build
8225
Severity
0
  • Submitted by   Michael Besosa
    22 months ago (13 Mar 2008 18:15)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43210
    (history, comments)

IDEA-43210

"Use right hand side" option of "Type may be weakend" inspection doesn't work

0
Consider the following code:

private static final Logger LOG = Logger.getLogger(MyClass.class);


The "type may be weakened" inspection is triggered by this code, suggesting that {{Logger}} be weakened to {{Category}}. This is undesirable, since {{Category}} in log4j has been deprecated. Setting the "Use right hand side as weakened type" should solve this problem, since {{Logger.getLogger}} returns a {{Logger}}. But it doesn't. In fact, it has no effect.

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments