java.util.ArrayListjava.util.List



Project Bukkit/Bukkit in file ...va.org.bukkit.command.defaults.VersionCommand.java (2012-02-29)
@@ -1,7 +1,8 @@
 package org.bukkit.command.defaults;
 
-import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.List;
+
 import org.bukkit.ChatColor;
 import org.bukkit.Bukkit;
 import org.bukkit.command.Command;
@@ -67,7 +68,7 @@ public class VersionCommand extends Command {
 
     private String getAuthors(final PluginDescriptionFile desc) {
         StringBuilder result = new StringBuilder();
-        ArrayList<String> authors = desc.getAuthors();
+        List<String> authors = desc.getAuthors();
 
         for (int i = 0; i < authors.size(); i++) {
             if (result.length() > 0) {
Project JetBrains/intellij-community in file ...diff.impl.processing.TextCompareProcessorTest.java (2014-03-01)
@@ -5,12 +5,12 @@ import com.intellij.openapi.diff.impl.fragments.LineFragment;
 import com.intellij.util.diff.FilesTooBigForDiffException;
 import junit.framework.TestCase;
 
-import java.util.ArrayList;
+import java.util.List;
 
 public class TextCompareProcessorTest extends TestCase {
   public void testIgnoreWrappingEqualText() throws FilesTooBigForDiffException {
     TextCompareProcessor processor = new TextCompareProcessor(ComparisonPolicy.IGNORE_SPACE);
-    ArrayList<LineFragment> lineFragments = processor.process("f(a, b)\n", "f(a,\nb)\n");
+    List<LineFragment> lineFragments = processor.process("f(a, b)\n", "f(a,\nb)\n");
     assertTrue(lineFragments.size() == 1);
     assertNull(lineFragments.get(0).getType());
   }
Project JetBrains/intellij-community in file ...ij.psi.search.searches.ExtensibleQueryFactory.java (2007-03-14)
@@ -23,7 +23,7 @@ import com.intellij.util.QueryExecutor;
 import com.intellij.util.QueryFactory;
 import org.jetbrains.annotations.NonNls;
 
-import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author yole
@@ -32,7 +32,7 @@ public class ExtensibleQueryFactory<Result, Parameters> extends QueryFactory<Res
   private boolean myExtensionsLoaded = false;
 
   @Override
-  protected ArrayList<QueryExecutor<Result, Parameters>> getExecutors() {
+  protected List<QueryExecutor<Result, Parameters>> getExecutors() {
     synchronized(myExecutors) {
       if (!myExtensionsLoaded) {
         myExtensionsLoaded = true;
Project JetBrains/intellij-community in file ...eInsight.navigation.ListBackgroundUpdaterTask.java (2011-08-31)
@@ -23,7 +23,7 @@ import com.intellij.ui.speedSearch.NameFilteringListModel;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
-import java.util.ArrayList;
+import java.util.List;
 
 /**
 * User: anna
@@ -51,7 +51,7 @@ public abstract class ListBackgroundUpdaterTask extends BackgroundUpdaterTask<JB
   }
 
   @Override
-  protected void replaceModel(ArrayList<PsiElement> data) {
+  protected void replaceModel(List<PsiElement> data) {
     final Object selectedValue = myComponent.getSelectedValue();
     final int index = myComponent.getSelectedIndex();
     ((NameFilteringListModel)myComponent.getModel()).replaceAll(data);
Project JetBrains/intellij-community in file ...intellij.refactoring.BaseRefactoringProcessor.java (2007-06-11)
@@ -33,9 +33,9 @@ import org.jetbrains.annotations.Nullable;
 
 import javax.swing.*;
 import java.lang.reflect.InvocationTargetException;
-import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
+import java.util.List;
 import java.util.Set;
 
 public abstract class BaseRefactoringProcessor {
@@ -429,7 +429,7 @@ public abstract class BaseRefactoringProcessor {
     performPsiSpoilingRefactoring();
   }
 
-  protected boolean showConflicts(final ArrayList<String> conflicts) {
+  protected boolean showConflicts(final List<String> conflicts) {
     if (!conflicts.isEmpty() && myPrepareSuccessfulSwingThreadCallback != null) {
       final ConflictsDialog conflictsDialog = new ConflictsDialog(myProject, conflicts);
       conflictsDialog.show();