explicit types to diamonds

This commit is contained in:
Anna.Kozlova
2016-08-08 16:41:19 +02:00
parent 49f599bcb4
commit 78d1492242
5897 changed files with 16750 additions and 16367 deletions

View File

@@ -41,7 +41,7 @@ public class PyExecuteFileLineMarkerProvider implements LineMarkerProvider {
final PyExecuteFileExtensionPoint[] extensions =
ApplicationManager.getApplication().getExtensions(PyExecuteFileExtensionPoint.EP_NAME);
final List<AnAction> actions = new ArrayList<AnAction>();
final List<AnAction> actions = new ArrayList<>();
final DefaultActionGroup group = new DefaultActionGroup();
if (PlatformUtils.isPyCharmEducational()) {
group.add(runAction);

View File

@@ -55,7 +55,7 @@ class PyEduDebugProcess extends PyDebugProcess {
@NotNull
@Override
protected PySuspendContext createSuspendContext(PyThreadInfo threadInfo) {
threadInfo.updateState(threadInfo.getState(), new ArrayList<PyStackFrameInfo>(filterFrames(threadInfo.getFrames())));
threadInfo.updateState(threadInfo.getState(), new ArrayList<>(filterFrames(threadInfo.getFrames())));
return new PySuspendContext(this, threadInfo);
}

View File

@@ -64,7 +64,7 @@ public class PyEduStackFrame extends PyStackFrame {
node.addChildren(XValueChildrenList.EMPTY, true);
return;
}
final Map<String, XValue> specialValues = new HashMap<String, XValue>();
final Map<String, XValue> specialValues = new HashMap<>();
XValueChildrenList filteredChildren = new XValueChildrenList();
for (int i = 0; i < children.size(); i++) {
String name = children.getName(i);