equal
deleted
inserted
replaced
98 protected abstract byte[] readValue() throws IOException; |
98 protected abstract byte[] readValue() throws IOException; |
99 |
99 |
100 // make Integer or Long for given object ID |
100 // make Integer or Long for given object ID |
101 protected static Number makeId(long id) { |
101 protected static Number makeId(long id) { |
102 if ((id & ~Snapshot.SMALL_ID_MASK) == 0) { |
102 if ((id & ~Snapshot.SMALL_ID_MASK) == 0) { |
103 return new Integer((int)id); |
103 return (int)id; |
104 } else { |
104 } else { |
105 return id; |
105 return id; |
106 } |
106 } |
107 } |
107 } |
108 |
108 |