Skip to content

Commit dc9178c

Browse files
committed
fix: spotless checks
1 parent 9035e95 commit dc9178c

4 files changed

Lines changed: 107 additions & 15 deletions

File tree

api/src/test/java/net/kyori/adventure/waypoint/AzimuthWaypointTest.java

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1+
/*
2+
* This file is part of adventure, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2017-2025 KyoriPowered
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
package net.kyori.adventure.waypoint;
225

26+
import java.util.concurrent.atomic.AtomicInteger;
327
import net.kyori.adventure.key.Key;
428
import net.kyori.adventure.text.format.NamedTextColor;
529
import net.kyori.adventure.text.format.TextColor;
630
import org.jspecify.annotations.NonNull;
731
import org.junit.jupiter.api.Test;
8-
import java.util.concurrent.atomic.AtomicInteger;
932

1033
import static org.junit.jupiter.api.Assertions.assertEquals;
1134

@@ -15,17 +38,17 @@ public class AzimuthWaypointTest {
1538
private final AtomicInteger angle = new AtomicInteger();
1639
private final Waypoint.Listener listener = new Waypoint.Listener() {
1740
@Override
18-
public void waypointStyleChanged(@NonNull Waypoint waypoint, @NonNull Key oldStyle, @NonNull Key newStyle) {
41+
public void waypointStyleChanged(@NonNull final Waypoint waypoint, @NonNull final Key oldStyle, @NonNull final Key newStyle) {
1942
AzimuthWaypointTest.this.style.incrementAndGet();
2043
}
2144

2245
@Override
23-
public void waypointColorChanged(@NonNull Waypoint waypoint, @NonNull TextColor oldColor, @NonNull TextColor newColor) {
46+
public void waypointColorChanged(@NonNull final Waypoint waypoint, @NonNull final TextColor oldColor, @NonNull final TextColor newColor) {
2447
AzimuthWaypointTest.this.color.incrementAndGet();
2548
}
2649

2750
@Override
28-
public void waypointAngleChanged(@NonNull AzimuthWaypoint waypoint, final float oldAngle, final float newAngle) {
51+
public void waypointAngleChanged(@NonNull final AzimuthWaypoint waypoint, final float oldAngle, final float newAngle) {
2952
AzimuthWaypointTest.this.angle.incrementAndGet();
3053
}
3154
};

api/src/test/java/net/kyori/adventure/waypoint/ChunkWaypointTest.java

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1+
/*
2+
* This file is part of adventure, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2017-2025 KyoriPowered
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
package net.kyori.adventure.waypoint;
225

26+
import java.util.concurrent.atomic.AtomicInteger;
327
import net.kyori.adventure.key.Key;
428
import net.kyori.adventure.text.format.NamedTextColor;
529
import net.kyori.adventure.text.format.TextColor;
630
import org.jspecify.annotations.NonNull;
731
import org.junit.jupiter.api.Test;
8-
import java.util.concurrent.atomic.AtomicInteger;
932

1033
import static org.junit.jupiter.api.Assertions.assertEquals;
1134

@@ -15,18 +38,18 @@ public class ChunkWaypointTest {
1538
private final AtomicInteger pos = new AtomicInteger();
1639
private final Waypoint.Listener listener = new Waypoint.Listener() {
1740
@Override
18-
public void waypointStyleChanged(@NonNull Waypoint waypoint, @NonNull Key oldStyle, @NonNull Key newStyle) {
41+
public void waypointStyleChanged(@NonNull final Waypoint waypoint, @NonNull final Key oldStyle, @NonNull final Key newStyle) {
1942
ChunkWaypointTest.this.style.incrementAndGet();
2043
}
2144

2245
@Override
23-
public void waypointColorChanged(@NonNull Waypoint waypoint, @NonNull TextColor oldColor, @NonNull TextColor newColor) {
46+
public void waypointColorChanged(@NonNull final Waypoint waypoint, @NonNull final TextColor oldColor, @NonNull final TextColor newColor) {
2447
ChunkWaypointTest.this.color.incrementAndGet();
2548
}
2649

2750
@Override
2851
public void waypointChunkPositionChanged(
29-
@NonNull ChunkWaypoint waypoint,
52+
@NonNull final ChunkWaypoint waypoint,
3053
final int oldX, final int oldZ,
3154
final int newX, final int newZ
3255
) {

api/src/test/java/net/kyori/adventure/waypoint/EmptyWaypointTest.java

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1+
/*
2+
* This file is part of adventure, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2017-2025 KyoriPowered
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
package net.kyori.adventure.waypoint;
225

26+
import java.util.concurrent.atomic.AtomicInteger;
327
import net.kyori.adventure.key.Key;
428
import net.kyori.adventure.text.format.NamedTextColor;
529
import net.kyori.adventure.text.format.TextColor;
630
import org.jspecify.annotations.NonNull;
731
import org.junit.jupiter.api.Test;
8-
import java.util.concurrent.atomic.AtomicInteger;
932

1033
import static org.junit.jupiter.api.Assertions.assertEquals;
1134

@@ -14,12 +37,12 @@ public class EmptyWaypointTest {
1437
private final AtomicInteger color = new AtomicInteger();
1538
private final Waypoint.Listener listener = new Waypoint.Listener() {
1639
@Override
17-
public void waypointStyleChanged(@NonNull Waypoint waypoint, @NonNull Key oldStyle, @NonNull Key newStyle) {
40+
public void waypointStyleChanged(@NonNull final Waypoint waypoint, @NonNull final Key oldStyle, @NonNull final Key newStyle) {
1841
EmptyWaypointTest.this.style.incrementAndGet();
1942
}
2043

2144
@Override
22-
public void waypointColorChanged(@NonNull Waypoint waypoint, @NonNull TextColor oldColor, @NonNull TextColor newColor) {
45+
public void waypointColorChanged(@NonNull final Waypoint waypoint, @NonNull final TextColor oldColor, @NonNull final TextColor newColor) {
2346
EmptyWaypointTest.this.color.incrementAndGet();
2447
}
2548
};

api/src/test/java/net/kyori/adventure/waypoint/VectorWaypointTest.java

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1+
/*
2+
* This file is part of adventure, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2017-2025 KyoriPowered
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
package net.kyori.adventure.waypoint;
225

26+
import java.util.concurrent.atomic.AtomicInteger;
327
import net.kyori.adventure.key.Key;
428
import net.kyori.adventure.text.format.NamedTextColor;
529
import net.kyori.adventure.text.format.TextColor;
630
import org.jspecify.annotations.NonNull;
731
import org.junit.jupiter.api.Test;
8-
import java.util.concurrent.atomic.AtomicInteger;
932

1033
import static org.junit.jupiter.api.Assertions.assertEquals;
1134

@@ -15,18 +38,18 @@ public class VectorWaypointTest {
1538
private final AtomicInteger pos = new AtomicInteger();
1639
private final Waypoint.Listener listener = new Waypoint.Listener() {
1740
@Override
18-
public void waypointStyleChanged(@NonNull Waypoint waypoint, @NonNull Key oldStyle, @NonNull Key newStyle) {
41+
public void waypointStyleChanged(@NonNull final Waypoint waypoint, @NonNull final Key oldStyle, @NonNull final Key newStyle) {
1942
VectorWaypointTest.this.style.incrementAndGet();
2043
}
2144

2245
@Override
23-
public void waypointColorChanged(@NonNull Waypoint waypoint, @NonNull TextColor oldColor, @NonNull TextColor newColor) {
46+
public void waypointColorChanged(@NonNull final Waypoint waypoint, @NonNull final TextColor oldColor, @NonNull final TextColor newColor) {
2447
VectorWaypointTest.this.color.incrementAndGet();
2548
}
2649

2750
@Override
2851
public void waypointVectorChanged(
29-
@NonNull VectorWaypoint waypoint,
52+
@NonNull final VectorWaypoint waypoint,
3053
final int oldX,
3154
final int oldY,
3255
final int oldZ,

0 commit comments

Comments
 (0)