File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/tc/object/dna/impl Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 25
25
import java .io .IOException ;
26
26
27
27
public class DNAImpl implements DNA , DNACursor , TCSerializable <DNAImpl > {
28
+ private static final LogicalOperation [] LOGICAL_OPERATION_VALUES = LogicalOperation .values ();
29
+
28
30
private static final DNAEncodingInternal DNA_STORAGE_ENCODING = new StorageDNAEncodingImpl ();
29
31
30
32
private final ObjectStringSerializer serializer ;
@@ -170,7 +172,7 @@ private void parseLogical(final DNAEncodingInternal encoding) throws IOException
170
172
if (!input .readBoolean ()) {
171
173
logicalChangeID = new LogicalChangeID (input .readLong ());
172
174
}
173
- final LogicalOperation method = LogicalOperation . values () [this .input .readInt ()];
175
+ final LogicalOperation method = LOGICAL_OPERATION_VALUES [this .input .readInt ()];
174
176
final int paramCount = this .input .read ();
175
177
if (paramCount < 0 ) { throw new AssertionError ("Invalid param count:" + paramCount ); }
176
178
final Object [] params = new Object [paramCount ];
You can’t perform that action at this time.
0 commit comments