< prev index next >
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/util/SyntheticRepository.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -37,12 +37,11 @@
* of different classpaths, and as such It is designed to be used as a singleton
* per classpath.
*
* @see com.sun.org.apache.bcel.internal.Repository
*
- * @version $Id$
- * @LastModified: Jun 2019
+ * @LastModified: Jan 2020
*/
public class SyntheticRepository implements Repository {
// CLASSNAME X JAVACLASS
private final Map<String, SoftReference<JavaClass>> loadedClasses = new HashMap<>();
@@ -77,11 +76,11 @@
@Override
public JavaClass findClass(final String className) {
final SoftReference<JavaClass> ref = loadedClasses.get(className);
if (ref == null) {
return null;
-}
+ }
return ref.get();
}
/**
* Finds a JavaClass object by name. If it is already in this Repository, the
< prev index next >