jdk/src/share/classes/java/io/ObjectOutputStream.java
changeset 7803 56bc97d69d93
parent 7030 90cf66131063
child 11117 b6e68b1344d4
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
   163 {
   163 {
   164 
   164 
   165     private static class Caches {
   165     private static class Caches {
   166         /** cache of subclass security audit results */
   166         /** cache of subclass security audit results */
   167         static final ConcurrentMap<WeakClassKey,Boolean> subclassAudits =
   167         static final ConcurrentMap<WeakClassKey,Boolean> subclassAudits =
   168             new ConcurrentHashMap<WeakClassKey,Boolean>();
   168             new ConcurrentHashMap<>();
   169 
   169 
   170         /** queue for WeakReferences to audited subclasses */
   170         /** queue for WeakReferences to audited subclasses */
   171         static final ReferenceQueue<Class<?>> subclassAuditsQueue =
   171         static final ReferenceQueue<Class<?>> subclassAuditsQueue =
   172             new ReferenceQueue<Class<?>>();
   172             new ReferenceQueue<>();
   173     }
   173     }
   174 
   174 
   175     /** filter stream for handling block data conversion */
   175     /** filter stream for handling block data conversion */
   176     private final BlockDataOutputStream bout;
   176     private final BlockDataOutputStream bout;
   177     /** obj -> wire handle map */
   177     /** obj -> wire handle map */
  2411      */
  2411      */
  2412     private static class DebugTraceInfoStack {
  2412     private static class DebugTraceInfoStack {
  2413         private final List<String> stack;
  2413         private final List<String> stack;
  2414 
  2414 
  2415         DebugTraceInfoStack() {
  2415         DebugTraceInfoStack() {
  2416             stack = new ArrayList<String>();
  2416             stack = new ArrayList<>();
  2417         }
  2417         }
  2418 
  2418 
  2419         /**
  2419         /**
  2420          * Removes all of the elements from enclosed list.
  2420          * Removes all of the elements from enclosed list.
  2421          */
  2421          */