This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Missing hint for JDK 7 | ||
---|---|---|---|
Product: | java | Reporter: | Evilus |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Evilus
2011-08-02 11:31:47 UTC
Not sure if I understand correctly, is the suggestion that there should be a conversion from: if (var.equalsIgnoreCase("string1")) { //statements } else if (var.equalsIgnoreCase("string2")) { //statements } to switch statement? If so, I am afraid that this is a bit more complex, as the switch over strings does not directly support equalsIgnoreCase. It might be possible to solve this in some cases by (locale specific) toLowerCase/toUpperCase-ing the strings, but that is not supported now. |