langtools/src/jdk.jshell/share/classes/jdk/jshell/ClassTracker.java
changeset 42827 36468b5fa7f4
parent 39807 ba0ff343d241
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
   124         ci.setCurrentBytes(bytes);
   124         ci.setCurrentBytes(bytes);
   125     }
   125     }
   126 
   126 
   127     // Lookup the ClassInfo by class name, create if it does not exist.
   127     // Lookup the ClassInfo by class name, create if it does not exist.
   128     ClassInfo get(String className) {
   128     ClassInfo get(String className) {
   129         return map.computeIfAbsent(className, k -> new ClassInfo(k));
   129         return map.computeIfAbsent(className, ClassInfo::new);
   130     }
   130     }
   131 }
   131 }