Fix typos in code and documentation
See gh-31734
This commit is contained in:
committed by
Phillip Webb
parent
4bcec6e0ee
commit
dbfc6bded4
@@ -632,13 +632,13 @@ public class JSONArray {
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes this array as a human readable JSON string for debugging, such as: <pre>
|
||||
* Encodes this array as a human-readable JSON string for debugging, such as: <pre>
|
||||
* [
|
||||
* 94043,
|
||||
* 90210
|
||||
* ]</pre>
|
||||
* @param indentSpaces the number of spaces to indent for each level of nesting.
|
||||
* @return a human readable JSON string of this array
|
||||
* @return a human-readable JSON string of this array
|
||||
* @throws JSONException if processing of json failed
|
||||
*/
|
||||
public String toString(int indentSpaces) throws JSONException {
|
||||
|
||||
@@ -708,7 +708,7 @@ public class JSONObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes this object as a human readable JSON string for debugging, such as: <pre>
|
||||
* Encodes this object as a human-readable JSON string for debugging, such as: <pre>
|
||||
* {
|
||||
* "query": "Pizza",
|
||||
* "locations": [
|
||||
|
||||
@@ -64,7 +64,7 @@ public class JSONStringer {
|
||||
|
||||
/**
|
||||
* Lexical scoping elements within this stringer, necessary to insert the appropriate
|
||||
* separator characters (ie. commas and colons) and to detect nesting errors.
|
||||
* separator characters (i.e. commas and colons) and to detect nesting errors.
|
||||
*/
|
||||
enum Scope {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ package org.springframework.boot.configurationprocessor.json;
|
||||
* <p>
|
||||
* For best interoperability and performance use JSON that complies with RFC 4627, such as
|
||||
* that generated by {@link JSONStringer}. For legacy reasons this parser is lenient, so a
|
||||
* successful parse does not indicate that the input string was valid JSON. All of the
|
||||
* successful parse does not indicate that the input string was valid JSON. All the
|
||||
* following syntax errors will be ignored:
|
||||
* <ul>
|
||||
* <li>End of line comments starting with {@code //} or {@code #} and ending with a
|
||||
|
||||
Reference in New Issue
Block a user