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.

Bug 198479 - Missing obvious refactoring for Multiple top-level classes in file hint
Summary: Missing obvious refactoring for Multiple top-level classes in file hint
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 13:55 UTC by swpalmer
Modified: 2013-01-14 13:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


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".