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

remove deprecated static fields to avoid deadlock #115

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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