mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-204701 Redundant collection operation: suggest emptyIterator()
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Collections.emptyIterator()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
Iterator<String> test() {
|
||||
return Collections.emptyIterator();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Collections.emptyIterator()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
Iterator<String> test() {
|
||||
return new ArrayList<String>().iter<caret>ator();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user