MCPcopy Index your code
hub / github.com/benfry/processing4 / findCollision

Method findCollision

app/src/processing/app/Library.java:538–556  ·  view source on GitHub ↗
(File folder)

Source from the content-addressed store, hash-verified

536
537
538 static public String findCollision(File folder) {
539 File[] jars = PApplet.listFiles(folder, "recursive", "extension=jar");
540 if (jars != null) {
541 for (File file : jars) {
542 try {
543 ZipFile zf = new ZipFile(file);
544 if (zf.getEntry("processing/core/PApplet.class") != null) {
545 return "processing.core";
546 }
547 if (zf.getEntry("processing/app/Base.class") != null) {
548 return "processing.app";
549 }
550 } catch (IOException e) {
551 // ignored
552 }
553 }
554 }
555 return null;
556 }
557
558
559 static public List<File> discover(File folder) {

Callers 1

discoverMethod · 0.95

Calls 1

listFilesMethod · 0.95

Tested by

no test coverage detected