Skip to content

Commit 442b9a0

Browse files
authored
Update JarMethodSearcher.java
1 parent 679f85d commit 442b9a0

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/main/java/JarMethodSearcher.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414
public class JarMethodSearcher {
1515

1616
public static void main(String[] args) {
17-
// if (args.length != 2) {
18-
// System.err.println("Usage: java -jar JarMethodFinder.jar <folderPath> <keyword>");
19-
// return;
20-
// }
21-
//
22-
// String folderPath = args[0];
23-
// String keyword = args[1];
24-
String folderPath = "F:\\yonyou-modules-2\\modules\\aedsm\\lib";
25-
String keyword = "loadAttributes";
17+
if (args.length != 2) {
18+
System.err.println("Usage: java -jar JarMethodFinder.jar <folderPath> <keyword>");
19+
return;
20+
}
21+
22+
String folderPath = args[0];
23+
String keyword = args[1];
2624

2725
try {
2826
List<Path> jarFiles = findJarsRecursively(folderPath);
@@ -216,4 +214,4 @@ private static void deleteDirectory(Path path) throws IOException {
216214
});
217215
}
218216
}
219-
}
217+
}

0 commit comments

Comments
 (0)