Skip to content

Commit 42396b2

Browse files
chore(deps): Update dependency net.sourceforge.pmd:pmd-java to v7.12.0 (#570)
* chore(deps): Update dependency net.sourceforge.pmd:pmd-java to v7.12.0 * declare functional interfaces where appropriate --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: zml <zml@stellardrift.ca>
1 parent 4d1aa62 commit 42396b2

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

core/src/main/java/org/spongepowered/configurate/objectmapping/FieldDiscoverer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @param <I> intermediate data type
3535
* @since 4.0.0
3636
*/
37+
@FunctionalInterface
3738
public interface FieldDiscoverer<I> {
3839

3940
/**

core/src/main/java/org/spongepowered/configurate/objectmapping/meta/Constraint.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* @param <V> value type
3434
* @since 4.0.0
3535
*/
36+
@FunctionalInterface
3637
public interface Constraint<V> {
3738

3839
/**
@@ -51,6 +52,7 @@ public interface Constraint<V> {
5152
* @param <V> data type
5253
* @since 4.0.0
5354
*/
55+
@FunctionalInterface
5456
interface Factory<A extends Annotation, V> {
5557

5658
/**

core/src/main/java/org/spongepowered/configurate/objectmapping/meta/NodeResolver.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
*
3333
* @since 4.0.0
3434
*/
35+
@FunctionalInterface
3536
public interface NodeResolver {
3637

3738
/**
@@ -58,6 +59,7 @@ public interface NodeResolver {
5859
*
5960
* @since 4.0.0
6061
*/
62+
@FunctionalInterface
6163
interface Factory {
6264

6365
/**

core/src/main/java/org/spongepowered/configurate/objectmapping/meta/PostProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
*
3535
* @since 4.2.0
3636
*/
37+
@FunctionalInterface
3738
public interface PostProcessor {
3839

3940
/**
@@ -51,6 +52,7 @@ public interface PostProcessor {
5152
*
5253
* @since 4.2.0
5354
*/
55+
@FunctionalInterface
5456
interface Factory {
5557

5658
/**

core/src/test/java/org/spongepowered/configurate/objectmapping/ObjectMapperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ void testNestedObjectWithComments() throws SerializationException {
202202
}
203203

204204
@ConfigSerializable
205+
@SuppressWarnings("PMD.ImplicitFunctionalInterface")
205206
private interface ParentInterface {
206207
String test();
207208
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ indra = "3.1.3"
99
junit="5.12.2"
1010
ktlint="0.49.1"
1111
ktfmt="0.54"
12-
pmd = "7.11.0"
12+
pmd = "7.12.0"
1313
spotless = "7.0.3"
1414

1515
[libraries]

0 commit comments

Comments
 (0)