From df21509310fd68a1578b6d9a92fd8a9b8d4cb230 Mon Sep 17 00:00:00 2001 From: Robert Scholte Date: Tue, 23 Dec 2014 16:49:26 +0100 Subject: [PATCH] Fix violations reported by checkstyle --- .../java/org/apache/maven/model/building/ModelSource.java | 5 ++--- .../org/apache/maven/model/building/StringModelSource.java | 5 ++--- .../java/org/apache/maven/model/building/UrlModelSource.java | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource.java b/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource.java index acb4651f81..5db8edbafd 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource.java @@ -1,7 +1,5 @@ package org.apache.maven.model.building; -import org.apache.maven.building.Source; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -21,6 +19,7 @@ import org.apache.maven.building.Source; * under the License. */ +import org.apache.maven.building.Source; /** * Provides access to the contents of a POM independently of the backing store (e.g. file system, database, memory). @@ -33,7 +32,7 @@ import org.apache.maven.building.Source; * @deprecated instead use {@link Source} */ @Deprecated -public interface ModelSource extends org.apache.maven.building.Source +public interface ModelSource extends Source { } diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/building/StringModelSource.java b/maven-model-builder/src/main/java/org/apache/maven/model/building/StringModelSource.java index 1d8406f4c4..cf9c4ce19b 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/building/StringModelSource.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/building/StringModelSource.java @@ -1,7 +1,5 @@ package org.apache.maven.model.building; -import org.apache.maven.building.StringSource; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -21,6 +19,7 @@ import org.apache.maven.building.StringSource; * under the License. */ +import org.apache.maven.building.StringSource; /** * Wraps an ordinary {@link CharSequence} as a model source. @@ -30,7 +29,7 @@ import org.apache.maven.building.StringSource; * @deprecated instead use {@link StringSource} */ @Deprecated -public class StringModelSource extends org.apache.maven.building.StringSource +public class StringModelSource extends StringSource implements ModelSource { diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/building/UrlModelSource.java b/maven-model-builder/src/main/java/org/apache/maven/model/building/UrlModelSource.java index 6ed25ed120..e41d74b384 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/building/UrlModelSource.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/building/UrlModelSource.java @@ -31,7 +31,7 @@ import org.apache.maven.building.UrlSource; * @deprecated instead use {@link UrlSource} */ @Deprecated -public class UrlModelSource extends org.apache.maven.building.UrlSource +public class UrlModelSource extends UrlSource implements ModelSource { /**