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 SonarSource/sonarqube in file ...g.sonar.plugins.findbugs.FindbugsExecutorTest.java (2012-05-24)
@@ -19,14 +19,7 @@
  */
 package org.sonar.plugins.findbugs;
 
-import static org.hamcrest.core.Is.is;
-import static org.junit.Assert.assertThat;
-import static org.junit.internal.matchers.StringContains.containsString;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import java.io.File;
-
+import com.google.common.collect.Lists;
 import org.apache.commons.io.FileUtils;
 import org.junit.Test;
 import org.sonar.api.CoreProperties;
@@ -34,6 +27,14 @@ import org.sonar.api.resources.Project;
 import org.sonar.api.resources.ProjectFileSystem;
 import org.sonar.api.utils.SonarException;
 
+import java.io.File;
+
+import static org.hamcrest.core.Is.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.internal.matchers.StringContains.containsString;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
 public class FindbugsExecutorTest {
 
   @Test
@@ -78,6 +79,7 @@ public class FindbugsExecutorTest {
     when(conf.getFindbugsProject()).thenReturn(project);
     when(conf.saveExcludeConfigXml()).thenReturn(new File("test-resources/findbugs-exclude.xml"));
     when(conf.saveIncludeConfigXml()).thenReturn(new File("test-resources/findbugs-include.xml"));
+    when(conf.getExcludesFilters()).thenReturn(Lists.newArrayList(new File("test-resources/findbugs-exclude.xml"), new File("test-resources/fake-file.xml")));
     when(conf.getEffort()).thenReturn("default");
     when(conf.getTimeout()).thenReturn(CoreProperties.FINDBUGS_TIMEOUT_DEFAULT_VALUE);
     return conf;
Project elasticsearch/elasticsearch in file ...n.java.org.elasticsearch.common.lucene.Lucene.java (2015-02-20)
@@ -20,6 +20,7 @@
 package org.elasticsearch.common.lucene;
 
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Lists;
 import org.apache.lucene.analysis.core.KeywordAnalyzer;
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.codecs.CodecUtil;
@@ -120,6 +121,7 @@ public class Lucene {
      */
     public static Iterable<String> files(SegmentInfos infos) throws IOException {
         final List<Collection<String>> list = new ArrayList<>();
+        list.add(Collections.singleton(infos.getSegmentsFileName()));
         for (SegmentCommitInfo info : infos) {
             list.add(info.files());
         }
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);