Skip to content

Commit d12ab50

Browse files
author
Vincent Potucek
committed
ShortenFullyQualifiedTypeReferences
1 parent cd7617a commit d12ab50

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

compat/maven-compat/src/main/java/org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
*/
2626
@Deprecated
2727
public abstract class AbstractArtifactMetadata
28-
extends org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata
29-
implements ArtifactMetadata {
28+
extends org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata implements ArtifactMetadata {
3029
protected AbstractArtifactMetadata(Artifact artifact) {
3130
super(artifact);
3231
}

compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@
3030
@Deprecated
3131
@Named
3232
@Singleton
33-
public class DefaultArtifactCollector extends DefaultLegacyArtifactCollector
34-
implements ArtifactCollector {}
33+
public class DefaultArtifactCollector extends DefaultLegacyArtifactCollector implements ArtifactCollector {}

compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ public void sessionEnded(ExecutionEvent event) {
147147

148148
ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory();
149149

150-
if (iLoggerFactory instanceof LogLevelRecorder recorder
151-
&& recorder.hasReachedMaxLevel()) {
150+
if (iLoggerFactory instanceof LogLevelRecorder recorder && recorder.hasReachedMaxLevel()) {
152151
event.getSession()
153152
.getResult()
154153
.addException(

compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public class MavenPropertiesLoader {
3737
public static final String OVERRIDE_PREFIX =
3838
"maven.override."; // prefix that marks that system property should override defaults.
3939

40-
public static void loadProperties(
41-
Properties properties, Path path, UnaryOperator<String> callback, boolean escape)
40+
public static void loadProperties(Properties properties, Path path, UnaryOperator<String> callback, boolean escape)
4241
throws IOException {
4342
MavenProperties sp = new MavenProperties(false);
4443
if (Files.exists(path)) {

impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ public void sessionEnded(ExecutionEvent event) {
152152

153153
ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory();
154154

155-
if (iLoggerFactory instanceof LogLevelRecorder recorder
156-
&& recorder.hasReachedMaxLevel()) {
155+
if (iLoggerFactory instanceof LogLevelRecorder recorder && recorder.hasReachedMaxLevel()) {
157156
event.getSession()
158157
.getResult()
159158
.addException(

impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public class MavenPropertiesLoader {
3636
public static final String OVERRIDE_PREFIX =
3737
"maven.override."; // prefix that marks that system property should override defaults.
3838

39-
public static void loadProperties(
40-
Properties properties, Path path, UnaryOperator<String> callback, boolean escape)
39+
public static void loadProperties(Properties properties, Path path, UnaryOperator<String> callback, boolean escape)
4140
throws IOException {
4241
MavenProperties sp = new MavenProperties(false);
4342
if (Files.exists(path)) {

0 commit comments

Comments
 (0)