com.google.common.collect.Lists



Project JetBrains/intellij-community in file ....com.intellij.openapi.application.PathManager.java (2012-07-05)
@@ -16,7 +16,6 @@
 
 package com.intellij.openapi.application;
 
-import com.google.common.collect.Lists;
 import com.intellij.openapi.util.NamedJDOMExternalizable;
 import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.SystemInfoRt;
@@ -468,7 +467,6 @@ public class PathManager {
       Appender.class,               // log4j
       THashSet.class,               // trove4j
       PicoContainer.class,          // PicoContainer
-      Lists.class,                  // guava
       TypeMapper.class,             // JNA
       FileUtils.class,              // JNA (jna-utils)
       PatternMatcher.class          // OROMatcher
Project JetBrains/intellij-community in file ...m.jetbrains.python.console.PydevConsoleRunner.java (2013-04-09)
@@ -1,7 +1,6 @@
 package com.jetbrains.python.console;
 
 import com.google.common.base.CharMatcher;
-import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 import com.intellij.execution.ExecutionException;
 import com.intellij.execution.ExecutionHelper;
@@ -38,6 +37,8 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
 import com.intellij.psi.impl.source.tree.FileElement;
+import com.intellij.remotesdk.RemoteSdkData;
+import com.intellij.remotesdk.RemoteSshProcess;
 import com.intellij.testFramework.LightVirtualFile;
 import com.intellij.util.ArrayUtil;
 import com.intellij.util.IJSwingUtilities;
@@ -45,8 +46,6 @@ import com.intellij.util.containers.ContainerUtil;
 import com.intellij.util.net.NetUtils;
 import com.intellij.util.ui.UIUtil;
 import com.jetbrains.django.run.ProcessRunner;
-import com.intellij.remotesdk.RemoteSdkData;
-import com.intellij.remotesdk.RemoteSshProcess;
 import com.jetbrains.python.PythonHelpersLocator;
 import com.jetbrains.python.console.completion.PydevConsoleElement;
 import com.jetbrains.python.console.parsing.PythonConsoleData;
@@ -376,6 +375,9 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory<PythonC
           }
 
           fireConsoleInitializedEvent(consoleView);
+
+
+          requestFocus();
         }
       });
     }
Project voldemort/voldemort in file ...c.java.voldemort.store.metadata.MetadataStore.java (2009-02-16)
@@ -41,7 +41,6 @@ import voldemort.xml.ClusterMapper;
 import voldemort.xml.StoreDefinitionsMapper;
 
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Lists;
 
 public class MetadataStore implements StorageEngine<byte[], byte[]> {
 
@@ -90,7 +89,6 @@ public class MetadataStore implements StorageEngine<byte[], byte[]> {
     }
 
     public List<Versioned<byte[]>> get(byte[] key) throws VoldemortException {
-        List<Versioned<byte[]>> values = Lists.newArrayList();
         String keyStr = new String(key);
         if(!KNOWN_KEYS.contains(keyStr))
             throw new IllegalArgumentException("Unknown metadata key: " + keyStr);
Project Graylog2/graylog2-server in file ...main.java.org.graylog2.restclient.models.User.java (2014-10-23)
@@ -16,17 +16,16 @@
  */
 package org.graylog2.restclient.models;
 
-import com.google.common.collect.Lists;
 import com.google.inject.assistedinject.Assisted;
 import com.google.inject.assistedinject.AssistedInject;
+import org.apache.shiro.SecurityUtils;
+import org.apache.shiro.subject.SimplePrincipalCollection;
+import org.apache.shiro.subject.Subject;
 import org.graylog2.restclient.lib.APIException;
 import org.graylog2.restclient.lib.ApiClient;
 import org.graylog2.restclient.models.api.requests.ChangePasswordRequest;
 import org.graylog2.restclient.models.api.requests.ChangeUserRequest;
 import org.graylog2.restclient.models.api.responses.system.UserResponse;
-import org.apache.shiro.SecurityUtils;
-import org.apache.shiro.subject.SimplePrincipalCollection;
-import org.apache.shiro.subject.Subject;
 import org.graylog2.restroutes.generated.routes;
 import org.joda.time.DateTimeZone;
 import org.slf4j.Logger;
@@ -136,7 +135,7 @@ public class User {
 
 	public List<String> getPermissions() {
         if (permissions == null) {
-            return Lists.newArrayList();
+            return Collections.emptyList();
         }
 		return permissions;
 	}
Project Graylog2/graylog2-web-interface in file ...313/app.models.api.requests.CreateUserRequest.java (2014-01-12)
@@ -18,7 +18,6 @@
  */
 package models.api.requests;
 
-import com.google.common.collect.Lists;
 import models.User;
 import org.joda.time.DateTimeZone;
 
@@ -37,7 +36,7 @@ public class CreateUserRequest extends ChangeUserRequest {
         this.fullname = user.getFullName();
         this.email = user.getEmail();
         this.password = "";
-        this.permissions = Lists.newArrayList("*"); // TODO PREVIEW user.getPermissions();
+        this.permissions  = user.getPermissions();
         final DateTimeZone timeZone = user.getTimeZone();
         if (timezone != null) {
             this.timezone = timeZone.getID();