You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ge...@apache.org on 2018/06/27 15:39:20 UTC

[incubator-netbeans] branch release90 updated: NETBEANS-892: Fix updation of unrelated files during refactor (#609)

This is an automated email from the ASF dual-hosted git repository.

geertjan pushed a commit to branch release90
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git


The following commit(s) were added to refs/heads/release90 by this push:
     new 5747fbd  NETBEANS-892: Fix updation of unrelated files during refactor (#609)
5747fbd is described below

commit 5747fbd34405a5724b7f4020fd04cfb0bfd853c9
Author: Reema Taneja <32...@users.noreply.github.com>
AuthorDate: Wed Jun 27 08:39:16 2018 -0700

    NETBEANS-892: Fix updation of unrelated files during refactor (#609)
---
 .../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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists