Skip to content

Commit 362873f

Browse files
committed
Try again
1 parent 4c64b0a commit 362873f

File tree

712 files changed

+12502
-7694
lines changed

Some content is hidden

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

712 files changed

+12502
-7694
lines changed

.jbang/CheckoutPR.java

Lines changed: 8 additions & 8 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
@@ -62,7 +62,7 @@ public static void main(String[] args) throws Exception {
6262
while (prIterator.hasNext()) {
6363
pr = prIterator.next();
6464
if ((contributor.isEmpty() || pr.getHead().getUser().getLogin().equals(contributor)) &&
65-
pr.getHead().getRef().equals(branchName)) {
65+
pr.getHead().getRef().equals(branchName)) {
6666
found = true;
6767
System.out.println("Found pull request #" + pr.getNumber());
6868
break;
@@ -165,9 +165,9 @@ private static void checkoutUpstreamMain() throws Exception {
165165
// Check if a remote pointing to JabRef/jabref already exists
166166
List<RemoteConfig> remotes = git.remoteList().call();
167167
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();
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();
171171

172172
String remoteToUse;
173173
if (jabrefRemote.isPresent()) {
@@ -176,9 +176,9 @@ private static void checkoutUpstreamMain() throws Exception {
176176
} else {
177177
System.out.println("Adding remote 'upstream' pointing to " + jabrefRepoUrl);
178178
git.remoteAdd()
179-
.setName(upstreamName)
180-
.setUri(new URIish(jabrefRepoUrl))
181-
.call();
179+
.setName(upstreamName)
180+
.setUri(new URIish(jabrefRepoUrl))
181+
.call();
182182
remoteToUse = upstreamName;
183183
}
184184

.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: 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
//JAVA 24
44
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED

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: 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
//JAVA 24
44
//RUNTIME_OPTIONS --enable-native-access=ALL-UNNAMED

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class CliImportHelper {
3030
* @param location URL or file path to import
3131
*/
3232
public static Optional<ParserResult> importFile(String location,
33-
CliPreferences cliPreferences,
34-
boolean porcelain) {
33+
CliPreferences cliPreferences,
34+
boolean porcelain) {
3535
LOGGER.debug("Importing file from locaiton {}", location);
3636
String[] data = location.split(",");
3737

@@ -42,7 +42,7 @@ public static Optional<ParserResult> importFile(String location,
4242
try {
4343
file = new URLDownload(address).toTemporaryFile();
4444
} catch (FetcherException |
45-
MalformedURLException e) {
45+
MalformedURLException e) {
4646
System.err.println(Localization.lang("Problem downloading from %0: %1", address, e.getLocalizedMessage()));
4747
return Optional.empty();
4848
}
@@ -63,9 +63,9 @@ public static Optional<ParserResult> importFile(String location,
6363
return importResult;
6464
}
6565

66-
public static Optional<ParserResult> importFile(Path file,
67-
CliPreferences cliPreferences,
68-
boolean porcelain) {
66+
public static Optional<ParserResult> importFile(Path file,
67+
CliPreferences cliPreferences,
68+
boolean porcelain) {
6969
try {
7070
ImportFormatReader importFormatReader = new ImportFormatReader(
7171
cliPreferences.getImporterPreferences(),

jabgui/src/main/java/org/jabref/gui/JabRefDialogService.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -446,23 +446,23 @@ public void notify(String message) {
446446
LOGGER.info(message);
447447

448448
UiTaskExecutor.runInJavaFXThread(() ->
449-
Notifications.create()
450-
.text(message)
451-
.position(Pos.BOTTOM_CENTER)
452-
.hideAfter(TOAST_MESSAGE_DISPLAY_TIME)
453-
.owner(mainWindow)
454-
.threshold(5,
455-
Notifications.create()
456-
.title(Localization.lang("Last notification"))
457-
.text(
458-
"(" + Localization.lang("Check the event log to see all notifications") + ")"
459-
+ "\n\n" + message)
460-
.onAction(e -> {
461-
ErrorConsoleAction ec = new ErrorConsoleAction();
462-
ec.execute();
463-
}))
464-
.hideCloseButton()
465-
.show());
449+
Notifications.create()
450+
.text(message)
451+
.position(Pos.BOTTOM_CENTER)
452+
.hideAfter(TOAST_MESSAGE_DISPLAY_TIME)
453+
.owner(mainWindow)
454+
.threshold(5,
455+
Notifications.create()
456+
.title(Localization.lang("Last notification"))
457+
.text(
458+
"(" + Localization.lang("Check the event log to see all notifications") + ")"
459+
+ "\n\n" + message)
460+
.onAction(e -> {
461+
ErrorConsoleAction ec = new ErrorConsoleAction();
462+
ec.execute();
463+
}))
464+
.hideCloseButton()
465+
.show());
466466
}
467467

468468
@Override

0 commit comments

Comments
 (0)