Skip to content

Commit c70ab29

Browse files
committed
Fix javadoc errors
1 parent ad77b49 commit c70ab29

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ public interface AssetStorage {
4040
/**
4141
* Writes a new asset into this storage, overwriting any existent assets with the same name.<br>
4242
* Use the returned {@link OutputStream} to write the asset-data. The asset will be added to the storage as soon as that stream
43-
* gets closed!
44-
* <p>
43+
* gets closed!<br>
44+
* <br>
4545
* Example:
4646
* <pre>
4747
* try (OutputStream out = assetStorage.writeAsset("image.png")) {
4848
* ImageIO.write(image, "png", out);
4949
* }
5050
* </pre>
51-
* </p>
5251
* @param name The (unique) name for this asset
5352
* @return An {@link OutputStream} that should be used to write the asset and closed once!
5453
* @throws IOException when the underlying storage rises an IOException
@@ -57,8 +56,8 @@ public interface AssetStorage {
5756

5857
/**
5958
* Reads an asset from this storage.<br>
60-
* Use the returned {@link InputStream} to read the asset-data.
61-
* <p>
59+
* Use the returned {@link InputStream} to read the asset-data.<br>
60+
* <br>
6261
* Example:
6362
* <pre>
6463
* Optional&lt;InputStream&gt; optIn = assetStorage.readAsset("image.png");
@@ -68,7 +67,6 @@ public interface AssetStorage {
6867
* }
6968
* }
7069
* </pre>
71-
* </p>
7270
* @param name The name of the asset that should be read from the storage.
7371
* @return An {@link Optional} with an {@link InputStream} when the asset is found, from which the asset can be read.
7472
* Or an empty optional if there is no asset with this name.

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ public interface WebApp {
6161
* This method should only be used inside the {@link Consumer} that got registered <i>(before bluemap loaded,
6262
* pre server-start!)</i> to {@link BlueMapAPI#onEnable(Consumer)}.<br>
6363
* Invoking this method at any other time is not supported.<br>
64-
* Style-registrations are <b>not persistent</b>, register your style each time bluemap enables!
65-
* <p>
64+
* Style-registrations are <b>not persistent</b>, register your style each time bluemap enables!<br>
65+
* <br>
6666
* Example:
6767
* <pre>
6868
* BlueMapAPI.onEnable(api -> {
6969
* api.getWebApp().registerStyle("js/my-custom-style.css");
7070
* });
7171
* </pre>
72-
* </p>
7372
* @param url The (relative) URL that links to the style.css file. The {@link #getWebRoot()}-method can be used to
7473
* create the custom file in the correct location and make it available to the web-app.
7574
*/
@@ -80,15 +79,14 @@ public interface WebApp {
8079
* This method should only be used inside the {@link Consumer} that got registered <i>(before bluemap loaded,
8180
* pre server-start!)</i> to {@link BlueMapAPI#onEnable(Consumer)}.<br>
8281
* Invoking this method at any other time is not supported.<br>
83-
* Script-registrations are <b>not persistent</b>, register your script each time bluemap enables!
84-
* <p>
82+
* Script-registrations are <b>not persistent</b>, register your script each time bluemap enables!<br>
83+
* <br>
8584
* Example:
8685
* <pre>
8786
* BlueMapAPI.onEnable(api -> {
8887
* api.getWebApp().registerScript("js/my-custom-script.js");
8988
* });
9089
* </pre>
91-
* </p>
9290
* @param url The (relative) URL that links to the script.js file. The {@link #getWebRoot()}-method can be used to
9391
* create the custom file in the correct location and make it available to the web-app.
9492
*/

0 commit comments

Comments
 (0)