File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ def help
37
37
38
38
Example:
39
39
40
- def foo = 'hello! I am a local variable'
41
- foo = 'hi! I am a binding variable'
40
+ def foo = 'hello! I am a local variable. I will vanish after this statement executes. '
41
+ foo = 'hi! I am a binding variable. I live on! '
42
42
43
43
See 'http://groovy.codehaus.org/Scoping+and+the+Semantics+of+%22def%22'
44
44
for more information.
@@ -49,9 +49,9 @@ class Evaluator
49
49
def self . load_dependencies
50
50
unless @loaded
51
51
Groovy . load_dependencies
52
- import 'groovy.lang.GroovyShell'
53
- import 'java.io.PrintWriter'
54
- import 'java.io.StringWriter'
52
+ java_import 'groovy.lang.GroovyShell'
53
+ java_import 'java.io.PrintWriter'
54
+ java_import 'java.io.StringWriter'
55
55
@loaded = true
56
56
end
57
57
end
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ class SyntaxChecker < Redcar::SyntaxCheck::Checker
9
9
def self . load_dependencies
10
10
unless @loaded
11
11
Groovy . load_dependencies
12
- import 'groovy.lang.GroovyShell'
13
- import 'org.codehaus.groovy.control.CompilationFailedException'
14
- import 'org.codehaus.groovy.control.CompilerConfiguration'
12
+ java_import 'groovy.lang.GroovyShell'
13
+ java_import 'org.codehaus.groovy.control.CompilationFailedException'
14
+ java_import 'org.codehaus.groovy.control.CompilerConfiguration'
15
15
@loaded = true
16
16
end
17
17
end
You can’t perform that action at this time.
0 commit comments