diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrIntroduceHandlerBase.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrIntroduceHandlerBase.java index 1cfabe0d6cdf..f5e93ee66746 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrIntroduceHandlerBase.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrIntroduceHandlerBase.java @@ -752,7 +752,7 @@ public abstract class GrIntroduceHandlerBasead + print ad + print "abc" + + print 5 + } +} \ No newline at end of file diff --git a/plugins/groovy/testdata/refactoring/introduceConstant/LocalVarRef_after.groovy b/plugins/groovy/testdata/refactoring/introduceConstant/LocalVarRef_after.groovy new file mode 100644 index 000000000000..02032b3ebfeb --- /dev/null +++ b/plugins/groovy/testdata/refactoring/introduceConstant/LocalVarRef_after.groovy @@ -0,0 +1,12 @@ +class X { + public static final int CONST = 6 + + def foo() { + + print CONST + print CONST + print "abc" + + print 5 + } +} \ No newline at end of file