Skip to content

Commit 0fe2ccb

Browse files
committed
Cleanups as in 21
1 parent 9538a18 commit 0fe2ccb

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

test/jdk/tools/jlink/plugins/SystemModuleDescriptors/src/com.foo/com/foo/Main.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ public static void main(String... args) throws Exception {
3838

3939
checkMainClass("com.foo", "com.foo.Main");
4040
checkMainClass("net.foo", "net.foo.Main");
41-
/*
42-
Stream.of("jdk.httpserver", "jdk.jfr").forEach(mn ->
43-
ModuleFinder.ofSystem().find(mn).get().descriptor().mainClass()
44-
.orElseThrow(() -> new RuntimeException(mn + " no main class"))
45-
);
46-
*/
4741
}
4842

4943
static void checkMainClass(String mn, String mainClass) {

test/jdk/tools/jlink/plugins/SystemModuleDescriptors/src/com.foo/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@
2222
*/
2323

2424
module com.foo {
25-
requires jdk.httpserver;
2625
requires net.foo;
2726
}

test/jdk/tools/jlink/plugins/SystemModuleDescriptors/src/net.foo/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@
2222
*/
2323

2424
module net.foo {
25-
requires jdk.jfr;
2625
}

test/jdk/tools/jlink/plugins/SystemModuleDescriptors/src/net.foo/net/foo/Main.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ public static void main(String... args) throws Exception {
3838

3939
checkMainClass("com.foo", "com.foo.Main");
4040
checkMainClass("net.foo", "net.foo.Main");
41-
/*
42-
Stream.of("jdk.httpserver", "jdk.jfr").forEach(mn ->
43-
ModuleFinder.ofSystem().find(mn).get().descriptor().mainClass()
44-
.orElseThrow(() -> new RuntimeException(mn + " no main class"))
45-
);
46-
*/
4741
}
4842

4943
static void checkMainClass(String mn, String mainClass) {

0 commit comments

Comments
 (0)