mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 11:34:43 +08:00
* Cleans up some warnings * Adds new test for bug https://github.com/stleary/JSON-java/issues/332 * Adds some resource handling for string writers using pre-java1.7 support. I know StringWriters don't need a close method called, but the tests should still handle their resources properly.
11 lines
225 B
Java
11 lines
225 B
Java
package org.json.junit;
|
|
|
|
/**
|
|
* Need a class with some public data members for testing
|
|
*/
|
|
@SuppressWarnings("boxing")
|
|
public class MyPublicClass {
|
|
public Integer publicInt = 42;
|
|
public String publicString = "abc";
|
|
}
|