Changeset 4459


Ignore:
Timestamp:
Mar 20, 2013, 2:49:34 PM (10 years ago)
Author:
olle
Message:

Refs #803. Class/file action/sample/AddSample.java in client/servlet/updated to create the sample set as a HashSet<SharedItem>, instead of a TreeSet<SharedItem>, in order to avoid problems when adding a sample item (a TreeSet requires that its members adheres to the Comparable interface).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/action/sample/AddSample.java

    r3791 r4459  
    4343import se.lu.thep.waf.constraints.InvalidParameterValue;
    4444
     45import java.util.HashSet;
    4546import java.util.Set;
    46 import java.util.TreeSet;
    4747
    4848/**
     
    8686    if (activeP != null)
    8787    {
    88       Set<SharedItem> sampleSet = new TreeSet<SharedItem>();
     88      Set<SharedItem> sampleSet = new HashSet<SharedItem>();
    8989      sampleSet.add(sample);
    9090      ShareableUtil.shareTo(activeP, sampleSet, Permission.READ,
Note: See TracChangeset for help on using the changeset viewer.