File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "java.configuration.updateBuildConfiguration" : " automatic"
2
+ "java.configuration.updateBuildConfiguration" : " automatic" ,
3
+ "java.compile.nullAnalysis.mode" : " disabled"
3
4
}
Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >com.github.stevenlagoy</groupId >
6
6
<artifactId >json-java-objectifier</artifactId >
7
- <version >1.0.1 </version >
7
+ <version >1.0.2 </version >
8
8
<packaging >jar</packaging >
9
9
<name >JSON Java Objectifier</name >
10
10
<description >Java tools for converting JSON into typed object structures</description >
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public static List<JSONObject> processObject(String objectLine) {
114
114
return null ;
115
115
String members = objectLine .substring (1 , objectLine .length () - 1 ).trim ();
116
116
if (members .isEmpty ())
117
- return null ;
117
+ return new ArrayList <>() ;
118
118
return processMembers (members );
119
119
}
120
120
Original file line number Diff line number Diff line change 5
5
6
6
import org .junit .Test ;
7
7
8
+ import java .util .ArrayList ;
8
9
import java .util .List ;
9
10
10
11
import core .JSONObject ;
@@ -114,7 +115,7 @@ public void testProcessArray() {
114
115
@ Test
115
116
public void testProcessObject () {
116
117
// Test empty object
117
- assertNull ( JSONProcessor .processObject ("{}" ));
118
+ assertEquals ( new ArrayList <>(), JSONProcessor .processObject ("{}" ));
118
119
119
120
// Test simple object
120
121
List <JSONObject > simple = JSONProcessor .processObject ("{\" key\" :\" value\" }" );
Original file line number Diff line number Diff line change 5
5
import org .junit .Test ;
6
6
7
7
import core .FileOperations ;
8
+ import core .JSONObject ;
8
9
import core .JSONProcessor ;
9
10
10
11
public class Tests {
You can’t perform that action at this time.
0 commit comments