Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Fixed mistake error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkJeongHwan committed Sep 16, 2019
1 parent fb10283 commit b65b000
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/realtimetech/kson/KsonContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public KsonContext() {
this.stringMaker = new StringMaker(100);

this.objectStack = new FastStack<Object>();
this.ksonStack = new FastStack<KsonValue>();

this.registeredTransformers = new HashMap<Class<? extends Object>, Transformer<? extends Object>>();

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/realtimetech/kson/test/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class MainTest {
public static void main(String[] args) throws Exception {
KsonContext ksonContext = new KsonContext();


{
String fieldTest;

Expand Down
22 changes: 22 additions & 0 deletions src/main/java/com/realtimetech/kson/test/TestObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ public class TestObject {
private Test test;

private Test[] testArray;

private int[] intArray;
private String[] stringArray;

private int integer;
private String string;

private TestInterfaceImpl testInterfaceImpl;
private TestAbstractImpl testAbstractImpl;
Expand Down Expand Up @@ -126,7 +131,12 @@ public TestObject(Test test) {
this.test = test;

this.testArray = new Test[] { test, test };

this.intArray = new int[] { 1, 2, 3, 4 };
this.integer = 1;

this.stringArray = new String[] { "A", "B", "C" };
this.string = "ABC";

this.testInterfaceImpl = new TestInterfaceImpl();
this.testAbstractImpl = new TestAbstractImpl();
Expand Down Expand Up @@ -249,6 +259,18 @@ public int[] getIntArray() {
return intArray;
}

public int getInteger() {
return integer;
}

public String[] getStringArray() {
return stringArray;
}

public String getString() {
return string;
}

public Test[] getTestArray() {
return testArray;
}
Expand Down

0 comments on commit b65b000

Please sign in to comment.