From 41f746327bbff2f1a59861e19c606ffa23fab841 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Fri, 29 Sep 2023 21:01:48 +0900 Subject: [PATCH] refactor: tweak Contributor constructor call Signed-off-by: Hiroshi Miura --- .../src/main/java/org/languagetool/language/Contributor.java | 5 +++++ .../main/java/org/languagetool/language/ml/Malayalam.java | 2 +- .../src/main/java/org/languagetool/language/sv/Swedish.java | 2 +- .../main/java/org/languagetool/language/uk/Ukrainian.java | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/languagetool-core/src/main/java/org/languagetool/language/Contributor.java b/languagetool-core/src/main/java/org/languagetool/language/Contributor.java index ee42a9f5b1ddf..bf70ae1c410a0 100644 --- a/languagetool-core/src/main/java/org/languagetool/language/Contributor.java +++ b/languagetool-core/src/main/java/org/languagetool/language/Contributor.java @@ -18,6 +18,8 @@ */ package org.languagetool.language; +import lombok.Getter; + import java.util.Objects; /** @@ -25,7 +27,10 @@ */ public final class Contributor { + @Getter private final String name; + + @Getter private final String url; /** diff --git a/languagetool-language-modules/ml/src/main/java/org/languagetool/language/ml/Malayalam.java b/languagetool-language-modules/ml/src/main/java/org/languagetool/language/ml/Malayalam.java index 756706ec90153..a809222894971 100644 --- a/languagetool-language-modules/ml/src/main/java/org/languagetool/language/ml/Malayalam.java +++ b/languagetool-language-modules/ml/src/main/java/org/languagetool/language/ml/Malayalam.java @@ -71,7 +71,7 @@ public Tagger createDefaultTagger() { @Override public Contributor[] getMaintainers() { - return new Contributor[] { new Contributor("Jithesh.V.S") }; + return new Contributor[] { new Contributor("Jithesh.V.S", null) }; } @Override diff --git a/languagetool-language-modules/sv/src/main/java/org/languagetool/language/sv/Swedish.java b/languagetool-language-modules/sv/src/main/java/org/languagetool/language/sv/Swedish.java index 858d5b34bfdbd..aa4f76fe880c9 100644 --- a/languagetool-language-modules/sv/src/main/java/org/languagetool/language/sv/Swedish.java +++ b/languagetool-language-modules/sv/src/main/java/org/languagetool/language/sv/Swedish.java @@ -86,7 +86,7 @@ public Synthesizer createDefaultSynthesizer() { @Override public Contributor[] getMaintainers() { - return new Contributor[] {new Contributor("ljo@fps_gbg")}; + return new Contributor[] {new Contributor("ljo@fps_gbg", null)}; } @Override diff --git a/languagetool-language-modules/uk/src/main/java/org/languagetool/language/uk/Ukrainian.java b/languagetool-language-modules/uk/src/main/java/org/languagetool/language/uk/Ukrainian.java index d8ff9eb142182..6395bc01c4bda 100644 --- a/languagetool-language-modules/uk/src/main/java/org/languagetool/language/uk/Ukrainian.java +++ b/languagetool-language-modules/uk/src/main/java/org/languagetool/language/uk/Ukrainian.java @@ -121,8 +121,8 @@ public SentenceTokenizer createDefaultSentenceTokenizer() { @Override public Contributor[] getMaintainers() { return new Contributor[] { - new Contributor("Andriy Rysin"), - new Contributor("Maksym Davydov") + new Contributor("Andriy Rysin", null), + new Contributor("Maksym Davydov", null) }; }