Skip to content

Commit 17cbf15

Browse files
committed
Code-style improvements, fixed typos and version push
1 parent 7069a1c commit 17cbf15

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.jvmargs=-Xmx3G
22
org.gradle.daemon=false
33

4-
apiVersion=1.3.0
4+
apiVersion=1.3.1

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public abstract class BlueMapAPI {
4646
private static BlueMapAPI instance;
4747

4848
@Deprecated
49-
private static Collection<BlueMapAPIListener> listener = new ArrayList<>(2);
49+
private static final Collection<BlueMapAPIListener> listener = new ArrayList<>(2);
5050

51-
private static Collection<Consumer<BlueMapAPI>> onEnableConsumers = new ArrayList<>(2);
52-
private static Collection<Consumer<BlueMapAPI>> onDisableConsumers = new ArrayList<>(2);
51+
private static final Collection<Consumer<BlueMapAPI>> onEnableConsumers = new ArrayList<>(2);
52+
private static final Collection<Consumer<BlueMapAPI>> onDisableConsumers = new ArrayList<>(2);
5353

5454
/**
5555
* Getter for the {@link RenderAPI}.

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

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525
package de.bluecolored.bluemap.api;
2626

27+
import java.util.function.Consumer;
28+
2729
/**
2830
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
2931
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.

src/main/java/de/bluecolored/bluemap/api/marker/Marker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public interface Marker {
118118
void setLabel(String label);
119119

120120
/**
121-
* Gets the link-adress of this {@link Marker}.<br>
121+
* Gets the link-address of this {@link Marker}.<br>
122122
* If a link is present, this link will be followed when the user clicks on the marker in the web-app.
123123
*
124124
* @return the {@link Optional} link
@@ -133,7 +133,7 @@ public interface Marker {
133133
boolean isNewTab();
134134

135135
/**
136-
* Sets the link-adress of this {@link Marker}.<br>
136+
* Sets the link-address of this {@link Marker}.<br>
137137
* If a link is present, this link will be followed when the user clicks on the marker in the web-app.
138138
*
139139
* @param link the link, or <code>null</code> to disable the link

src/main/java/de/bluecolored/bluemap/api/marker/MarkerSet.java

+9-2
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,22 @@ public interface MarkerSet {
7272
* @param toggleable whether this {@link MarkerSet} should be toggleable
7373
*/
7474
void setToggleable(boolean toggleable);
75-
75+
76+
/**
77+
* @deprecated method name has a typo, use {@link #isDefaultHidden()} instead.
78+
*/
79+
default boolean isDefautHidden() {
80+
return isDefaultHidden();
81+
}
82+
7683
/**
7784
* Checks if this {@link MarkerSet} is hidden by default.
7885
* <p>This is basically the default-state of the toggle-button from {@link #isToggleable()}. If this is <code>true</code> the markers of this marker set will initially be hidden and can be displayed using the toggle-button.</p>
7986
*
8087
* @return whether this {@link MarkerSet} is hidden by default
8188
* @see #isToggleable()
8289
*/
83-
boolean isDefautHidden();
90+
boolean isDefaultHidden();
8491

8592
/**
8693
* Sets if this {@link MarkerSet} is hidden by default.

0 commit comments

Comments
 (0)