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: | Inspect & Transform cannot apply "strings using ==" hint in desired way | ||
---|---|---|---|
Product: | java | Reporter: | Jesse Glick <jglick> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Jesse Glick
2012-03-30 19:36:38 UTC
Workaround is to manually accept second hint fix on each affected line. Could be improved, but only in limited cases, i.e. one side of the comparison is either a literal, or a final reference variable with an initializer. Definite assingment rules could be added, but I am not sure it cover enough cases to weight out the complexity. Could also work with @NonNull etc annotations (configurable in some other hint) |