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 2021/10/03 15:36:50 UTC
[groovy] branch master updated: Trivial refactoring: reuse variable
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 3bfaf7a Trivial refactoring: reuse variable
3bfaf7a is described below
commit 3bfaf7a563424a20d2ba0293a31f7b9fac37e85a
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Oct 3 23:36:25 2021 +0800
Trivial refactoring: reuse variable
---
src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 4bce789..88833da 100644
--- a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -376,14 +376,14 @@ public class AsmClassGenerator extends ClassGenerator {
for (Iterator<InnerClassNode> it = classNode.getInnerClasses(); it.hasNext(); ) {
makeInnerClassEntry(it.next());
}
- if (controller.getBytecodeVersion() >= Opcodes.V17 &&
+ if (bytecodeVersion >= Opcodes.V17 &&
context.getCompileUnit().getConfig().isSealedNative()) {
for (ClassNode sub: classNode.getPermittedSubclasses()) {
classVisitor.visitPermittedSubclass(sub.getName());
}
}
- if (classNode.isRecord() && controller.getBytecodeVersion() >= Opcodes.V16 &&
+ if (classNode.isRecord() && bytecodeVersion >= Opcodes.V16 &&
context.getCompileUnit().getConfig().isRecordsNative()) {
visitRecordComponents(classNode);
}