mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-18 00:10:51 -07: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.
19 lines
No EOL
438 B
Java
19 lines
No EOL
438 B
Java
package org.json.junit;
|
|
|
|
import java.util.*;
|
|
|
|
/**
|
|
* A resource bundle class
|
|
*/
|
|
public class StringsResourceBundle extends ListResourceBundle {
|
|
@Override
|
|
public Object[][] getContents() {
|
|
return contents;
|
|
}
|
|
static final Object[][] contents = {
|
|
{"greetings.hello", "Hello, "},
|
|
{"greetings.world", "World!"},
|
|
{"farewells.later", "Later, "},
|
|
{"farewells.gator", "Alligator!"}
|
|
};
|
|
} |