Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Bas Leijdekkers 
Subsystem
Code Analysis. Inspection 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7531
Fixed in build
7758
  • Submitted by   Peter Lawrey
    2 years ago (12 Nov 2007 15:20)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:55)
  • Jira: IDEA-41867
    (history, comments)

IDEA-41867

When suggesting that a type may be weakened, check for new checked exceptions.

0
In this example, "Type may be weakened" suggests "sb" could made "Appendable" however this would add a checked exception IOException to the method append().
   public static String hashes(int len) {
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<len;i++)
            sb.append('#');
        return sb.toString();
    }


Issue was resolved
Comments (1)
 
History (1)
 
Links
 
Bas Leijdekkers
  Bas Leijdekkers
12 Mar 2008 18:19
(22 months ago)
#permalink
I had forgotten to mark this issue as resolved. It is fixed in the release candidate.