Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,6 @@
@SuppressWarnings("serial") // use default serial UID
public abstract class JsonValue implements Serializable {

/**
* Represents the JSON literal <code>true</code>.
* @deprecated Use <code>Json.TRUE</code> instead
*/
@Deprecated
public static final JsonValue TRUE = new JsonLiteral("true");

/**
* Represents the JSON literal <code>false</code>.
* @deprecated Use <code>Json.FALSE</code> instead
*/
@Deprecated
public static final JsonValue FALSE = new JsonLiteral("false");

/**
* Represents the JSON literal <code>null</code>.
* @deprecated Use <code>Json.NULL</code> instead
*/
@Deprecated
public static final JsonValue NULL = new JsonLiteral("null");

JsonValue() {
// prevent subclasses outside of this package
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@

public class JsonValue_Test {

@Test
@SuppressWarnings("deprecation")
public void testConstantsAreLiterals() {
assertEquals(Json.NULL, JsonValue.NULL);
assertEquals(Json.TRUE, JsonValue.TRUE);
assertEquals(Json.FALSE, JsonValue.FALSE);
}

@Test
@SuppressWarnings("deprecation")
public void valueOf_int() {
Expand Down