From a771fc5cc10e36ac8f3582ea6305ae068711f749 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sat, 5 Oct 2024 22:33:16 +0200 Subject: [PATCH] Join strings passed to LOGGER --- .../java/org/jabref/logic/importer/fetcher/ArXivFetcher.java | 3 +-- .../java/org/jabref/logic/importer/fileformat/IsiImporter.java | 3 +-- .../java/org/jabref/logic/openoffice/backend/Backend52.java | 2 +- .../logic/remote/server/RemoteListenerServerManager.java | 3 +-- src/main/java/org/jabref/model/groups/SearchGroup.java | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/jabref/logic/importer/fetcher/ArXivFetcher.java b/src/main/java/org/jabref/logic/importer/fetcher/ArXivFetcher.java index 5607f681dd4..b943398c760 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/ArXivFetcher.java +++ b/src/main/java/org/jabref/logic/importer/fetcher/ArXivFetcher.java @@ -278,8 +278,7 @@ private void inplaceAsyncInfuseArXivWithDoi(BibEntry arXivBibEntry) { try { this.inplaceAsyncInfuseArXivWithDoi(arXivBibEntryCompletedFuture, arXivBibEntryId); } catch (FetcherException e) { - LOGGER.error("FetcherException should not be found here, as main Bibtex Entry already exists " + - "(and failing additional fetches should be skipped)", e); + LOGGER.error("FetcherException should not be found here, as main Bibtex Entry already exists (and failing additional fetches should be skipped)", e); } } diff --git a/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java b/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java index ab376a82cd2..0a25cebe469 100644 --- a/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java +++ b/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java @@ -359,8 +359,7 @@ static String parseMonth(String value) { return month.get().getJabRefFormat(); } } catch (NumberFormatException e) { - LOGGER.info("The import file in ISI format cannot parse part of the content in PD into integers " + - "(If there is no month or PD displayed in the imported entity, this may be the reason)", e); + LOGGER.info("The import file in ISI format cannot parse part of the content in PD into integers (If there is no month or PD displayed in the imported entity, this may be the reason)", e); } } return null; diff --git a/src/main/java/org/jabref/logic/openoffice/backend/Backend52.java b/src/main/java/org/jabref/logic/openoffice/backend/Backend52.java index a07ceda0734..3535e108050 100644 --- a/src/main/java/org/jabref/logic/openoffice/backend/Backend52.java +++ b/src/main/java/org/jabref/logic/openoffice/backend/Backend52.java @@ -199,7 +199,7 @@ public CitationGroup createCitationGroup(XTextDocument doc, cit.setPageInfo(pageInfo); } else { if (pageInfo.isPresent()) { - LOGGER.warn("dataModel JabRef52" + " only supports pageInfo for the last citation of a group"); + LOGGER.warn("dataModel JabRef52 only supports pageInfo for the last citation of a group"); } } break; diff --git a/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerManager.java b/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerManager.java index 4721a96c8e1..65c7a37d9a6 100644 --- a/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerManager.java +++ b/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerManager.java @@ -41,8 +41,7 @@ public void open(RemoteMessageHandler messageHandler, int port) { try { remoteServerThread = new RemoteListenerServerThread(messageHandler, port); } catch (BindException e) { - LOGGER.error("There was an error opening the configured network port {}. Please ensure there isn't another" + - " application already using that port.", port); + LOGGER.error("There was an error opening the configured network port {}. Please ensure there isn't another application already using that port.", port); remoteServerThread = null; } catch (IOException e) { LOGGER.error("Unknown error while opening the network port.", e); diff --git a/src/main/java/org/jabref/model/groups/SearchGroup.java b/src/main/java/org/jabref/model/groups/SearchGroup.java index e366f8c6d83..4ba85e8974a 100644 --- a/src/main/java/org/jabref/model/groups/SearchGroup.java +++ b/src/main/java/org/jabref/model/groups/SearchGroup.java @@ -91,7 +91,7 @@ public AbstractGroup deepCopy() { } catch (Throwable t) { // this should never happen, because the constructor obviously // succeeded in creating _this_ instance! - LOGGER.error("Internal error in SearchGroup.deepCopy(). " + "Please report this on https://github.com/JabRef/jabref/issues", t); + LOGGER.error("Internal error in SearchGroup.deepCopy(). Please report this on https://github.com/JabRef/jabref/issues", t); return null; } }