equal
deleted
inserted
replaced
211 /** marker for unshared objects in internal handle table */ |
211 /** marker for unshared objects in internal handle table */ |
212 private static final Object unsharedMarker = new Object(); |
212 private static final Object unsharedMarker = new Object(); |
213 |
213 |
214 /** table mapping primitive type names to corresponding class objects */ |
214 /** table mapping primitive type names to corresponding class objects */ |
215 private static final HashMap<String, Class<?>> primClasses |
215 private static final HashMap<String, Class<?>> primClasses |
216 = new HashMap<String, Class<?>>(8, 1.0F); |
216 = new HashMap<>(8, 1.0F); |
217 static { |
217 static { |
218 primClasses.put("boolean", boolean.class); |
218 primClasses.put("boolean", boolean.class); |
219 primClasses.put("byte", byte.class); |
219 primClasses.put("byte", byte.class); |
220 primClasses.put("char", char.class); |
220 primClasses.put("char", char.class); |
221 primClasses.put("short", short.class); |
221 primClasses.put("short", short.class); |
227 } |
227 } |
228 |
228 |
229 private static class Caches { |
229 private static class Caches { |
230 /** cache of subclass security audit results */ |
230 /** cache of subclass security audit results */ |
231 static final ConcurrentMap<WeakClassKey,Boolean> subclassAudits = |
231 static final ConcurrentMap<WeakClassKey,Boolean> subclassAudits = |
232 new ConcurrentHashMap<WeakClassKey,Boolean>(); |
232 new ConcurrentHashMap<>(); |
233 |
233 |
234 /** queue for WeakReferences to audited subclasses */ |
234 /** queue for WeakReferences to audited subclasses */ |
235 static final ReferenceQueue<Class<?>> subclassAuditsQueue = |
235 static final ReferenceQueue<Class<?>> subclassAuditsQueue = |
236 new ReferenceQueue<Class<?>>(); |
236 new ReferenceQueue<>(); |
237 } |
237 } |
238 |
238 |
239 /** filter stream for handling block data conversion */ |
239 /** filter stream for handling block data conversion */ |
240 private final BlockDataInputStream bin; |
240 private final BlockDataInputStream bin; |
241 /** validation callback list */ |
241 /** validation callback list */ |