Browse Source

Removed isFinal check as no longer required for declaring fields

kindlich 6 years ago
parent
commit
00a1770916
No known key found for this signature in database

+ 1
- 4
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/classes_structs/JavaMemberVisitor.java View File

@@ -30,10 +30,7 @@ public class JavaMemberVisitor implements MemberVisitor<Void> {
30 30
 
31 31
         //TODO calc signature
32 32
         String signature = null;
33
-        int modifier = member.modifiers;
34
-        if(member.isFinal)
35
-            modifier |= Modifiers.MODIFIER_FINAL;
36
-        writer.visitField(modifier, member.name, Type.getDescriptor(member.type.accept(JavaTypeClassVisitor.INSTANCE)), signature, null).visitEnd();
33
+        writer.visitField(member.modifiers, member.name, Type.getDescriptor(member.type.accept(JavaTypeClassVisitor.INSTANCE)), signature, null).visitEnd();
37 34
         return null;
38 35
     }
39 36
 

Loading…
Cancel
Save