Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing Javadocs for Java 21 #860

Merged
merged 1 commit into from Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/org/json/CDL.java
Expand Up @@ -25,6 +25,12 @@
*/
public class CDL {

/**
* Constructs a new CDL object.
*/
public CDL() {
}

/**
* Get the next value. The value can be wrapped in quotes. The value can
* be empty.
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/json/Cookie.java
Expand Up @@ -15,6 +15,12 @@
*/
public class Cookie {

/**
* Constructs a new Cookie object.
*/
public Cookie() {
}

/**
* Produce a copy of a string in which the characters '+', '%', '=', ';'
* and control characters are replaced with "%hh". This is a gentle form
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/json/CookieList.java
Expand Up @@ -11,6 +11,12 @@
*/
public class CookieList {

/**
* Constructs a new CookieList object.
*/
public 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 '='.
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/json/HTTP.java
Expand Up @@ -13,6 +13,12 @@
*/
public class HTTP {

/**
* Constructs a new HTTP object.
*/
public HTTP() {
}

/** Carriage return/line feed. */
public static final String CRLF = "\r\n";

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/json/JSONML.java
Expand Up @@ -13,6 +13,13 @@
* @version 2016-01-30
*/
public class JSONML {

/**
* Constructs a new JSONML object.
*/
public JSONML() {
}

/**
* Parse XML values and store them in a JSONArray.
* @param x The XMLTokener containing the source string.
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/json/JSONPointer.java
Expand Up @@ -42,6 +42,12 @@ public class JSONPointer {
*/
public static class Builder {

/**
* Constructs a new Builder object.
*/
public Builder() {
}

// Segments for the eventual JSONPointer string
private final List<String> refTokens = new ArrayList<String>();

Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/json/JSONPropertyName.java
Expand Up @@ -21,6 +21,7 @@
@Target({METHOD})
public @interface JSONPropertyName {
/**
* The value of the JSON property.
* @return The name of the property as to be used in the JSON Object.
*/
String value();
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/json/Property.java
Expand Up @@ -13,6 +13,13 @@
* @version 2015-05-05
*/
public class Property {

/**
* Constructs a new Property object.
*/
public Property() {
}

/**
* Converts a property file object into a JSONObject. The property file object is a table of name value pairs.
* @param properties java.util.Properties
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/json/XML.java
Expand Up @@ -24,6 +24,12 @@
@SuppressWarnings("boxing")
public class XML {

/**
* Constructs a new XML object.
*/
public XML() {
}

/** The Character '&amp;'. */
public static final Character AMP = '&';

Expand Down