Skip to content

Commit e4d738d

Browse files
committed
clean up commented code
1 parent 7273c56 commit e4d738d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/org/rascalmpl/uri/classloaders/SourceLocationClassLoader.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -120,34 +120,6 @@ protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundE
120120
/**
121121
* Is called by loadClass but not before searching in the parent classloader.
122122
*/
123-
// @Override
124-
// protected Class<?> findClass(String name) throws ClassNotFoundException {
125-
// var cached = cache.computeIfAbsent(name, (n) -> {
126-
// var fileName = n.replace('.', '/') + ".class";
127-
128-
// for (ClassLoader l : path) {
129-
// try (var stream = l.getResourceAsStream(fileName)) {
130-
// if (stream == null) {
131-
// continue;
132-
// }
133-
// return defineClass(n, ByteBuffer.wrap(stream.readAllBytes()), null);
134-
// }
135-
// catch (IOException e) {
136-
// throw new RuntimeException(e);
137-
// }
138-
// }
139-
140-
// return null;
141-
// });
142-
143-
// if (cached == null) {
144-
// // is caught by the parent.loadClass(name, resolve) method
145-
// throw new ClassNotFoundException(name);
146-
// }
147-
148-
// return cached;
149-
// }
150-
151123
@Override
152124
protected Class<?> findClass(String name) throws ClassNotFoundException {
153125
Class<?> cached = cache.get(name);

0 commit comments

Comments
 (0)