Skip to content

Commit 51c9282

Browse files
author
Vincent Potucek
committed
ShortenFullyQualifiedTypeReferences
1 parent bede125 commit 51c9282

107 files changed

Lines changed: 403 additions & 316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/maven-api-core/src/main/java/org/apache/maven/api/Artifact.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ default String key() {
117117
* Determines whether this artifact uses a snapshot version.
118118
*
119119
* @return {@code true} if the artifact is a snapshot, {@code false} otherwise
120-
* @see org.apache.maven.api.Session#isVersionSnapshot(String)
120+
* @see Session#isVersionSnapshot(String)
121121
*/
122122
boolean isSnapshot();
123123

124124
/**
125125
* {@return coordinates with the same identifiers as this artifact}
126126
* This is a shortcut for {@code session.createArtifactCoordinates(artifact)}.
127127
*
128-
* @see org.apache.maven.api.Session#createArtifactCoordinates(Artifact)
128+
* @see Session#createArtifactCoordinates(Artifact)
129129
*/
130130
@Nonnull
131131
ArtifactCoordinates toCoordinates();

api/maven-api-core/src/main/java/org/apache/maven/api/Packaging.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
* }
5555
* </pre>
5656
*
57-
* @see org.apache.maven.api.Session#requirePackaging(String)
58-
* @see org.apache.maven.api.Project#getPackaging()
57+
* @see Session#requirePackaging(String)
58+
* @see Project#getPackaging()
5959
* @see org.apache.maven.api.model.Model#getPackaging()
6060
* @since 4.0.0
6161
*/

api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ Map<PathType, List<Path>> resolveDependencies(
693693
*
694694
* @param artifact the artifact for which to resolve the version
695695
* @return resolved version of the given artifact
696-
* @throws org.apache.maven.api.services.VersionResolverException if the resolution failed
696+
* @throws VersionResolverException if the resolution failed
697697
*
698698
* @see org.apache.maven.api.services.VersionResolver#resolve(Session, ArtifactCoordinates) (String)
699699
*/
@@ -839,7 +839,7 @@ Optional<Version> resolveHighestVersion(@Nonnull ArtifactCoordinates artifact, L
839839
* @return the scope for the given identifier (never null)
840840
* @throws IllegalArgumentException if the given identifier is not a known scope
841841
*
842-
* @see org.apache.maven.api.DependencyScope#forId(String)
842+
* @see DependencyScope#forId(String)
843843
*/
844844
@Nonnull
845845
DependencyScope requireDependencyScope(@Nonnull String id);

api/maven-api-core/src/main/java/org/apache/maven/api/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* @since 4.0.0
3030
* @see org.apache.maven.api.services.VersionParser#parseVersion(String)
31-
* @see org.apache.maven.api.Session#parseVersion(String)
31+
* @see Session#parseVersion(String)
3232
* @see VersionConstraint
3333
* @see VersionRange
3434
*/

api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @see Version
3333
* @see VersionRange
3434
* @see org.apache.maven.api.services.VersionParser#parseVersionConstraint(String)
35-
* @see org.apache.maven.api.Session#parseVersionConstraint(String)
35+
* @see Session#parseVersionConstraint(String)
3636
* @since 4.0.0
3737
*/
3838
@Experimental

api/maven-api-core/src/main/java/org/apache/maven/api/VersionRange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @see Version
3232
* @see VersionConstraint
3333
* @see org.apache.maven.api.services.VersionParser#parseVersionRange(String)
34-
* @see org.apache.maven.api.Session#parseVersionRange(String)
34+
* @see Session#parseVersionRange(String)
3535
* @since 4.0.0
3636
*/
3737
@Experimental

api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public interface DependencyResolverResult extends Result<DependencyResolverReque
8282
* Returns the file paths of all dependencies and their assignments to different paths.
8383
* The {@link PathType} keys identify, for example, {@code --class-path} or {@code --module-path} options.
8484
* In the case of Java tools, the map may also contain {@code --patch-module} options, which are
85-
* {@linkplain org.apache.maven.api.JavaPathType#patchModule(String) handled in a special way}.
85+
* {@linkplain JavaPathType#patchModule(String) handled in a special way}.
8686
*
8787
* <h4>Design note</h4>
8888
* All types of path are determined together because they are sometime mutually exclusive.

api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
public interface ProblemCollector<P extends BuilderProblem> {
4747
/**
4848
* Returns {@code true} if there is at least one problem collected with severity equal or more severe than
49-
* {@link org.apache.maven.api.services.BuilderProblem.Severity#WARNING}. This check is logically equivalent
49+
* {@link BuilderProblem.Severity#WARNING}. This check is logically equivalent
5050
* to "is there any problem reported?", given warning is the lowest severity.
5151
*/
5252
default boolean hasWarningProblems() {
@@ -55,15 +55,15 @@ default boolean hasWarningProblems() {
5555

5656
/**
5757
* Returns {@code true} if there is at least one problem collected with severity equal or more severe than
58-
* {@link org.apache.maven.api.services.BuilderProblem.Severity#ERROR}.
58+
* {@link BuilderProblem.Severity#ERROR}.
5959
*/
6060
default boolean hasErrorProblems() {
6161
return hasProblemsFor(BuilderProblem.Severity.ERROR);
6262
}
6363

6464
/**
6565
* Returns {@code true} if there is at least one problem collected with severity equal or more severe than
66-
* {@link org.apache.maven.api.services.BuilderProblem.Severity#FATAL}.
66+
* {@link BuilderProblem.Severity#FATAL}.
6767
*/
6868
default boolean hasFatalProblems() {
6969
return hasProblemsFor(BuilderProblem.Severity.FATAL);

api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* during parallel builds.
5555
*
5656
* @since 4.0.0
57-
* @see org.apache.maven.api.services.ProjectBuilder
57+
* @see ProjectBuilder
5858
* @see Project
5959
*/
6060
@Experimental

api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.apache.maven.api.Session;
2525
import org.apache.maven.api.annotations.Experimental;
2626
import org.apache.maven.api.annotations.Nonnull;
27+
import org.apache.maven.api.settings.Profile;
2728
import org.apache.maven.api.settings.Settings;
2829

2930
/**
@@ -125,11 +126,11 @@ default ProblemCollector<BuilderProblem> validate(@Nonnull Settings settings) {
125126
* Convert a model profile to a settings profile.
126127
*/
127128
@Nonnull
128-
org.apache.maven.api.settings.Profile convert(@Nonnull org.apache.maven.api.model.Profile profile);
129+
Profile convert(@Nonnull org.apache.maven.api.model.Profile profile);
129130

130131
/**
131132
* Convert a settings profile to a model profile.
132133
*/
133134
@Nonnull
134-
org.apache.maven.api.model.Profile convert(@Nonnull org.apache.maven.api.settings.Profile profile);
135+
org.apache.maven.api.model.Profile convert(@Nonnull Profile profile);
135136
}

0 commit comments

Comments
 (0)