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

Key: IDEADEV-25306
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Bas Leijdekkers
Reporter: Michael Besosa
Votes: 0
Watchers: 0
Operations

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

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

Created: 13 Mar 08 18:15   Updated: 14 Mar 08 10:28
Component/s: Code Analysis. Inspection
Fix Version/s: Diana 8243, Selena 7.0.4

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

Build: 7,744
Fixed in build: 8,225
Severity: Medium


 Description  « Hide
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.



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