Skip to content

Commit 4d1aa62

Browse files
chore(deps): Update dependency com.puppycrawl.tools:checkstyle to v10.23.0 (#569)
* chore(deps): Update dependency com.puppycrawl.tools:checkstyle to v10.23.0 * resolve new violations --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: zml <[email protected]>
1 parent 6fce0fb commit 4d1aa62

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

.checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
<module name="TreeWalker">
8787
<module name="JavadocVariable">
88-
<property name="scope" value="public"/>
88+
<property name="accessModifiers" value="public"/>
8989
</module>
9090
<module name="MissingJavadocType">
9191
<property name="scope" value="public"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private <I, O> void makeData(final List<FieldData<I, O>> fields, final String na
222222

223223
// TypeSerializer //
224224

225-
public static final String CLASS_KEY = "__class__";
225+
static final String CLASS_KEY = "__class__";
226226

227227
@Override
228228
public Object deserialize(final Type type, final ConfigurationNode node) throws SerializationException {

core/src/main/java/org/spongepowered/configurate/util/MapFactories.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,34 @@ public static MapFactory insertionOrdered() {
7777
}
7878

7979
private enum DefaultFactory implements MapFactory {
80+
/**
81+
* A factory creating maps with no order contract.
82+
*
83+
* @since 4.0.0
84+
*/
8085
UNORDERED {
8186
@Override
8287
public <K, V> ConcurrentMap<K, V> create() {
8388
return new ConcurrentHashMap<>();
8489
}
8590
},
91+
/**
92+
* A factory creating maps which sort comparable elements by
93+
* natural order.
94+
*
95+
* @since 4.0.0
96+
*/
8697
SORTED_NATURAL {
8798
@Override
8899
public <K, V> ConcurrentMap<K, V> create() {
89100
return new ConcurrentSkipListMap<>();
90101
}
91102
},
103+
/**
104+
* A factory creating maps that preserve insertion order.
105+
*
106+
* @since 4.0.0
107+
*/
92108
INSERTION_ORDERED {
93109
@Override
94110
public <K, V> Map<K, V> create() {

examples/src/main/java/org/spongepowered/configurate/examples/Tutorial.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public static void main(final String[] args) throws SerializationException {
8585
/**
8686
* A mood that a message may have.
8787
*/
88+
@SuppressWarnings("checkstyle:JavadocVariable")
8889
enum Mood {
8990

9091
HAPPY, SAD, CONFUSED, NEUTRAL;

format/xml/src/main/java/org/spongepowered/configurate/xml/XmlConfigurationLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ protected void loadInternal(final AttributedConfigurationNode node, final Buffer
476476
throw new UnsupportedOperationException("XMLConfigurationLoader provides custom loading logic to handle headers");
477477
}
478478

479+
@SuppressWarnings("checkstyle:JavadocVariable") // false positive, private enum
479480
private enum NodeType {
480481
MAP, LIST
481482
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
assertj="3.27.3"
33
autoValue="1.11.0"
44
checkerQual="3.49.2"
5-
checkstyle="10.21.4"
5+
checkstyle="10.23.0"
66
geantyref = "1.3.16"
77
errorprone="2.38.0"
88
indra = "3.1.3"

0 commit comments

Comments
 (0)