diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/CompoundTag.java b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/CompoundTag.java index 88f642d6f..842aba19b 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/CompoundTag.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/CompoundTag.java @@ -69,7 +69,7 @@ public final class CompoundTag extends Tag { } /** - * Get a byte array named with the given key.

If the key does not exist or its value is not a byte array + * Get a byte array named with the given key.

If the key does not exist or its value is not a byte array * tag, then an empty byte array will be returned.

* * @param key the key @@ -86,7 +86,7 @@ public final class CompoundTag extends Tag { } /** - * Get a byte named with the given key.

If the key does not exist or its value is not a byte tag, then + * Get a byte named with the given key.

If the key does not exist or its value is not a byte tag, then * {@code 0} will be returned.

* * @param key the key @@ -103,7 +103,7 @@ public final class CompoundTag extends Tag { } /** - * Get a double named with the given key.

If the key does not exist or its value is not a double tag, then + * Get a double named with the given key.

If the key does not exist or its value is not a double tag, then * {@code 0} will be returned.

* * @param key the key @@ -120,7 +120,7 @@ public final class CompoundTag extends Tag { } /** - * Get a double named with the given key, even if it's another type of number.

If the key does not exist or + * Get a double named with the given key, even if it's another type of number.

If the key does not exist or * its value is not a number, then {@code 0} will be returned.

* * @param key the key @@ -147,7 +147,7 @@ public final class CompoundTag extends Tag { } /** - * Get a float named with the given key.

If the key does not exist or its value is not a float tag, then + * Get a float named with the given key.

If the key does not exist or its value is not a float tag, then * {@code 0} will be returned.

* * @param key the key @@ -164,7 +164,7 @@ public final class CompoundTag extends Tag { } /** - * Get a {@code int[]} named with the given key.

If the key does not exist or its value is not an int array + * Get a {@code int[]} named with the given key.

If the key does not exist or its value is not an int array * tag, then an empty array will be returned.

* * @param key the key @@ -181,7 +181,7 @@ public final class CompoundTag extends Tag { } /** - * Get an int named with the given key.

If the key does not exist or its value is not an int tag, then + * Get an int named with the given key.

If the key does not exist or its value is not an int tag, then * {@code 0} will be returned.

* * @param key the key @@ -198,7 +198,7 @@ public final class CompoundTag extends Tag { } /** - * Get an int named with the given key, even if it's another type of number.

If the key does not exist or + * Get an int named with the given key, even if it's another type of number.

If the key does not exist or * its value is not a number, then {@code 0} will be returned.

* * @param key the key @@ -225,7 +225,7 @@ public final class CompoundTag extends Tag { } /** - * Get a list of tags named with the given key.

If the key does not exist or its value is not a list tag, + * Get a list of tags named with the given key.

If the key does not exist or its value is not a list tag, * then an empty list will be returned.

* * @param key the key @@ -242,7 +242,7 @@ public final class CompoundTag extends Tag { } /** - * Get a {@code TagList} named with the given key.

If the key does not exist or its value is not a list + * Get a {@code TagList} named with the given key.

If the key does not exist or its value is not a list * tag, then an empty tag list will be returned.

* * @param key the key @@ -259,7 +259,7 @@ public final class CompoundTag extends Tag { } /** - * Get a list of tags named with the given key.

If the key does not exist or its value is not a list tag, + * Get a list of tags named with the given key.

If the key does not exist or its value is not a list tag, * then an empty list will be returned. If the given key references a list but the list of of a different type, then * an empty list will also be returned.

* @@ -285,7 +285,7 @@ public final class CompoundTag extends Tag { } /** - * Get a long named with the given key.

If the key does not exist or its value is not a long tag, then + * Get a long named with the given key.

If the key does not exist or its value is not a long tag, then * {@code 0} will be returned.

* * @param key the key @@ -302,7 +302,7 @@ public final class CompoundTag extends Tag { } /** - * Get a long named with the given key, even if it's another type of number.

If the key does not exist or + * Get a long named with the given key, even if it's another type of number.

If the key does not exist or * its value is not a number, then {@code 0} will be returned.

* * @param key the key @@ -329,7 +329,7 @@ public final class CompoundTag extends Tag { } /** - * Get a short named with the given key.

If the key does not exist or its value is not a short tag, then + * Get a short named with the given key.

If the key does not exist or its value is not a short tag, then * {@code 0} will be returned.

* * @param key the key @@ -346,7 +346,7 @@ public final class CompoundTag extends Tag { } /** - * Get a string named with the given key.

If the key does not exist or its value is not a string tag, then + * Get a string named with the given key.

If the key does not exist or its value is not a string tag, then * {@code ""} will be returned.

* * @param key the key diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/ListTag.java b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/ListTag.java index 2f517ef77..614a86af4 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/ListTag.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/ListTag.java @@ -84,7 +84,7 @@ public final class ListTag extends Tag { } /** - * Get a byte array named with the given index.

If the index does not exist or its value is not a byte + * Get a byte array named with the given index.

If the index does not exist or its value is not a byte * array tag, then an empty byte array will be returned.

* * @param index the index @@ -101,7 +101,7 @@ public final class ListTag extends Tag { } /** - * Get a byte named with the given index.

If the index does not exist or its value is not a byte tag, then + * Get a byte named with the given index.

If the index does not exist or its value is not a byte tag, then * {@code 0} will be returned.

* * @param index the index @@ -118,7 +118,7 @@ public final class ListTag extends Tag { } /** - * Get a double named with the given index.

If the index does not exist or its value is not a double tag, + * Get a double named with the given index.

If the index does not exist or its value is not a double tag, * then {@code 0} will be returned.

* * @param index the index @@ -135,7 +135,7 @@ public final class ListTag extends Tag { } /** - * Get a double named with the given index, even if it's another type of number.

If the index does not + * Get a double named with the given index, even if it's another type of number.

If the index does not * exist or its value is not a number, then {@code 0} will be returned.

* * @param index the index @@ -162,7 +162,7 @@ public final class ListTag extends Tag { } /** - * Get a float named with the given index.

If the index does not exist or its value is not a float tag, + * Get a float named with the given index.

If the index does not exist or its value is not a float tag, * then {@code 0} will be returned.

* * @param index the index @@ -179,7 +179,7 @@ public final class ListTag extends Tag { } /** - * Get a {@code int[]} named with the given index.

If the index does not exist or its value is not an int + * Get a {@code int[]} named with the given index.

If the index does not exist or its value is not an int * array tag, then an empty array will be returned.

* * @param index the index @@ -196,7 +196,7 @@ public final class ListTag extends Tag { } /** - * Get an int named with the given index.

If the index does not exist or its value is not an int tag, then + * Get an int named with the given index.

If the index does not exist or its value is not an int tag, then * {@code 0} will be returned.

* * @param index the index @@ -213,7 +213,7 @@ public final class ListTag extends Tag { } /** - * Get an int named with the given index, even if it's another type of number.

If the index does not exist + * Get an int named with the given index, even if it's another type of number.

If the index does not exist * or its value is not a number, then {@code 0} will be returned.

* * @param index the index @@ -240,7 +240,7 @@ public final class ListTag extends Tag { } /** - * Get a list of tags named with the given index.

If the index does not exist or its value is not a list + * Get a list of tags named with the given index.

If the index does not exist or its value is not a list * tag, then an empty list will be returned.

* * @param index the index @@ -257,7 +257,7 @@ public final class ListTag extends Tag { } /** - * Get a {@code TagList} named with the given index.

If the index does not exist or its value is not a list + * Get a {@code TagList} named with the given index.

If the index does not exist or its value is not a list * tag, then an empty tag list will be returned.

* * @param index the index @@ -274,7 +274,7 @@ public final class ListTag extends Tag { } /** - * Get a list of tags named with the given index.

If the index does not exist or its value is not a list + * Get a list of tags named with the given index.

If the index does not exist or its value is not a list * tag, then an empty list will be returned. If the given index references a list but the list of of a different * type, then an empty list will also be returned.

* @@ -300,7 +300,7 @@ public final class ListTag extends Tag { } /** - * Get a long named with the given index.

If the index does not exist or its value is not a long tag, then + * Get a long named with the given index.

If the index does not exist or its value is not a long tag, then * {@code 0} will be returned.

* * @param index the index @@ -317,7 +317,7 @@ public final class ListTag extends Tag { } /** - * Get a long named with the given index, even if it's another type of number.

If the index does not exist + * Get a long named with the given index, even if it's another type of number.

If the index does not exist * or its value is not a number, then {@code 0} will be returned.

* * @param index the index @@ -344,7 +344,7 @@ public final class ListTag extends Tag { } /** - * Get a short named with the given index.

If the index does not exist or its value is not a short tag, + * Get a short named with the given index.

If the index does not exist or its value is not a short tag, * then {@code 0} will be returned.

* * @param index the index @@ -361,7 +361,7 @@ public final class ListTag extends Tag { } /** - * Get a string named with the given index.

If the index does not exist or its value is not a string tag, + * Get a string named with the given index.

If the index does not exist or its value is not a string tag, * then {@code ""} will be returned.

* * @param index the index diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTInputStream.java b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTInputStream.java index be6702d6b..7bf7ae2c9 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTInputStream.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTInputStream.java @@ -11,7 +11,7 @@ import java.util.Map; /** * This class reads NBT, or Named Binary Tag streams, and produces an object graph of - * subclasses of the {@code Tag} object.

The NBT format was created by Markus Persson, and the specification + * subclasses of the {@code Tag} object.

The NBT format was created by Markus Persson, and the specification * may be found at http://www.minecraft.net/docs/NBT.txt.

*/ public final class NBTInputStream implements Closeable { diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTOutputStream.java b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTOutputStream.java index 884366100..9db7fb9e4 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTOutputStream.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/jnbt/NBTOutputStream.java @@ -28,7 +28,7 @@ import java.util.List; /** *

This class writes NBT, or Named Binary Tag Tag objects to an - * underlying OutputStream.

The NBT format was created by Markus Persson, and the + * underlying OutputStream.

The NBT format was created by Markus Persson, and the * specification may be found at http://www.minecraft.net/docs/NBT.txt. *

* diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/json/CDL.java b/PlotSquared/src/main/java/com/intellectualcrafters/json/CDL.java index fde894749..fb69ce28b 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/json/CDL.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/json/CDL.java @@ -4,13 +4,13 @@ package com.intellectualcrafters.json; * This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma * delimited text. Comma delimited text is a very popular format for data interchange. It is understood by most * database, spreadsheet, and organizer programs. - *

+ * * Each row of text represents a row in a table or a data record. Each row ends with a NEWLINE character. Each row * contains one or more values. Values are separated by commas. A value can contain any character except for comma, * unless is is wrapped in single quotes or double quotes. - *

+ * * The first row usually contains the names of the columns. - *

+ * * A comma delimited list can be converted into a JSONArray of JSONObjects. The names for the elements in the * JSONObjects can be taken from the names in the first row. * diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/json/CookieList.java b/PlotSquared/src/main/java/com/intellectualcrafters/json/CookieList.java index c8ee0136d..85553dc13 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/json/CookieList.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/json/CookieList.java @@ -13,7 +13,7 @@ public class CookieList { * Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated * from the values by '='. The pairs are separated by ';'. The names and the values will be unescaped, possibly * converting '+' and '%' sequences. - *

+ * * To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"), * cookieJSONObject.getString("value")); * diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/json/HTTP.java b/PlotSquared/src/main/java/com/intellectualcrafters/json/HTTP.java index c78f24d61..ee8594944 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/json/HTTP.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/json/HTTP.java @@ -37,8 +37,8 @@ public class HTTP { /** * Convert an HTTP header string into a JSONObject. It can be a request header or a response header. A request * header will contain - *

- *

+ * + * *

      * {
      *    Method: "POST" (for example),
@@ -46,10 +46,10 @@ public class HTTP {
      *    "HTTP-Version": "HTTP/1.1" (for example)
      * }
      * 
- *

+ * * A response header will contain - *

- *

+ * + * *

      * {
      *    "HTTP-Version": "HTTP/1.1" (for example),
@@ -57,20 +57,20 @@ public class HTTP {
      *    "Reason-Phrase": "OK" (for example)
      * }
      * 
- *

+ * * In addition, the other parameters in the header will be captured, using the HTTP field names as JSON names, so * that - *

- *

+ * + * *

      *    Date: Sun, 26 May 2002 18:06:04 GMT
      *    Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s
      *    Cache-Control: no-cache
      * 
- *

+ * * become - *

- *

+ * + * *

      * {...
      *    Date: "Sun, 26 May 2002 18:06:04 GMT",
@@ -78,7 +78,7 @@ public class HTTP {
      *    "Cache-Control": "no-cache",
      * ...}
      * 
- *

+ * * It does no further checking or conversion. It does not parse dates. It does not do '%' transforms on URLs. * * @param string An HTTP header string. @@ -116,8 +116,8 @@ public class HTTP { /** * Convert a JSONObject into an HTTP header. A request header must contain - *

- *

+ * + * *

      * {
      *    Method: "POST" (for example),
@@ -125,10 +125,10 @@ public class HTTP {
      *    "HTTP-Version": "HTTP/1.1" (for example)
      * }
      * 
- *

+ * * A response header must contain - *

- *

+ * + * *

      * {
      *    "HTTP-Version": "HTTP/1.1" (for example),
@@ -136,7 +136,7 @@ public class HTTP {
      *    "Reason-Phrase": "OK" (for example)
      * }
      * 
- *

+ * * Any other members of the JSONObject will be output as HTTP fields. The result will end with two CRLF pairs. * * @param jo A JSONObject diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/json/JSONArray.java b/PlotSquared/src/main/java/com/intellectualcrafters/json/JSONArray.java index 026613a2b..c31b44653 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/json/JSONArray.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/json/JSONArray.java @@ -34,16 +34,16 @@ import java.util.Map; * accessing the values by index, and put methods for adding or replacing values. The values can be any of * these types: Boolean, JSONArray, JSONObject, Number, * String, or the JSONObject.NULL object. - *

+ * * The constructor can convert a JSON text into a Java object. The toString method converts to JSON text. - *

+ * * A get method returns a value if one can be found, and throws an exception if one cannot be found. An * opt method returns a default value instead of throwing an exception, and so is useful for obtaining * optional values. - *

+ * * The generic get() and opt() methods return an object which you can cast or query for type. * There are also typed get and opt methods that do type checking and type coercion for you. - *

+ * * The texts produced by the toString methods strictly conform to JSON syntax rules. The constructors are * more forgiving in the texts they will accept: