Skip to content

Commit

Permalink
Cleanup/json object api (#14)
Browse files Browse the repository at this point in the history
* Added some missing JavaDocs

* Added some missing JavaDocs
put methods for JsonObject are more convenient now.
Removed JsonObjectBuilder since it is no longer needed
  • Loading branch information
iamdudeman authored Apr 5, 2024
1 parent 06e1044 commit 18ba672
Show file tree
Hide file tree
Showing 9 changed files with 279 additions and 142 deletions.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* Javadoc more things
* Consider adding performance testing
* https://github.com/clarkware/junitperf
* compare vs GSON
Expand Down
1 change: 0 additions & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
module technology.sola.json {
exports technology.sola.json;
exports technology.sola.json.builder;
exports technology.sola.json.exception;
exports technology.sola.json.mapper;
exports technology.sola.json.parser;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/technology/sola/json/JsonArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void add(int index, JsonElement element) {
}

/**
* Appends the specified {@link JsonObject} to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified {@link JsonObject} to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the {@link JsonObject} to append
Expand All @@ -149,7 +149,7 @@ public JsonArray add(JsonObject value) {
}

/**
* Appends the specified {@link JsonArray} to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified {@link JsonArray} to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the {@link JsonArray} to append
Expand All @@ -162,7 +162,7 @@ public JsonArray add(JsonArray value) {
}

/**
* Appends the specified string to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified string to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the string to append
Expand All @@ -175,7 +175,7 @@ public JsonArray add(String value) {
}

/**
* Appends the specified integer to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified integer to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the integer to append
Expand All @@ -188,7 +188,7 @@ public JsonArray add(Integer value) {
}

/**
* Appends the specified long to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified long to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the long to append
Expand All @@ -201,7 +201,7 @@ public JsonArray add(Long value) {
}

/**
* Appends the specified float to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified float to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the float to append
Expand All @@ -214,7 +214,7 @@ public JsonArray add(Float value) {
}

/**
* Appends the specified double to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified double to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the double to append
Expand All @@ -227,7 +227,7 @@ public JsonArray add(Double value) {
}

/**
* Appends the specified boolean to the end of this {@link JsonArray}. If the specified value is null
* Appends the specified boolean to the end of this {@link JsonArray}. If the specified value is {@code null}
* the {@link JsonElementType#NULL} will be appended.
*
* @param value the boolean to append
Expand Down
Loading

0 comments on commit 18ba672

Please sign in to comment.