Skip to content

Commit 4bfdc34

Browse files
author
Vincent Potucek
committed
[S1161] rule: category/java/bestpractices.xml/MissingOverride
1 parent 28458ba commit 4bfdc34

File tree

408 files changed

+1433
-8
lines changed

Some content is hidden

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

408 files changed

+1433
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
.factorypath
1717
.vscode/
1818
repo/
19-
/*.svg
19+
/*.svg
20+
.pmd/.cache

.pmd/ruleset.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<ruleset name="bestpractices"
21+
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
22+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
24+
<rule ref="category/java/bestpractices.xml/MissingOverride" />
25+
</ruleset>

api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,6 @@ public interface MavenOptions extends Options {
229229
* @return a new MavenOptions instance with interpolated values
230230
*/
231231
@Nonnull
232+
@Override
232233
MavenOptions interpolate(@Nonnull UnaryOperator<String> callback);
233234
}

api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptOptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ public interface EncryptOptions extends Options {
6464
* @return a new EncryptOptions instance with interpolated values
6565
*/
6666
@Nonnull
67+
@Override
6768
EncryptOptions interpolate(UnaryOperator<String> callback);
6869
}

api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnsh/ShellOptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ public interface ShellOptions extends Options {
3939
* @return a new EncryptOptions instance with interpolated values
4040
*/
4141
@Nonnull
42+
@Override
4243
ShellOptions interpolate(UnaryOperator<String> callback);
4344
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ private static class DefaultExtensibleEnum implements ExtensibleEnum {
8787
*
8888
* @return the identifier
8989
*/
90+
@Override
9091
public String id() {
9192
return id;
9293
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ interface PhasePointer extends Pointer {
244244
*
245245
* @return the PROJECT pointer type
246246
*/
247+
@Override
247248
default Type type() {
248249
return Type.PROJECT;
249250
}
@@ -262,6 +263,7 @@ interface DependenciesPointer extends Pointer {
262263
*
263264
* @return the DEPENDENCIES pointer type
264265
*/
266+
@Override
265267
default Type type() {
266268
return Type.DEPENDENCIES;
267269
}
@@ -273,6 +275,7 @@ interface ChildrenPointer extends Pointer {
273275
*
274276
* @return the CHILDREN pointer type
275277
*/
278+
@Override
276279
default Type type() {
277280
return Type.CHILDREN;
278281
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public interface Packaging extends ExtensibleEnum {
6666
* The packaging id.
6767
*/
6868
@Nonnull
69+
@Override
6970
String id();
7071

7172
/**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public interface Type extends ExtensibleEnum {
134134
* @return the id of this type, never {@code null}.
135135
*/
136136
@Nonnull
137+
@Override
137138
String id();
138139

139140
/**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ public interface Version extends Comparable<Version> {
3838
* {@return the string representation of this version}
3939
*/
4040
@Nonnull
41+
@Override
4142
String toString();
4243
}

0 commit comments

Comments
 (0)