Skip to content

Commit 8b179fb

Browse files
committed
Deprecate/remove DebugDump annotation
1 parent 6c84500 commit 8b179fb

19 files changed

+2
-60
lines changed

src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.google.gson.Gson;
2828
import com.google.gson.JsonElement;
2929
import com.google.gson.JsonObject;
30-
import de.bluecolored.bluemap.api.debug.DebugDump;
3130
import de.bluecolored.bluemap.api.plugin.Plugin;
3231

3332
import java.io.InputStream;
@@ -78,35 +77,30 @@ public abstract class BlueMapAPI {
7877
* Getter for the {@link RenderManager}.
7978
* @return the {@link RenderManager}
8079
*/
81-
@DebugDump
8280
public abstract RenderManager getRenderManager();
8381

8482
/**
8583
* Getter for the {@link WebApp}.
8684
* @return the {@link WebApp}
8785
*/
88-
@DebugDump
8986
public abstract WebApp getWebApp();
9087

9188
/**
9289
* Getter for the {@link Plugin}
9390
* @return the {@link Plugin}
9491
*/
95-
@DebugDump
9692
public abstract Plugin getPlugin();
9793

9894
/**
9995
* Getter for all {@link BlueMapMap}s loaded by BlueMap.
10096
* @return an unmodifiable collection of all loaded {@link BlueMapMap}s
10197
*/
102-
@DebugDump
10398
public abstract Collection<BlueMapMap> getMaps();
10499

105100
/**
106101
* Getter for all {@link BlueMapWorld}s loaded by BlueMap.
107102
* @return an unmodifiable collection of all loaded {@link BlueMapWorld}s
108103
*/
109-
@DebugDump
110104
public abstract Collection<BlueMapWorld> getWorlds();
111105

112106
/**
@@ -137,14 +131,12 @@ public abstract class BlueMapAPI {
137131
* Getter for the installed BlueMap version
138132
* @return the version-string
139133
*/
140-
@DebugDump
141134
public abstract String getBlueMapVersion();
142135

143136
/**
144137
* Getter for the installed BlueMapAPI version
145138
* @return the version-string
146139
*/
147-
@DebugDump
148140
public String getAPIVersion() {
149141
return VERSION;
150142
}

src/main/java/de/bluecolored/bluemap/api/BlueMapMap.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.flowpowered.math.vector.Vector2i;
2828
import com.flowpowered.math.vector.Vector3d;
2929
import com.flowpowered.math.vector.Vector3i;
30-
import de.bluecolored.bluemap.api.debug.DebugDump;
3130
import de.bluecolored.bluemap.api.markers.MarkerSet;
3231

3332
import java.util.Map;
@@ -43,21 +42,18 @@ public interface BlueMapMap {
4342
* Returns this maps id, this is equal to the id configured in bluemap's config for this map.
4443
* @return the id of this map
4544
*/
46-
@DebugDump
4745
String getId();
4846

4947
/**
5048
* Returns this maps display-name, this is equal to the name configured in bluemap's config for this map.
5149
* @return the name of this map
5250
*/
53-
@DebugDump
5451
String getName();
5552

5653
/**
5754
* Getter for the {@link BlueMapWorld} of this map.
5855
* @return the {@link BlueMapWorld} of this map
5956
*/
60-
@DebugDump
6157
BlueMapWorld getWorld();
6258

6359
/**
@@ -66,30 +62,26 @@ public interface BlueMapMap {
6662
* is displaying this map. E.g. these assets are also available in server-networks.
6763
* @return the {@link AssetStorage} of this map
6864
*/
69-
@DebugDump
7065
AssetStorage getAssetStorage();
7166

7267
/**
7368
* Getter for a (modifiable) {@link Map} of {@link MarkerSet}s with the key being the {@link MarkerSet}'s id.
7469
* Changing this map will change the {@link MarkerSet}s and markers displayed on the web-app for this map.
7570
* @return a {@link Map} of {@link MarkerSet}s.
7671
*/
77-
@DebugDump
7872
Map<String, MarkerSet> getMarkerSets();
7973

8074
/**
8175
* Getter for the size of all tiles on this map in blocks.
8276
* @return the tile-size in blocks
8377
*/
84-
@DebugDump
8578
Vector2i getTileSize();
8679

8780
/**
8881
* Getter for the offset of the tile-grid on this map.<br>
8982
* E.g. an offset of (2|-1) would mean that the tile (0|0) has block (2|0|-1) at it's min-corner.
9083
* @return the tile-offset in blocks
9184
*/
92-
@DebugDump
9385
Vector2i getTileOffset();
9486

9587
/**

src/main/java/de/bluecolored/bluemap/api/BlueMapWorld.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
*/
2525
package de.bluecolored.bluemap.api;
2626

27-
import de.bluecolored.bluemap.api.debug.DebugDump;
28-
2927
import java.nio.file.Path;
3028
import java.util.Collection;
3129

@@ -38,7 +36,6 @@ public interface BlueMapWorld {
3836
* Getter for the id of this world.
3937
* @return the id of this world
4038
*/
41-
@DebugDump
4239
String getId();
4340

4441
/**
@@ -47,15 +44,13 @@ public interface BlueMapWorld {
4744
* @return the save-folder of this world.
4845
* @deprecated Getting the save-folder of a world is no longer supported. As it is not guaranteed that every world has a save-folder.
4946
*/
50-
@DebugDump
5147
@Deprecated
5248
Path getSaveFolder();
5349

5450
/**
5551
* Getter for all {@link BlueMapMap}s for this world
5652
* @return an unmodifiable {@link Collection} of all {@link BlueMapMap}s for this world
5753
*/
58-
@DebugDump
5954
Collection<BlueMapMap> getMaps();
6055

6156
}

src/main/java/de/bluecolored/bluemap/api/RenderManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
package de.bluecolored.bluemap.api;
2626

2727
import com.flowpowered.math.vector.Vector2i;
28-
import de.bluecolored.bluemap.api.debug.DebugDump;
2928

3029
import java.io.IOException;
3130
import java.util.Collection;
@@ -75,21 +74,18 @@ default boolean scheduleMapUpdateTask(BlueMapMap map) {
7574
* Getter for the current size of the render-queue.
7675
* @return the current size of the render-queue
7776
*/
78-
@DebugDump
7977
int renderQueueSize();
8078

8179
/**
8280
* Getter for the current count of render threads.
8381
* @return the count of render threads
8482
*/
85-
@DebugDump
8683
int renderThreadCount();
8784

8885
/**
8986
* Whether this {@link RenderManager} is currently running or stopped.
9087
* @return <code>true</code> if this renderer is running
9188
*/
92-
@DebugDump
9389
boolean isRunning();
9490

9591
/**

src/main/java/de/bluecolored/bluemap/api/WebApp.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
*/
2525
package de.bluecolored.bluemap.api;
2626

27-
import de.bluecolored.bluemap.api.debug.DebugDump;
28-
2927
import java.awt.image.BufferedImage;
3028
import java.io.IOException;
3129
import java.nio.file.Path;
@@ -39,7 +37,6 @@ public interface WebApp {
3937
* Getter for the configured web-root folder
4038
* @return The {@link Path} of the web-root folder
4139
*/
42-
@DebugDump
4340
Path getWebRoot();
4441

4542
/**

src/main/java/de/bluecolored/bluemap/api/debug/DebugDump.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
import java.lang.annotation.Target;
3131

3232
/**
33-
* Marks a class, field or method to be included in detail in a possible state-dump.
34-
* E.g. triggered by <code>/bluemap debug dump</code>
33+
* @deprecated not implemented, unused
3534
*/
3635
@Retention(RetentionPolicy.RUNTIME)
3736
@Target({
3837
ElementType.METHOD,
3938
ElementType.FIELD,
4039
ElementType.TYPE
4140
})
41+
@Deprecated(forRemoval = true)
4242
public @interface DebugDump {
4343

4444
String value() default "";

src/main/java/de/bluecolored/bluemap/api/markers/DistanceRangedMarker.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
package de.bluecolored.bluemap.api.markers;
2626

2727
import com.flowpowered.math.vector.Vector3d;
28-
import de.bluecolored.bluemap.api.debug.DebugDump;
2928

3029
/**
3130
* @see HtmlMarker
@@ -34,7 +33,6 @@
3433
* @see ExtrudeMarker
3534
* @see LineMarker
3635
*/
37-
@DebugDump
3836
public abstract class DistanceRangedMarker extends Marker {
3937

4038
private double minDistance, maxDistance;

src/main/java/de/bluecolored/bluemap/api/markers/ExtrudeMarker.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import com.flowpowered.math.vector.Vector2d;
2828
import com.flowpowered.math.vector.Vector3d;
29-
import de.bluecolored.bluemap.api.debug.DebugDump;
3029
import de.bluecolored.bluemap.api.math.Color;
3130
import de.bluecolored.bluemap.api.math.Shape;
3231

@@ -36,7 +35,6 @@
3635
import java.util.Objects;
3736

3837
@SuppressWarnings("FieldMayBeFinal")
39-
@DebugDump
4038
public class ExtrudeMarker extends ObjectMarker {
4139
private static final Shape DEFAULT_SHAPE = Shape.createRect(0, 0, 1, 1);
4240

src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@
2727

2828
import com.flowpowered.math.vector.Vector2i;
2929
import com.flowpowered.math.vector.Vector3d;
30-
import de.bluecolored.bluemap.api.debug.DebugDump;
3130

3231
import java.util.*;
3332

3433
/**
3534
* A marker that is a html-element placed somewhere on the map.
3635
*/
3736
@SuppressWarnings("FieldMayBeFinal")
38-
@DebugDump
3937
public class HtmlMarker extends DistanceRangedMarker implements ElementMarker {
4038

4139
private Set<String> classes = new HashSet<>();

src/main/java/de/bluecolored/bluemap/api/markers/LineMarker.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
package de.bluecolored.bluemap.api.markers;
2626

2727
import com.flowpowered.math.vector.Vector3d;
28-
import de.bluecolored.bluemap.api.debug.DebugDump;
2928
import de.bluecolored.bluemap.api.math.Color;
3029
import de.bluecolored.bluemap.api.math.Line;
3130

3231
import java.util.Objects;
3332

34-
@DebugDump
3533
public class LineMarker extends ObjectMarker {
3634
private static final Line DEFAULT_LINE = new Line(Vector3d.ZERO, Vector3d.ONE);
3735

0 commit comments

Comments
 (0)