|
1 | | -package javasabr.rlib.common.classpath.impl; |
| 1 | +package javasabr.rlib.classpath.impl; |
2 | 2 |
|
3 | 3 | import static java.lang.reflect.Modifier.isAbstract; |
4 | 4 | import static javasabr.rlib.common.util.ClassUtils.unsafeNNCast; |
|
14 | 14 | import java.util.function.Predicate; |
15 | 15 | import java.util.jar.JarInputStream; |
16 | 16 | import java.util.zip.ZipException; |
17 | | -import javasabr.rlib.common.classpath.ClassPathScanner; |
18 | | -import javasabr.rlib.common.compiler.Compiler; |
19 | | -import javasabr.rlib.common.io.impl.ReuseBytesInputStream; |
20 | | -import javasabr.rlib.common.io.impl.ReuseBytesOutputStream; |
| 17 | +import javasabr.rlib.classpath.ClassPathScanner; |
| 18 | +import javasabr.rlib.io.impl.ReuseBytesInputStream; |
| 19 | +import javasabr.rlib.io.impl.ReuseBytesOutputStream; |
21 | 20 | import javasabr.rlib.common.util.ArrayUtils; |
22 | | -import javasabr.rlib.common.util.IOUtils; |
23 | 21 | import javasabr.rlib.common.util.array.Array; |
24 | 22 | import javasabr.rlib.common.util.array.ArrayFactory; |
| 23 | +import javasabr.rlib.io.util.IoUtils; |
25 | 24 | import javasabr.rlib.logger.api.Logger; |
26 | 25 | import javasabr.rlib.logger.api.LoggerManager; |
27 | 26 | import lombok.AccessLevel; |
@@ -246,7 +245,7 @@ private void scanDirectory( |
246 | 245 | } |
247 | 246 |
|
248 | 247 | loadClass(rootPath, file, path, classes); |
249 | | - } else if (!filename.endsWith(Compiler.SOURCE_EXTENSION)) { |
| 248 | + } else if (!filename.endsWith(SOURCE_EXTENSION)) { |
250 | 249 |
|
251 | 250 | String path = file |
252 | 251 | .subpath(rootPath.getNameCount(), file.getNameCount()) |
@@ -305,12 +304,12 @@ private void scanJarInputStream( |
305 | 304 |
|
306 | 305 | if (name.endsWith(JAR_EXTENSION)) { |
307 | 306 | rout.reset(); |
308 | | - IOUtils.copy(jin, rout, buffer, false); |
309 | | - rin.initFor(rout.getData(), 0, rout.size()); |
| 307 | + IoUtils.copy(jin, rout, buffer, false); |
| 308 | + rin.initFor(rout.data(), 0, rout.size()); |
310 | 309 | scanJar(classes, resources, rin); |
311 | 310 | } else if (name.endsWith(CLASS_EXTENSION)) { |
312 | 311 | loadClass(null, null, name, classes); |
313 | | - } else if (!name.endsWith(Compiler.SOURCE_EXTENSION)) { |
| 312 | + } else if (!name.endsWith(SOURCE_EXTENSION)) { |
314 | 313 | resources.add(name); |
315 | 314 | } |
316 | 315 | } |
|
0 commit comments