File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
metafacture-json/src/main/java/org/metafacture/json Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 34
34
import java .util .Arrays ;
35
35
import java .util .List ;
36
36
import java .util .stream .Collectors ;
37
+ import java .util .stream .Stream ;
37
38
38
39
/**
39
40
* Decodes a record in JSON format.
@@ -152,7 +153,7 @@ private void processRecord(String record) {
152
153
}
153
154
}
154
155
155
- private List <String > matches (Object obj ) {
156
+ private Stream <String > matches (Object obj ) {
156
157
final List <?> records = (obj instanceof List <?>) ? ((List <?>) obj ) : Arrays .asList (obj );
157
158
return records .stream ().map (doc -> {
158
159
try {
@@ -161,7 +162,7 @@ private List<String> matches(Object obj) {
161
162
e .printStackTrace ();
162
163
return doc .toString ();
163
164
}
164
- }). collect ( Collectors . toList ()) ;
165
+ });
165
166
}
166
167
167
168
@ Override
You can’t perform that action at this time.
0 commit comments