Skip to content

Commit 7bafe6e

Browse files
committed
Compile fix
1 parent 4c64b0a commit 7bafe6e

File tree

1,238 files changed

+23490
-17941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,238 files changed

+23490
-17941
lines changed

.jbang/CheckoutPR.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import org.kohsuke.github.GitHubBuilder;
1616
import org.kohsuke.github.PagedIterator;
1717

18-
///usr/bin/env jbang "$0" "$@" ; exit $?
18+
/// usr/bin/env jbang "$0" "$@" ; exit $?
1919

2020
//JAVA 21+
2121
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED
@@ -37,7 +37,8 @@ public static void main(String[] args) throws Exception {
3737
int prNumber;
3838
try {
3939
prNumber = Integer.parseInt(arg);
40-
} catch (NumberFormatException ex) {
40+
} catch (
41+
NumberFormatException ex) {
4142
prNumber = -1;
4243
}
4344

@@ -62,7 +63,7 @@ public static void main(String[] args) throws Exception {
6263
while (prIterator.hasNext()) {
6364
pr = prIterator.next();
6465
if ((contributor.isEmpty() || pr.getHead().getUser().getLogin().equals(contributor)) &&
65-
pr.getHead().getRef().equals(branchName)) {
66+
pr.getHead().getRef().equals(branchName)) {
6667
found = true;
6768
System.out.println("Found pull request #" + pr.getNumber());
6869
break;
@@ -165,9 +166,9 @@ private static void checkoutUpstreamMain() throws Exception {
165166
// Check if a remote pointing to JabRef/jabref already exists
166167
List<RemoteConfig> remotes = git.remoteList().call();
167168
Optional<RemoteConfig> jabrefRemote = remotes.stream()
168-
// We use "contains", because there could be SSH remote URLs
169-
.filter(r -> r.getURIs().stream().anyMatch(uri -> uri.toString().contains("JabRef/jabref")))
170-
.findFirst();
169+
// We use "contains", because there could be SSH remote URLs
170+
.filter(r -> r.getURIs().stream().anyMatch(uri -> uri.toString().contains("JabRef/jabref")))
171+
.findFirst();
171172

172173
String remoteToUse;
173174
if (jabrefRemote.isPresent()) {
@@ -176,9 +177,9 @@ private static void checkoutUpstreamMain() throws Exception {
176177
} else {
177178
System.out.println("Adding remote 'upstream' pointing to " + jabrefRepoUrl);
178179
git.remoteAdd()
179-
.setName(upstreamName)
180-
.setUri(new URIish(jabrefRepoUrl))
181-
.call();
180+
.setName(upstreamName)
181+
.setUri(new URIish(jabrefRepoUrl))
182+
.call();
182183
remoteToUse = upstreamName;
183184
}
184185

.jbang/CloneJabRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.nio.file.Files;
22
import java.nio.file.Path;
33

4-
///usr/bin/env jbang "$0" "$@" ; exit $?
4+
/// usr/bin/env jbang "$0" "$@" ; exit $?
55

66
//JAVA 21+
77
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED

.jbang/JabKitLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//DESCRIPTION jabkit - mange BibTeX files using JabRef
44

.jbang/JabLsLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//DESCRIPTION jabls - start a bibtex languageserver
44

.jbang/JabSrvLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//DESCRIPTION jabsrv - serve BibTeX files using JabRef
44

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//JAVA 24
44
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED
@@ -70,7 +70,8 @@ public static void generateCitationStyleCatalog() {
7070

7171
Path catalogPath = root.resolve(CATALOG_PATH);
7272
generateCatalog(styles, stylesRoot, catalogPath);
73-
} catch (IOException e) {
73+
} catch (
74+
IOException e) {
7475
LOGGER.error("Error generating citation style catalog", e);
7576
}
7677
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//JAVA 24
44
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED
@@ -44,7 +44,6 @@
4444
import org.slf4j.Logger;
4545
import org.slf4j.LoggerFactory;
4646

47-
4847
/// Has to be started in the root of the repository due to <https://github.com/jbangdev/jbang-gradle-plugin/issues/11>
4948
public class JournalListMvGenerator {
5049

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
///usr/bin/env jbang "$0" "$@" ; exit $?
1+
/// usr/bin/env jbang "$0" "$@" ; exit $?
22

33
//JAVA 24
44
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED
@@ -62,7 +62,8 @@ public static void main(String[] args) {
6262
generateMvStore(tempCsvFile, outputFile);
6363

6464
LOGGER.info("LTWA MVStore file generated successfully at {}.", outputFile.toAbsolutePath());
65-
} catch (IOException e) {
65+
} catch (
66+
IOException e) {
6667
LOGGER.error("Error generating LTWA MVStore file.", e);
6768
}
6869
}

jabgui/src/main/java/org/jabref/Launcher.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@
4444
public class Launcher {
4545
private static Logger LOGGER;
4646

47-
public enum MultipleInstanceAction {
48-
CONTINUE,
49-
SHUTDOWN,
50-
FOCUS
51-
}
52-
5347
public static void main(String[] args) {
5448
initLogging(args);
5549

@@ -118,7 +112,8 @@ public static void initLogging(String[] args) {
118112
Path directory = Directories.getLogDirectory(new BuildInfo().version);
119113
try {
120114
Files.createDirectories(directory);
121-
} catch (IOException e) {
115+
} catch (
116+
IOException e) {
122117
LOGGER = LoggerFactory.getLogger(Launcher.class);
123118
LOGGER.error("Could not create log directory {}", directory, e);
124119
return;
@@ -193,4 +188,10 @@ private static void configureProxy(ProxyPreferences proxyPreferences) {
193188
private static void configureSSL(SSLPreferences sslPreferences) {
194189
TrustStoreManager.createTruststoreFileIfNotExist(Path.of(sslPreferences.getTruststorePath()));
195190
}
191+
192+
public enum MultipleInstanceAction {
193+
CONTINUE,
194+
SHUTDOWN,
195+
FOCUS
196+
}
196197
}

jabgui/src/main/java/org/jabref/cli/ArgumentProcessor.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,12 @@
1717

1818
public class ArgumentProcessor {
1919
private static final Logger LOGGER = LoggerFactory.getLogger(ArgumentProcessor.class);
20-
21-
public enum Mode { INITIAL_START, REMOTE_START }
22-
2320
private final Mode startupMode;
2421
private final GuiPreferences preferences;
2522
private final GuiCommandLine guiCli;
2623
private final CommandLine cli;
27-
2824
private final List<UiCommand> uiCommands = new ArrayList<>();
2925
private boolean guiNeeded = true;
30-
3126
public ArgumentProcessor(String[] args,
3227
Mode startupMode,
3328
GuiPreferences preferences) {
@@ -93,7 +88,8 @@ private void resetPreferences() {
9388
System.out.println(Localization.lang("Setting all preferences to default values."));
9489
preferences.clear();
9590
new SharedDatabasePreferences().clear();
96-
} catch (BackingStoreException e) {
91+
} catch (
92+
BackingStoreException e) {
9793
System.err.println(Localization.lang("Unable to clear preferences."));
9894
LOGGER.error("Unable to clear preferences", e);
9995
}
@@ -106,4 +102,6 @@ public boolean shouldShutDown() {
106102
public GuiCommandLine getGuiCli() {
107103
return guiCli;
108104
}
105+
106+
public enum Mode { INITIAL_START, REMOTE_START }
109107
}

0 commit comments

Comments
 (0)