File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 17
17
import java .util .Iterator ;
18
18
import java .util .MissingResourceException ;
19
19
import java .util .stream .Collectors ;
20
+ import java .util .stream .Stream ;
20
21
21
22
import static processing .app .I18n .format ;
22
23
import static processing .app .I18n .tr ;
@@ -275,7 +276,11 @@ public static Collection<String> getCollection(String key) {
275
276
}
276
277
277
278
public static void setCollection (String key , Collection <String > values ) {
278
- String value = values .stream ().collect (Collectors .joining ("," ));
279
+ setCollection (key , values .stream ());
280
+ }
281
+
282
+ public static void setCollection (String key , Stream <String > values ) {
283
+ String value = values .collect (Collectors .joining ("," ));
279
284
set (key , value );
280
285
}
281
286
You can’t perform that action at this time.
0 commit comments