formatting only: added spaces after commas
[org.ibex.classgen.git] / src / org / ibex / classgen / FieldGen.java
index b2d25bc..330849b 100644 (file)
@@ -2,6 +2,8 @@ package org.ibex.classgen;
 
 import java.io.*;
 
+/** Class representing a field in a generated classfile
+    @see ClassGen#addField */
 public class FieldGen implements CGConst {
     private final CPGen cp;
     private final String name;
@@ -11,7 +13,8 @@ public class FieldGen implements CGConst {
     
     private Object constantValue;
     
-    FieldGen(ClassGen owner, String name,Type type, int flags) {
+    FieldGen(DataInput in) { throw new Error("Brian is lame"); }
+    FieldGen(ClassGen owner, String name, Type type, int flags) {
         if((flags & ~(ACC_PUBLIC|ACC_PRIVATE|ACC_PROTECTED|ACC_VOLATILE|ACC_TRANSIENT|ACC_STATIC|ACC_FINAL)) != 0)
             throw new IllegalArgumentException("invalid flags");
         this.cp = owner.cp;
@@ -33,7 +36,7 @@ public class FieldGen implements CGConst {
     
     void finish() {
         if(constantValue != null && !attrs.contains("ConstantValue"))
-            attrs.add("ConstantValue",cp.add(constantValue));
+            attrs.add("ConstantValue", cp.add(constantValue));
     }
     
     void dump(DataOutput o) throws IOException {