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 220612 - Inspector refactor preview should ingore imports
Summary: Inspector refactor preview should ingore imports
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
Depends on:
Reported: 2012-10-22 20:32 UTC by everflux
Modified: 2012-10-23 07:58 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2012-10-22 20:32:48 UTC
[ BUILD # : 201207171143 ]
[ JDK VERSION : 1.7.9 ]

When using the inspect and transform feature the Refactoring preview window it
jumps to the very first change in the code.
That can lead to a cumbersome workflow. For example:
I have a class returning a collection, the inspection "Replace with
Collections.unmodifiableList" leads to a new import:
import java.util.Collections;

This is at the top of the changed file - I can not inspect the actual code
change without cumbersome scrolling. A sure way to avoid this (great) feature
for me.

I am not sure if this is a bug or considered a possible enhancement.