From 9bf8fd2d0be10a24791c1994f8e668a4bab0608b Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 29 May 2022 21:51:09 +0200 Subject: [PATCH] [MRELEASE-1098] Drop o.a.m.shared.release.env.ReleaseEnvironment.getLocale() This closes #136 --- .../release/env/ReleaseEnvironment.java | 9 -------- .../env/DefaultReleaseEnvironment.java | 21 ------------------- 2 files changed, 30 deletions(-) diff --git a/maven-release-api/src/main/java/org/apache/maven/shared/release/env/ReleaseEnvironment.java b/maven-release-api/src/main/java/org/apache/maven/shared/release/env/ReleaseEnvironment.java index 2614473da..df3ea3d9e 100644 --- a/maven-release-api/src/main/java/org/apache/maven/shared/release/env/ReleaseEnvironment.java +++ b/maven-release-api/src/main/java/org/apache/maven/shared/release/env/ReleaseEnvironment.java @@ -20,7 +20,6 @@ */ import java.io.File; -import java.util.Locale; import org.apache.maven.settings.Settings; @@ -68,12 +67,4 @@ public interface ReleaseEnvironment * @return a {@link java.io.File} object */ File getJavaHome(); - - /** - *

getLocale.

- * - * @return the locale - * @since 2.4 - */ - Locale getLocale(); } diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/env/DefaultReleaseEnvironment.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/env/DefaultReleaseEnvironment.java index e26684450..b9a393f3a 100644 --- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/env/DefaultReleaseEnvironment.java +++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/env/DefaultReleaseEnvironment.java @@ -20,7 +20,6 @@ */ import java.io.File; -import java.util.Locale; import org.apache.maven.settings.Settings; @@ -40,8 +39,6 @@ public class DefaultReleaseEnvironment private String mavenExecutorId = DEFAULT_MAVEN_EXECUTOR_ID; - private Locale locale = Locale.ENGLISH; - @Override public File getMavenHome() { @@ -138,22 +135,4 @@ public DefaultReleaseEnvironment setLocalRepositoryDirectory( File localReposito this.localRepositoryDirectory = localRepositoryDirectory; return this; } - - @Override - public Locale getLocale() - { - return locale; - } - - /** - *

Setter for the field locale.

- * - * @param locale a {@link java.util.Locale} object - * @return a {@link org.apache.maven.shared.release.env.DefaultReleaseEnvironment} object - */ - public DefaultReleaseEnvironment setLocale( Locale locale ) - { - this.locale = locale; - return this; - } }