Cleanup (formatting)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 17 Feb 2015 19:11:21 +0000 (20:11 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 17 Feb 2015 19:16:11 +0000 (20:16 +0100)
platform/platform-impl/src/com/intellij/execution/process/impl/OSProcessManagerImpl.java

index e1848c7b160886137582a759e828001c9dc55d3c..8aa35eb05ffa232a05f05b121302310b097dcea8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2011 JetBrains s.r.o.
+ * Copyright 2000-2015 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -71,13 +71,11 @@ public class OSProcessManagerImpl extends OSProcessManager {
     try {
       if (SystemInfo.isWindows) {
         List<String> commandLines = new ArrayList<String>();
-        Iterable<WinProcess> processes = WinProcess.all();
-        for (WinProcess process : processes) {
+        for (WinProcess process : WinProcess.all()) {
           try {
             commandLines.add(process.getCommandLine());
           }
-          catch (WinpException ignored) {
-          }
+          catch (WinpException ignored) { }
         }
         return commandLines;
       }