mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-160784 Migration to Stream API: replace with Stream.count() when possible (now i+=1 and i=i+1 also supported)
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ public class Main {
|
||||
for(String str : a<caret>rray) {
|
||||
String trimmed = str.trim();
|
||||
if(trimmed.length() > 10) {
|
||||
longStrings++;
|
||||
longStrings = longStrings + 1;
|
||||
}
|
||||
}
|
||||
return longStrings;
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ public class Main {
|
||||
if(element != null) {
|
||||
for(String str : element) {
|
||||
if(str.startsWith("xyz")) {
|
||||
count++;
|
||||
++count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user