Use intention to simplify for in j2k
#KT-7157 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
Map<String, String> resultMap = new HashMap<String, String>();
|
||||
for (final Map.Entry<String, String> entry : resultMap.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
String type = entry.getValue();
|
||||
|
||||
if (key.equals("myKey")) {
|
||||
System.out.println(type);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user