mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
* TopNSet
resolve strange type complaint in my Windows Eclipse JDK6u24 setup
This commit is contained in:
1 parent
548114dbde
commit
61dc661f47
1 file changed
+3
-3
@@ -20,9 +20,9 @@
|
||||
package org.archive.crawler.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
import org.archive.util.Histotable;
|
||||
@@ -139,8 +139,8 @@ public class TopNSet implements Serializable {
|
||||
*
|
||||
* @return SortedSet of Entry<key, count> descending-frequency
|
||||
*/
|
||||
public SortedSet<Entry<?, Long>> getEntriesDescending() {
|
||||
TreeSet<Entry<?, Long>> sorted = Histotable.getEntryByFrequencySortedSet();
|
||||
public SortedSet<Map.Entry<?, Long>> getEntriesDescending() {
|
||||
TreeSet<Map.Entry<?, Long>> sorted = Histotable.getEntryByFrequencySortedSet();
|
||||
sorted.addAll(getTopSet().entrySet());
|
||||
return sorted;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user