text
stringlengths
30
1.67M
<s> package net . sf . json . sample ; import java . util . HashMap ; import java . util . List ; public class MappedBean extends HashMap { private static final long serialVersionUID = - <NUM_LIT> ; public List getList ( ) { return ( List ) get ( "<STR_LIT:list>" ) ; } public String getName ( ) { return ( String ) get ...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class PrivateConstructorBean { private int value ; private PrivateConstructorBean ( ) { } public int getValue ( ) { return value ; } public vo...
<s> package net . sf . json . sample ; import java . util . List ; import java . util . Map ; import net . sf . json . JSONFunction ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class PrimitiveBean { private Object [ ] oarray...
<s> package net . sf . json . sample ; import net . sf . json . JSONString ; public class ObjectJSONStringBean implements JSONString { private int id ; private String name ; public int getId ( ) { return id ; } public String getName ( ) { return name ; } public void setId ( int id ) { this . id = id ; } public void set...
<s> package net . sf . json . sample ; import java . util . HashMap ; import java . util . Map ; public class MappingBean { private Map attributes = new HashMap ( ) ; public void addAttribute ( Object key , Object value ) { this . attributes . put ( key , value ) ; } public Map getAttributes ( ) { return attributes ; }...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class BeanA1763699 { private BeanB1763699 [ ] bbeans ; public BeanB1763699 [ ] getBbeans ( ) { return bbeans ; } public void setBbeans ( BeanB...
<s> package net . sf . json . sample ; public class InterfaceBean { private Runnable runnable ; public Runnable getRunnable ( ) { return runnable ; } public void setRunnable ( Runnable runnable ) { this . runnable = runnable ; } } </s>
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class Media { private String title ; public String getTitle ( ) { return title ; } public void setTitle ( String title ) { this . title = titl...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class MediaBean { private String title ; public String getTitle ( ) { return title ; } public void setTitle ( String title ) { this . title = ...
<s> package net . sf . json . sample ; import java . util . ArrayList ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class PlayerList { private ArrayList player ; public ArrayList getPlayer ( ) { return player ; } public void ...
<s> package net . sf . json . sample ; import java . util . HashMap ; import java . util . Map ; public class JSONTestBean { private String email = "<STR_LIT>" ; private String inventoryID = "<STR_LIT>" ; private String notes = "<STR_LIT>" ; private Map options = new HashMap ( ) ; private String rateID = "<STR_LIT>" ; ...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . EqualsBuilder ; import org . apache . commons . lang . builder . HashCodeBuilder ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class Unst...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class FieldBean { private int value ; public String string ; public int getValue ( ) { return value ; } public void setValue ( int value ) { t...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class ArrayBean { private BeanA [ ] beans ; public BeanA [ ] getBeans ( ) { return beans ; } public void setBeans ( BeanA [ ] beans ) { this ....
<s> package net . sf . json . sample ; public class BeanFoo { private String [ ] [ ] items ; public String [ ] [ ] getItems ( ) { return items ; } public void setItems ( String [ ] [ ] items ) { this . items = items ; } } </s>
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class NumberArrayBean { private byte [ ] bytes ; private double [ ] doubles ; private float [ ] floats ; private int [ ] ints ; private long [...
<s> package net . sf . json . sample ; public class ChildBean extends ValueBean { private ParentBean parent ; public ParentBean getParent ( ) { return parent ; } public void setParent ( ParentBean parent ) { this . parent = parent ; } } </s>
<s> package net . sf . json . sample ; public class TransientBean extends ValueBean { private transient int transientValue ; public int getTransientValue ( ) { return transientValue ; } public void setTransientValue ( int transientValue ) { this . transientValue = transientValue ; } } </s>
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . EqualsBuilder ; import org . apache . commons . lang . builder . HashCodeBuilder ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class Bean...
<s> package net . sf . json . sample ; public class ClassBean { private Class klass ; public Class getKlass ( ) { return klass ; } public void setKlass ( Class klass ) { this . klass = klass ; } } </s>
<s> package net . sf . json . sample ; public class PropertyBean { private String propertyWithNoReadMethod ; private final String propertyWithNoWriteMethod = "<STR_LIT>" ; public String getPropertyWithNoWriteMethod ( ) { return propertyWithNoWriteMethod ; } public void setPropertyWithNoReadMethod ( String propertyWithN...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class BeanB extends BeanA { private int [ ] intarray = new int [ ] { <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> } ; public int [ ] getIntarray ( ...
<s> package net . sf . json . sample ; import java . util . ArrayList ; import java . util . List ; public class ListingBean { private List attributes = new ArrayList ( ) ; public void addAttribute ( Object value ) { this . attributes . add ( value ) ; } public List getAttributes ( ) { return attributes ; } public void...
<s> package net . sf . json . sample ; import org . apache . commons . lang . builder . ToStringBuilder ; import org . apache . commons . lang . builder . ToStringStyle ; public class BeanB1763699 { private String str ; public String getStr ( ) { return str ; } public void setStr ( String str ) { this . str = str ; } p...
<s> package net . sf . json . sample ; import net . sf . json . JSONException ; import net . sf . json . util . JsonEventListener ; public class JsonEventAdpater implements JsonEventListener { private int arrayEnd = <NUM_LIT:0> ; private int arrayStart = <NUM_LIT:0> ; private int elementAdded = <NUM_LIT:0> ; private in...
<s> package net . sf . json ; import java . util . List ; import net . sf . ezmorph . test . ArrayAssertions ; import net . sf . json . test . JSONAssert ; public class Assertions extends JSONAssert { public static void assertEquals ( List expecteds , List actuals ) { assertEquals ( null , expecteds , actuals ) ; } pub...
<s> package net . sf . json ; import net . sf . json . test . JSONAssert ; import junit . framework . TestCase ; public class TestJSONFunction extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONFunction . class ) ; } public TestJSONFunction ( String name ) { sup...
<s> package net . sf . json ; public class TestJSONArrayStaticBuilders_JSONString extends AbstractJSONArrayStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONArrayStaticBuilders_JSONString . class ) ; } public TestJSONArrayStaticBuilders_JSONString ( Strin...
<s> package net . sf . json ; import java . util . ArrayList ; import java . util . HashMap ; import java . util . List ; import java . util . Map ; import net . sf . ezmorph . bean . MorphDynaBean ; import net . sf . ezmorph . bean . MorphDynaClass ; public class TestJSONArrayStaticBuilders_Collection_DynaBean extends...
<s> package net . sf . json ; import java . io . Serializable ; import java . io . PrintWriter ; import java . io . StringWriter ; import java . math . BigDecimal ; import java . math . BigInteger ; import java . util . ArrayList ; import java . util . Collections ; import java . util . HashMap ; import java . util . I...
<s> package net . sf . json ; public class TestJSONArrayStaticBuilders_String extends AbstractJSONArrayStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONArrayStaticBuilders_String . class ) ; } public TestJSONArrayStaticBuilders_String ( String name ) { s...
<s> package net . sf . json . filters ; import junit . framework . TestCase ; public class TestNotPropertyFilter extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestNotPropertyFilter . class ) ; } public TestNotPropertyFilter ( String testName ) { super ( testName ) ...
<s> package net . sf . json . filters ; import junit . framework . TestCase ; public class TestCompositePropertyFilter extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestCompositePropertyFilter . class ) ; } private CompositePropertyFilter filter ; public TestCompos...
<s> package net . sf . json . filters ; import junit . framework . TestCase ; import net . sf . json . util . PropertyFilter ; public class TestOrPropertyFilter extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestOrPropertyFilter . class ) ; } public TestOrPropertyFi...
<s> package net . sf . json . filters ; import junit . framework . TestCase ; public class TestMappingPropertyFilter extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestMappingPropertyFilter . class ) ; } public TestMappingPropertyFilter ( String testName ) { super (...
<s> package net . sf . json . filters ; import junit . framework . TestCase ; import net . sf . json . util . PropertyFilter ; public class TestAndPropertyFilter extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestAndPropertyFilter . class ) ; } public TestAndPropert...
<s> package net . sf . json . filters ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( new TestSuite ( TestAndPropertyFilter . class ) ) ; suit...
<s> package net . sf . json . util ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( new TestSuite ( TestJavaIdentifierTransformer . class ) ) ;...
<s> package net . sf . json . util ; import java . io . StringWriter ; import junit . framework . TestCase ; import net . sf . json . JSONFunction ; import net . sf . json . JSONObject ; public class TestJSONBuilder extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( Tes...
<s> package net . sf . json . util ; import junit . framework . TestCase ; import net . sf . json . JSONException ; public class TestJSONTokener extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONTokener . class ) ; } public TestJSONTokener ( String name ) { sup...
<s> package net . sf . json . util ; import junit . framework . TestCase ; import net . sf . json . JSONArray ; import net . sf . json . JSONObject ; public class TestWebUtils extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestWebUtils . class ) ; } public TestWebUt...
<s> package net . sf . json . util ; import junit . framework . TestCase ; public class TestJavaIdentifierTransformer extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJavaIdentifierTransformer . class ) ; } public TestJavaIdentifierTransformer ( String testName ) ...
<s> package net . sf . json . util ; import junit . framework . TestCase ; import net . sf . json . JSONFunction ; import net . sf . json . JSONObject ; public class TestJSONStringer extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONStringer . class ) ; } publi...
<s> package net . sf . json . util ; import java . util . Collections ; import junit . framework . TestCase ; import net . sf . json . JSONArray ; import net . sf . json . JSONException ; import net . sf . json . JSONFunction ; public class TestJSONUtils extends TestCase { public static void main ( String [ ] args ) { ...
<s> package net . sf . json ; import net . sf . json . util . JSONTokener ; public class TestJSONObjectStaticBuilders_JSONTokener extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONObjectStaticBuilders_JSONTokener . class ) ; } pu...
<s> package net . sf . json ; import junit . framework . TestSuite ; public class JSONTestSuite extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( net . sf . json . AllTests . suite ( ) ) ; suite . addTest ( ...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . List ; import java . util . Map ; import junit . framework . TestCase ; import net . sf . json . sample . ArrayJSONStringBean ; import net . sf . json . sample . BeanA ; import net . sf . json . sample . MappingBean ; import net . sf . js...
<s> package net . sf . json ; public class TestJSONArrayAsJSON extends AbstractJSONTest { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONArrayAsJSON . class ) ; } public TestJSONArrayAsJSON ( String name ) { super ( name ) ; } protected int getIndent ( ) { return <NUM_LIT:2> ;...
<s> package net . sf . json . test ; import java . util . HashMap ; import java . util . Map ; import junit . framework . AssertionFailedError ; import junit . framework . TestCase ; import net . sf . json . JSON ; import net . sf . json . JSONArray ; import net . sf . json . JSONFunction ; import net . sf . json . JSO...
<s> package net . sf . json . test ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT:test>" ) ; suite . addTest ( new TestSuite ( TestJSONAssert . class ) ) ; return su...
<s> package net . sf . json ; public class TestJSONObjectStaticBuilders_JSONObject extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONObjectStaticBuilders_JSONObject . class ) ; } public TestJSONObjectStaticBuilders_JSONObject ( S...
<s> package net . sf . json ; import net . sf . json . sample . ObjectBean ; import org . apache . commons . beanutils . PropertyUtils ; public class TestJSONObjectStaticBuilders_ObjectBean extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import junit . framework . TestCase ; import net . sf . ezmorph . bean . MorphDynaBean ; import net . sf . ezmorph . bean . MorphDynaClass ; import net . sf . json . sample . BeanA ; import net . sf . json . sample . JsonEventAdpate...
<s> package net . sf . json ; import junit . framework . TestCase ; public abstract class AbstractJSONObjectStaticBuildersTestCase extends TestCase { public AbstractJSONObjectStaticBuildersTestCase ( String testName ) { super ( testName ) ; } public void testFromObject ( ) { JSONObject json = JSONObject . fromObject ( ...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import junit . framework . TestCase ; public class TestJSONObjectAsMap extends TestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONObjectAsMap . class ) ; } private JSONObject jsonObj...
<s> package net . sf . json ; public class TestJSONNullAsJSON extends AbstractJSONTest { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONNullAsJSON . class ) ; } public TestJSONNullAsJSON ( String name ) { super ( name ) ; } protected int getIndent ( ) { return <NUM_LIT:2> ; } ...
<s> package net . sf . json ; import net . sf . json . sample . PrimitiveBean ; import org . apache . commons . beanutils . PropertyUtils ; public class TestJSONObjectStaticBuilders_PrimitiveBean extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner...
<s> package net . sf . json . xml ; import junit . framework . TestCase ; import net . sf . json . Assertions ; import net . sf . json . JSON ; import net . sf . json . JSONArray ; import net . sf . json . JSONNull ; import net . sf . json . JSONObject ; import net . sf . json . test . JSONAssert ; public class TestXML...
<s> package net . sf . json . xml ; import junit . framework . TestCase ; import net . sf . json . Assertions ; import net . sf . json . JSON ; import net . sf . json . JSONObject ; import net . sf . json . JSONSerializer ; import net . sf . json . test . JSONAssert ; public class TestUserSubmitted extends TestCase { p...
<s> package net . sf . json . xml ; import net . sf . json . JSONArray ; import net . sf . json . JSONNull ; import net . sf . json . JSONObject ; import org . custommonkey . xmlunit . XMLTestCase ; public class TestXMLSerializer_writes extends XMLTestCase { public static void main ( String [ ] args ) { junit . textui ...
<s> package net . sf . json . xml ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( new TestSuite ( TestXMLSerializer_reads . class ) ) ; suite ...
<s> package net . sf . json ; import java . io . StringWriter ; import java . io . IOException ; import java . math . BigDecimal ; import java . math . BigInteger ; import java . util . ArrayList ; import java . util . HashMap ; import java . util . List ; import java . util . Map ; import junit . framework . TestCase ...
<s> package net . sf . json ; public class TestJSONObjectStaticBuilders_JSONString extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJSONObjectStaticBuilders_JSONString . class ) ; } public TestJSONObjectStaticBuilders_JSONString ( S...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import net . sf . ezmorph . bean . MorphDynaBean ; import net . sf . ezmorph . bean . MorphDynaClass ; public class TestJSONObjectStaticBuilders_DynaBean extends AbstractJSONObjectStaticBuildersTestCase { public static void main ( S...
<s> package net . sf . json ; import java . lang . reflect . InvocationTargetException ; import java . util . ArrayList ; import java . util . Calendar ; import java . util . Date ; import java . util . HashMap ; import java . util . LinkedList ; import java . util . List ; import java . util . ListIterator ; import ja...
<s> package net . sf . json . regexp ; public class TestJdkRegexpMatcher extends AbstractRegexpMatcherTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestJdkRegexpMatcher . class ) ; } public TestJdkRegexpMatcher ( String name ) { super ( name ) ; } protected RegexpMatcher g...
<s> package net . sf . json . regexp ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( new TestSuite ( TestJdkRegexpMatcher . class ) ) ; suite ...
<s> package net . sf . json . regexp ; import junit . framework . TestCase ; public abstract class AbstractRegexpMatcherTestCase extends TestCase { public AbstractRegexpMatcherTestCase ( String name ) { super ( name ) ; } public void testGetGroupIfMatches ( ) { RegexpMatcher regexpMatcher = getRegexpMatcher ( "<STR_LIT...
<s> package net . sf . json . regexp ; public class TestPerl5RegexpMatcher extends AbstractRegexpMatcherTestCase { public static void main ( String [ ] args ) { junit . textui . TestRunner . run ( TestPerl5RegexpMatcher . class ) ; } public TestPerl5RegexpMatcher ( String name ) { super ( name ) ; } protected RegexpMat...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import junit . framework . TestCase ; public class TestJSONObjectEqualsHashCodeCompareTo extends TestCase { private static JSONObject strings ; private static Map values = new HashMap ( ) ; private static JSONObject values1 ; privat...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import net . sf . ezmorph . bean . MorphDynaBean ; import net . sf . ezmorph . bean . MorphDynaClass ; public class TestJSONArrayStaticBuilders_Array_DynaBean extends AbstractJSONArrayStaticBuildersTestCase { public static void main...
<s> package net . sf . json ; import java . util . HashMap ; import java . util . Map ; import junit . framework . TestCase ; public class TestJSONArrayEqualsHashCodeCompareTo extends TestCase { private static JSONArray strings ; private static Map values = new HashMap ( ) ; private static JSONArray values1 ; private s...
<s> package net . sf . json ; import junit . framework . TestSuite ; public class AllTests extends TestSuite { public static TestSuite suite ( ) throws Exception { TestSuite suite = new TestSuite ( ) ; suite . setName ( "<STR_LIT>" ) ; suite . addTest ( new TestSuite ( TestJSONObjectStaticBuilders_ObjectBean . class ) ...
<s> package net . sf . json . sample ; public class AnnotatedBean { private String string1 ; @ JsonAnnotation private String string2 ; private String string3 ; public String getString1 ( ) { return string1 ; } public void setString1 ( String string ) { this . string1 = string ; } public String getString2 ( ) { return s...
<s> package net . sf . json . sample ; import java . util . Set ; import java . util . HashSet ; public class EnumBean { private JsonEnum jsonEnum ; private String string ; private Set < JsonEnum > enums = new HashSet < JsonEnum > ( ) ; public JsonEnum getJsonEnum ( ) { return jsonEnum ; } public String getString ( ) {...
<s> package net . sf . json . sample ; @ JsonAnnotation ( "<STR_LIT>" ) public class AnnotationBean { private String string ; public String getString ( ) { return string ; } public void setString ( String string ) { this . string = string ; } } </s>
<s> package net . sf . json . sample ; import java . lang . annotation . Retention ; import java . lang . annotation . RetentionPolicy ; @ Retention ( RetentionPolicy . RUNTIME ) public @ interface JsonAnnotation { String value ( ) default "<STR_LIT>" ; } </s>
<s> package net . sf . json . sample ; import java . util . ArrayList ; import java . util . HashSet ; import java . util . List ; import java . util . Set ; public class GenericsBean { private List < GenericsInternalBean > genericsInternalBeanList ; private List noTypeList ; private ArrayList < String > stringArrayLis...
<s> package net . sf . json . sample ; public enum JsonEnum { ARRAY , OBJECT } </s>
<s> package net . sf . json ; import java . lang . annotation . Annotation ; import java . util . HashMap ; import java . util . Map ; import junit . framework . TestCase ; import net . sf . ezmorph . Morpher ; import net . sf . ezmorph . bean . MorphDynaBean ; import net . sf . ezmorph . bean . MorphDynaClass ; import...
<s> package net . sf . json ; import java . beans . PropertyDescriptor ; import java . util . ArrayList ; import java . util . Collection ; import java . util . HashSet ; import junit . framework . TestCase ; import net . sf . json . sample . GenericsBean ; import net . sf . json . sample . GenericsBean . GenericsInter...
<s> package net . sf . json ; import java . lang . annotation . Annotation ; import java . util . ArrayList ; import java . util . List ; import junit . framework . TestCase ; import net . sf . json . sample . AnnotationBean ; import net . sf . json . sample . JsonEnum ; public class TestJSONArrayJdk15 extends TestCase...
<s> package net . sf . json ; import java . util . ArrayList ; import java . util . HashSet ; import java . util . List ; import java . util . Set ; import junit . framework . TestCase ; import net . sf . json . sample . GenericsBean ; import net . sf . json . sample . GenericsBean . GenericsInternalBean ; public class...
<s> package net . sf . json . bugs ; import java . util . ArrayList ; import java . util . List ; import junit . framework . TestCase ; import net . sf . json . JSONObject ; import net . sf . json . JsonConfig ; public class TestBug2843623 extends TestCase { public void testSample ( ) { Container orig = new Container (...
<s> package net . sf . json ; import java . beans . PropertyDescriptor ; import java . io . IOException ; import java . io . Writer ; import java . lang . annotation . Annotation ; import java . lang . reflect . Array ; import java . lang . reflect . Method ; import java . lang . reflect . ParameterizedType ; import ja...
<s> package net . sf . json ; import java . beans . PropertyDescriptor ; import java . io . IOException ; import java . io . Writer ; import java . lang . annotation . Annotation ; import java . lang . reflect . Array ; import java . lang . reflect . Field ; import java . lang . reflect . InvocationTargetException ; im...
<s> package net . sf . json . util ; import net . sf . ezmorph . ObjectMorpher ; public class EnumMorpher implements ObjectMorpher { private Class enumClass ; public EnumMorpher ( Class enumClass ) { if ( enumClass == null ) { throw new IllegalArgumentException ( "<STR_LIT>" ) ; } if ( ! Enum . class . isAssignableFrom...
<s> package net . sf . json . regexp ; import org . apache . commons . lang . exception . NestableRuntimeException ; import org . apache . oro . text . regex . MalformedPatternException ; import org . apache . oro . text . regex . Pattern ; import org . apache . oro . text . regex . PatternMatcher ; import org . apache...
<s> package net . sf . json . regexp ; public interface RegexpMatcher { String getGroupIfMatches ( String str , int group ) ; boolean matches ( String str ) ; } </s>
<s> package net . sf . json . regexp ; import java . util . regex . Matcher ; import java . util . regex . Pattern ; public class JdkRegexpMatcher implements RegexpMatcher { private final Pattern pattern ; public JdkRegexpMatcher ( String pattern ) { this ( pattern , false ) ; } public JdkRegexpMatcher ( String pattern...
<s> package net . sf . json . regexp ; public class RegexpUtils { private static String javaVersion = "<STR_LIT>" ; static { javaVersion = System . getProperty ( "<STR_LIT>" ) ; } public static RegexpMatcher getMatcher ( String pattern ) { if ( isJDK13 ( ) ) { return new Perl5RegexpMatcher ( pattern ) ; } else { return...
<s> package net . sf . json . groovy ; import groovy . lang . Closure ; import groovy . lang . GString ; import groovy . lang . GroovyObjectSupport ; import groovy . lang . MissingMethodException ; import java . util . HashMap ; import java . util . Iterator ; import java . util . List ; import java . util . Map ; impo...
<s> package net . sf . json . groovy ; import groovy . lang . GroovyObjectSupport ; import java . io . BufferedReader ; import java . io . File ; import java . io . FileReader ; import java . io . IOException ; import java . io . InputStream ; import java . io . InputStreamReader ; import java . io . Reader ; import ja...
<s> package net . sf . json . xml ; public interface JSONTypes { String ARRAY = "<STR_LIT>" ; String BOOLEAN = "<STR_LIT:boolean>" ; String FLOAT = "<STR_LIT:float>" ; String FUNCTION = "<STR_LIT>" ; String INTEGER = "<STR_LIT>" ; String NUMBER = "<STR_LIT:number>" ; String OBJECT = "<STR_LIT>" ; String STRING = "<STR_...
<s> package net . sf . json . xml ; import java . io . BufferedReader ; import java . io . ByteArrayOutputStream ; import java . io . File ; import java . io . FileInputStream ; import java . io . IOException ; import java . io . InputStream ; import java . io . InputStreamReader ; import java . io . OutputStream ; imp...
<s> package net . sf . json ; import net . sf . json . util . JSONTokener ; import net . sf . json . util . JSONUtils ; public class JSONSerializer { public static Object toJava ( JSON json ) { return toJava ( json , new JsonConfig ( ) ) ; } public static Object toJava ( JSON json , JsonConfig jsonConfig ) { if ( JSONU...
<s> package net . sf . json ; import java . io . IOException ; import java . io . Writer ; import java . io . Serializable ; public interface JSON extends Serializable { boolean isArray ( ) ; boolean isEmpty ( ) ; int size ( ) ; String toString ( int indentFactor ) ; String toString ( int indentFactor , int indent ) ; ...
<s> package net . sf . json ; import org . apache . commons . lang . exception . NestableRuntimeException ; public class JSONException extends NestableRuntimeException { private static final long serialVersionUID = <NUM_LIT> ; public JSONException ( ) { super ( ) ; } public JSONException ( String msg ) { super ( msg , ...
<s> package net . sf . json . processors ; import java . util . Calendar ; import java . util . Date ; import net . sf . json . JSONObject ; import net . sf . json . JsonConfig ; public class JsDateJsonBeanProcessor implements JsonBeanProcessor { public JSONObject processBean ( Object bean , JsonConfig jsonConfig ) { J...
<s> package net . sf . json . processors ; import java . math . BigDecimal ; import java . math . BigInteger ; import net . sf . json . JSON ; import net . sf . json . JSONFunction ; import net . sf . json . JSONNull ; import net . sf . json . JSONString ; public final class JsonVerifier { public static boolean isValid...