Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 198479 - Missing obvious refactoring for Multiple top-level classes in file hint
Missing obvious refactoring for Multiple top-level classes in file hint
Status: NEW
Product: java
Classification: Unclassified
Component: Hints
7.0
All All
: P3 (vote)
: 8.0
Assigned To: Ralph Ruijs
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-10 13:55 UTC by swpalmer
Modified: 2013-01-14 13:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2011-05-10 13:55:18 UTC
Product Version = NetBeans Platform 7.0 (Build 201104080000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_25
Runtime = Java HotSpot(TM) Server VM 20.0-b11

If you define more than one top-level class in the same file there is a hint applied to all but the first "Multiple top-levl classes in file", however there is no quick-fix attached to this hint, i.e. alt-enter on the line is useless.   There is an obvious refactoring to attach to this hint, move the offending class to its own source file.  Such a refactoring should be implemented as the natural "fix".


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo