| Priority |
Normal |
| Type | Bug |
| State | Verified |
| Assignee | Bas Leijdekkers |
| Subsystem | Code Analysis. Inspection |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
8211
|
| Fixed in build |
8225
|
IDEA-43079 |
IG: "Type may be weakened" with "Use righthand type" On warns about foreach parameter |
|
|
import org.jetbrains.annotations.NonNls;
public class RightHandIterator {
public static int exp(Iterable<String> list) {
int i = 0;
for (@NonNls String s: list) {
if ("some".equals(s)) {
i++;
}
}
return i;
}
}
|
Alexander Chernikov
15 Mar 2008 16:42
(22 months ago)
|
|