From fe185ee533af5b27ecda40473db5ddbc533d8b66 Mon Sep 17 00:00:00 2001 From: JunfengGao Date: Wed, 25 Oct 2023 12:16:32 +1100 Subject: [PATCH 1/2] Enhancement : Refactor getResolvedFieldOrAlias for clarity and modern style - Use Stream API for better readability and concise code. - Simplify the logic to fetch the first resolved field or alias. - No change in the method's functionality or output. --- settings.gradle | 2 +- .../java/org/jabref/model/entry/BibEntry.java | 41 +++++++++++-------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/settings.gradle b/settings.gradle index 0d665b1d64f..81ec9286fd6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,4 +11,4 @@ plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" } -rootProject.name = "JabRef" +rootProject.name = "jabRef" diff --git a/src/main/java/org/jabref/model/entry/BibEntry.java b/src/main/java/org/jabref/model/entry/BibEntry.java index c5590a1348a..6f3476a5820 100644 --- a/src/main/java/org/jabref/model/entry/BibEntry.java +++ b/src/main/java/org/jabref/model/entry/BibEntry.java @@ -52,17 +52,17 @@ /** * Represents a Bib(La)TeX entry, which can be BibTeX or BibLaTeX. *

- * Example: + * Example: * - *

{@code
+ * 
{@code
  * Some commment
  * @misc{key,
  *   fieldName = {fieldValue},
  *   otherFieldName = {otherVieldValue}
  * }
  *     }
- * - * Then, + *

+ * Then, *