]> source.dussan.org Git - aspectj.git/commitdiff
formatted
authoraclement <aclement>
Tue, 18 May 2010 16:31:03 +0000 (16:31 +0000)
committeraclement <aclement>
Tue, 18 May 2010 16:31:03 +0000 (16:31 +0000)
util/src/org/aspectj/util/TypeSafeEnum.java

index e029a62043bc5a918ae64a57a29d24be37d89fc5..99d223143b5767a41b0c12832b639df3da022ad9 100644 (file)
@@ -10,7 +10,6 @@
  *     Xerox/PARC     initial implementation 
  * ******************************************************************/
 
-
 package org.aspectj.util;
 
 import java.io.*;
@@ -24,14 +23,21 @@ public class TypeSafeEnum {
                if (key > Byte.MAX_VALUE || key < Byte.MIN_VALUE) {
                        throw new IllegalArgumentException("key doesn't fit into a byte: " + key);
                }
-               this.key = (byte)key;
+               this.key = (byte) key;
+       }
+
+       public String toString() {
+               return name;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       public byte getKey() {
+               return key;
        }
-       
-       public String toString() { return name; }
-       
-       public String getName() { return name; }
-       public byte getKey() { return key; }
-       
+
        public void write(DataOutputStream s) throws IOException {
                s.writeByte(key);
        }