java.util.HashSet



Project android/platform_frameworks_base in file ...16c487e60d51c12da31/tools.preload.LoadedClass.java (2009-02-10)
@@ -14,12 +14,11 @@
  * limitations under the License.
  */
 
-import java.util.List;
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.List;
 import java.util.Set;
-import java.util.HashSet;
-import java.io.Serializable;
 
 /**
  * A loaded class.
@@ -134,6 +133,7 @@ class LoadedClass implements Serializable, Comparable<LoadedClass> {
         return name.compareTo(o.name);
     }
 
+    @Override
     public String toString() {
         return name;
     }
Project apache/lucene-solr in file ...va.org.apache.lucene.index.memory.MemoryIndex.java (2011-12-13)
@@ -24,7 +24,6 @@ import java.util.Collection;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Map;
 
@@ -750,7 +749,6 @@ public class MemoryIndex {
     
     private MemoryIndexReader() {
       super(); // avoid as much superclass baggage as possible
-      readerFinishedListeners = Collections.synchronizedSet(new HashSet<ReaderFinishedListener>());
     }
     
     private Info getInfo(String fieldName) {
Project apache/mahout in file ...apache.mahout.fpm.pfpgrowth.fpgrowth.FPGrowth.java (2013-03-24)
@@ -21,7 +21,6 @@ import java.io.IOException;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -267,7 +266,6 @@ public class FPGrowth<A extends Comparable<? super A>> {
    * @param topKPatternsOutputCollector
    *          the outputCollector which transforms the given Pattern in integer
    *          format to the corresponding A Format
-   * @return Top K frequent patterns for each attribute
    */
   private void generateTopKFrequentPatterns(
     Iterator<Pair<int[],Long>> transactions,
Project grails/grails-core in file ...y.grails.commons.DefaultGrailsControllerClass.java (2011-07-03)
@@ -29,7 +29,6 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -311,7 +310,6 @@ public class DefaultGrailsControllerClass extends AbstractInjectableGrailsClass
      * @deprecated This method is deprecated and will be removed in a future version of Grails
      * @return EMPTY_SET until the method is removed
      */
-    @SuppressWarnings("unchecked")
     @Deprecated
     public Set getCommandObjectClasses() {
         return Collections.EMPTY_SET;
Project k9mail/k-9 in file .../src.com.fsck.k9.preferences.IStorageExporter.java (2011-03-27)
@@ -1,12 +1,12 @@
 package com.fsck.k9.preferences;
 
 import java.io.OutputStream;
-import java.util.HashSet;
 import java.util.Set;
 
 import android.content.Context;
 
 public interface IStorageExporter {
     public boolean needsKey();
+    // exportPreferences must be sure to flush all data to the OutputStream before returning
     public void exportPreferences(Context context, boolean includeGlobals, Set<String> accountUuids, OutputStream os, String encryptionKey) throws StorageImportExportException;
 }