This is an automated email from the ASF dual-hosted git repository.
jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 421122c NETBEANS-892: Fix updation of unrelated files during refactor
421122c is described below
commit 421122c2192704466cd2afa54f13733fb39582c4
Author: Reema Taneja <[email protected]>
AuthorDate: Tue Jun 26 12:56:27 2018 -0700
NETBEANS-892: Fix updation of unrelated files during refactor
---
.../modules/refactoring/java/plugins/MoveClassTransformer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/MoveClassTransformer.java
b/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/MoveClassTransformer.java
index a295abf..cd7b618 100644
---
a/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/MoveClassTransformer.java
+++
b/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/MoveClassTransformer.java
@@ -146,8 +146,6 @@ public class MoveClassTransformer extends
RefactoringVisitor {
cut = make.CompilationUnit(cut.getPackageName(), imports,
cut.getTypeDecls(), cut.getSourceFile());
}
- cut = GeneratorUtilities.get(workingCopy).importFQNs(cut);
-
rewrite(node, cut);
return result;
@@ -245,6 +243,7 @@ public class MoveClassTransformer extends
RefactoringVisitor {
}
get.copyComments(origTree, newClass, true);
get.copyComments(origTree, newClass, false);
+ newClass = get.importFQNs(newClass);
newClass = get.insertClassMember(node, newClass);
original2Translated.put(node, newClass);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists