java.util.ArrayList



API Populatity

538 Client projects

Project: java

Package: java.util

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);
   }