Skip to content

Commit 7d68cf8

Browse files
committed
Really remove public for JDK25 main methods
1 parent 871bbca commit 7d68cf8

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.jbang/CheckoutPR.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//DEPS org.eclipse.jgit:org.eclipse.jgit.pgm:7.3.0.202506031305-r
2525

2626
public class CheckoutPR {
27-
public static void main(String[] args) throws Exception {
27+
static void main(String[] args) throws Exception {
2828
GitHub github = new GitHubBuilder().build();
2929
GHRepository repo = github.getRepository("JabRef/jabref");
3030

.jbang/CloneJabRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//DEPS org.eclipse.jgit:org.eclipse.jgit.pgm:7.3.0.202506031305-r
1010

1111
public class CloneJabRef {
12-
public static void main(String[] args) throws Exception {
12+
static void main(String[] args) throws Exception {
1313
Path targetDir;
1414
if (args.length == 1) {
1515
targetDir = Path.of(args[0]).toAbsolutePath();

.jbang/JabKitLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
/// This class is required for [jbang](https://www.jbang.dev/)
4343
public class JabKitLauncher {
44-
public static void main(String[] args) {
44+
static void main(String[] args) {
4545
org.jabref.JabKit.main(args);
4646
}
4747
}

.jbang/JabLsLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
/// This class is required for [jbang](https://www.jbang.dev/)
4848
public class JabLsLauncher {
49-
public static void main(String[] args) throws Exception {
49+
static void main(String[] args) throws Exception {
5050
org.jabref.languageserver.cli.ServerCli.main(args);
5151
}
5252
}

.jbang/JabSrvLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
/// This class is required for [jbang](https://www.jbang.dev/)
9292
public class JabSrvLauncher {
93-
public static void main(String[] args) throws Exception {
93+
static void main(String[] args) throws Exception {
9494
org.jabref.http.server.cli.ServerCli.main(args);
9595
}
9696
}

build-support/src/main/java/CitationStyleCatalogGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class CitationStyleCatalogGenerator {
4545

4646
private static final Logger LOGGER = LoggerFactory.getLogger(CitationStyleCatalogGenerator.class);
4747

48-
public static void main(String[] args) {
48+
static void main(String[] args) {
4949
generateCitationStyleCatalog();
5050
}
5151

build-support/src/main/java/JournalListMvGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class JournalListMvGenerator {
4848

4949
private static final Logger LOGGER = LoggerFactory.getLogger(JournalListMvGenerator.class);
5050

51-
public static void main(String[] args) throws IOException {
51+
static void main(String[] args) throws IOException {
5252
boolean verbose = (args.length == 1) && ("--verbose".equals(args[0]));
5353

5454
Path abbreviationsDirectory = Path.of("jablib", "src", "main", "abbrv.jabref.org", "journals");

build-support/src/main/java/LtwaListMvGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class LtwaListMvGenerator {
4646

4747
private static final Logger LOGGER = LoggerFactory.getLogger(LtwaListMvGenerator.class);
4848

49-
public static void main(String[] args) {
49+
static void main(String[] args) {
5050
try {
5151
Path tempCsvFile = Path.of("jablib", "build", "tmp", "ltwa_20210702.csv");
5252
if (!Files.exists(tempCsvFile)) {

0 commit comments

Comments
 (0)