From dcbc3ccb8b8f1cc96f4092f7288accd8481fb11f Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Fri, 29 Sep 2023 10:56:47 +0900 Subject: [PATCH] refactor: make classes accessed from language-* to public - escalate o.l.c.TokenExpressionFactory and o.o.l.l.Contributor(s) Signed-off-by: Hiroshi Miura --- .../org/languagetool/chunking/TokenExpressionFactory.java | 4 ++-- .../main/java/org/languagetool/language/Contributor.java | 4 ++-- .../main/java/org/languagetool/language/Contributors.java | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/languagetool-core/src/main/java/org/languagetool/chunking/TokenExpressionFactory.java b/languagetool-core/src/main/java/org/languagetool/chunking/TokenExpressionFactory.java index 6c1a8f0f3f98e..27e5d4e083570 100644 --- a/languagetool-core/src/main/java/org/languagetool/chunking/TokenExpressionFactory.java +++ b/languagetool-core/src/main/java/org/languagetool/chunking/TokenExpressionFactory.java @@ -25,14 +25,14 @@ /** * @since 2.9 */ -final class TokenExpressionFactory extends ExpressionFactory { +public final class TokenExpressionFactory extends ExpressionFactory { private final boolean caseSensitive; /** * @param caseSensitive whether word tokens should be compared case-sensitively - also used for regular expressions */ - TokenExpressionFactory(boolean caseSensitive) { + public TokenExpressionFactory(boolean caseSensitive) { this.caseSensitive = caseSensitive; } 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 23b063514e36e..18de191653610 100644 --- a/languagetool-core/src/main/java/org/languagetool/language/Contributor.java +++ b/languagetool-core/src/main/java/org/languagetool/language/Contributor.java @@ -32,12 +32,12 @@ public final class Contributor { * @param name full name * @param url URL to homepage or similar (optional) */ - Contributor(String name, String url) { + public Contributor(String name, String url) { this.name = Objects.requireNonNull(name, "name cannot be null"); this.url = url; } - Contributor(String name) { + public Contributor(String name) { this(name, null); } diff --git a/languagetool-core/src/main/java/org/languagetool/language/Contributors.java b/languagetool-core/src/main/java/org/languagetool/language/Contributors.java index 43f2555a04a82..446362bacb6b8 100644 --- a/languagetool-core/src/main/java/org/languagetool/language/Contributors.java +++ b/languagetool-core/src/main/java/org/languagetool/language/Contributors.java @@ -21,13 +21,13 @@ /** * Constants for contributors who contribute to more than one language (use to avoid duplication). */ -final class Contributors { +public final class Contributors { private Contributors() { } - static final Contributor MARCIN_MILKOWSKI = new Contributor("Marcin Miłkowski", "http://marcinmilkowski.pl"); - static final Contributor DANIEL_NABER = new Contributor("Daniel Naber", "http://www.danielnaber.de"); - static final Contributor DOMINIQUE_PELLE = new Contributor("Dominique Pellé", "http://dominiko.livejournal.com/tag/lingvoilo"); + public static final Contributor MARCIN_MILKOWSKI = new Contributor("Marcin Miłkowski", "http://marcinmilkowski.pl"); + public static final Contributor DANIEL_NABER = new Contributor("Daniel Naber", "http://www.danielnaber.de"); + public static final Contributor DOMINIQUE_PELLE = new Contributor("Dominique Pellé", "http://dominiko.livejournal.com/tag/lingvoilo"); }