Skip to content

Commit d36066c

Browse files
authored
Merge pull request stleary#860 from jscrdev/fixed-javadocs2
Added missing Javadocs for Java 21
2 parents 77c899d + 8625321 commit d36066c

File tree

9 files changed

+51
-0
lines changed

9 files changed

+51
-0
lines changed

src/main/java/org/json/CDL.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
*/
2626
public class CDL {
2727

28+
/**
29+
* Constructs a new CDL object.
30+
*/
31+
public CDL() {
32+
}
33+
2834
/**
2935
* Get the next value. The value can be wrapped in quotes. The value can
3036
* be empty.

src/main/java/org/json/Cookie.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
*/
1616
public class Cookie {
1717

18+
/**
19+
* Constructs a new Cookie object.
20+
*/
21+
public Cookie() {
22+
}
23+
1824
/**
1925
* Produce a copy of a string in which the characters '+', '%', '=', ';'
2026
* and control characters are replaced with "%hh". This is a gentle form

src/main/java/org/json/CookieList.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
*/
1212
public class CookieList {
1313

14+
/**
15+
* Constructs a new CookieList object.
16+
*/
17+
public CookieList() {
18+
}
19+
1420
/**
1521
* Convert a cookie list into a JSONObject. A cookie list is a sequence
1622
* of name/value pairs. The names are separated from the values by '='.

src/main/java/org/json/HTTP.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
*/
1414
public class HTTP {
1515

16+
/**
17+
* Constructs a new HTTP object.
18+
*/
19+
public HTTP() {
20+
}
21+
1622
/** Carriage return/line feed. */
1723
public static final String CRLF = "\r\n";
1824

src/main/java/org/json/JSONML.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
* @version 2016-01-30
1414
*/
1515
public class JSONML {
16+
17+
/**
18+
* Constructs a new JSONML object.
19+
*/
20+
public JSONML() {
21+
}
22+
1623
/**
1724
* Parse XML values and store them in a JSONArray.
1825
* @param x The XMLTokener containing the source string.

src/main/java/org/json/JSONPointer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ public class JSONPointer {
4242
*/
4343
public static class Builder {
4444

45+
/**
46+
* Constructs a new Builder object.
47+
*/
48+
public Builder() {
49+
}
50+
4551
// Segments for the eventual JSONPointer string
4652
private final List<String> refTokens = new ArrayList<String>();
4753

src/main/java/org/json/JSONPropertyName.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@Target({METHOD})
2222
public @interface JSONPropertyName {
2323
/**
24+
* The value of the JSON property.
2425
* @return The name of the property as to be used in the JSON Object.
2526
*/
2627
String value();

src/main/java/org/json/Property.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
* @version 2015-05-05
1414
*/
1515
public class Property {
16+
17+
/**
18+
* Constructs a new Property object.
19+
*/
20+
public Property() {
21+
}
22+
1623
/**
1724
* Converts a property file object into a JSONObject. The property file object is a table of name value pairs.
1825
* @param properties java.util.Properties

src/main/java/org/json/XML.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
@SuppressWarnings("boxing")
2525
public class XML {
2626

27+
/**
28+
* Constructs a new XML object.
29+
*/
30+
public XML() {
31+
}
32+
2733
/** The Character '&amp;'. */
2834
public static final Character AMP = '&';
2935

0 commit comments

Comments
 (0)