java.util.ArrayList



Project BuildCraft/BuildCraft in file ...00d/common.buildcraft.core.network.RPCHandler.java (2014-06-02)
@@ -11,7 +11,6 @@ package buildcraft.core.network;
 import java.io.IOException;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
-import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
 import java.util.LinkedList;
@@ -112,8 +111,6 @@ public final class RPCHandler {
 		PacketRPCTile packet = handlers.get (tile.getClass().getName()).createRCPPacket(tile, method, actuals);
 
 		if (packet != null) {
-			ArrayList<PacketRPCTile> packets = packet.breakIntoSmallerPackets(30 * 1024);
-
 			for (PacketRPCTile p : packet.breakIntoSmallerPackets(MAX_PACKET_SIZE)) {
 				BuildCraftCore.instance.sendToServer(p);
 			}
Project Bukkit/Bukkit in file ...va.org.bukkit.command.defaults.VanillaCommand.java (2012-10-09)
@@ -1,13 +1,11 @@
 package org.bukkit.command.defaults;
 
-import java.util.ArrayList;
 import java.util.List;
+
 import org.bukkit.command.Command;
 import org.bukkit.command.CommandSender;
 
 public abstract class VanillaCommand extends Command {
-    static final List<String> EMPTY_LIST = new ArrayList(0);
-
     protected VanillaCommand(String name) {
         super(name);
     }
Project JetBrains/intellij-community in file ...ntellij.execution.ui.layout.impl.GridCellImpl.java (2010-04-27)
@@ -47,6 +47,7 @@ import javax.swing.border.EmptyBorder;
 import java.awt.*;
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
+import java.util.ArrayList;
 import java.util.Set;
 
 public class GridCellImpl implements GridCell, Disposable {
@@ -248,6 +249,8 @@ public class GridCellImpl implements GridCell, Disposable {
   }
 
   public java.util.List<SwitchTarget> getTargets(boolean onlyVisible) {
+    if (myTabs.getPresentation().isHideTabs()) return new ArrayList<SwitchTarget>();
+
     return myTabs.getTargets(onlyVisible, false);
   }
 
Project JetBrains/intellij-community in file ...deInsight.template.emmet.tokens.TemplateToken.java (2013-01-31)
@@ -19,12 +19,15 @@ import com.intellij.codeInsight.template.impl.TemplateImpl;
 import com.intellij.openapi.util.Pair;
 import com.intellij.psi.xml.XmlFile;
 
+import java.util.ArrayList;
 import java.util.List;
 
 /**
  * @author Eugene.Kudelevsky
  */
 public class TemplateToken extends ZenCodingToken {
+  public final static TemplateToken EMPTY_TEMPLATE_TOKEN = new TemplateToken("", new ArrayList<Pair<String, String>>());
+
   private final String myKey;
   private TemplateImpl myTemplate;
   private final List<Pair<String, String>> myAttribute2Value;
Project JetBrains/intellij-community in file ....application.options.colors.FontEditorPreview.java (2010-09-10)
@@ -27,7 +27,6 @@ import com.intellij.util.EventDispatcher;
 import org.jetbrains.annotations.Nls;
 
 import java.awt.*;
-import java.util.ArrayList;
 
 public class FontEditorPreview implements PreviewPanel{
   private final EditorEx myEditor;
@@ -60,7 +59,6 @@ public class FontEditorPreview implements PreviewPanel{
       protected DaemonCodeAnalyzerStatus getDaemonCodeAnalyzerStatus(boolean fillErrorsCount) {
         DaemonCodeAnalyzerStatus status = new DaemonCodeAnalyzerStatus();
         status.errorAnalyzingFinished = true;
-        status.passStati = new ArrayList<DaemonCodeAnalyzerStatus.PassStatus>();
         status.errorCount = new int[]{1, 2};
         return status;
       }