1. Sebastian Sdorra
  2. scm-manager

Commits

Sebastian Sdorra  committed 87c7a16

use sortedset instead of treeset

  • Participants
  • Parent commits 2214f86
  • Branches default

Comments (0)

Files changed (1)

File scm-core/src/main/java/sonia/scm/collect/LimitedSortedSet.java

View file
  • Ignore whitespace
    */
   public LimitedSortedSet(int maxSize)
   {
-    this.treeSet = Sets.newTreeSet();
+    this.sortedSet = new TreeSet<E>();
     this.maxSize = maxSize;
   }
 
    */
   public LimitedSortedSet(Comparator<E> comparator, int maxSize)
   {
-    this.treeSet = Sets.newTreeSet(comparator);
+    this.sortedSet = Sets.newTreeSet(comparator);
     this.maxSize = maxSize;
   }
 
   @Override
   protected SortedSet<E> delegate()
   {
-    return treeSet;
+    return sortedSet;
   }
 
   /**
   private int maxSize;
 
   /** delegate set */
-  private TreeSet treeSet;
+  private SortedSet<E> sortedSet;
 }