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: | Warning hint when referencing static methods using class reference | ||
---|---|---|---|
Product: | java | Reporter: | larand54 |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
larand54
2011-03-16 10:35:23 UTC
The Thread.sleep method is static, and so: Thread.currentThread().sleep(1000); can be changed to Thread.sleep(1000); which is simpler and less confusing. This is what the hint warns about. I have changed the underline so that the method name is underlined instead of the site: http://hg.netbeans.org/jet-main/rev/393507a13d35 Integrated into 'main-golden', will be available in build *201103280400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/393507a13d35 User: Jan Lahoda <jlahoda@netbeans.org> Log: #196763: let static access warning underline the method/field name, not the site. |