You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/04/05 18:01:52 UTC
[groovy] branch master updated: Trivial refactoring: Avoid calling
'getClass()' on Class instance
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 4b7001b Trivial refactoring: Avoid calling 'getClass()' on Class instance
4b7001b is described below
commit 4b7001b1f1e80d0f57ecc410996bc9015b595b70
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Apr 6 01:59:08 2019 +0800
Trivial refactoring: Avoid calling 'getClass()' on Class instance
---
.../java/org/codehaus/groovy/runtime/callsite/GroovySunClassLoader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/callsite/GroovySunClassLoader.java b/src/main/java/org/codehaus/groovy/runtime/callsite/GroovySunClassLoader.java
index f4e9050..71fd21e 100644
--- a/src/main/java/org/codehaus/groovy/runtime/callsite/GroovySunClassLoader.java
+++ b/src/main/java/org/codehaus/groovy/runtime/callsite/GroovySunClassLoader.java
@@ -58,7 +58,7 @@ public class GroovySunClassLoader extends SunClassLoader {
}
private void loadAbstract() throws IOException {
- final InputStream asStream = GroovySunClassLoader.class.getClass().getClassLoader().getResourceAsStream(resName("org.codehaus.groovy.runtime.callsite.AbstractCallSite"));
+ final InputStream asStream = GroovySunClassLoader.class.getClassLoader().getResourceAsStream(resName("org.codehaus.groovy.runtime.callsite.AbstractCallSite"));
ClassReader reader = new ClassReader(asStream);
final ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
final ClassVisitor cv = new ClassVisitor(4, cw) {