diff --git a/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/Builder.java b/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/Builder.java index 5239983..74c2efd 100644 --- a/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/Builder.java +++ b/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/Builder.java @@ -16,8 +16,6 @@ public interface Builder { ProcessingUnitImpl createProcessingUnit(AnnotationInfo annotationInfo, ClassInfo classInfo, MethodInfo methodInfo) throws Snail4jWorkloadException, OnlyStringAndLongAndIntAreAllowedParameterTypes; -// Descriptor createDescriptor(AnnotationInfo annotationInfo) throws HavocException; - MethodWrapper createMethodWrapper(Method method); MethodParameter createParameter(Method method, MethodParameterInfo parm) diff --git a/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/UseCases.java b/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/UseCases.java index 03ece77..2f40aa4 100644 --- a/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/UseCases.java +++ b/workload/src/main/java/com/github/eostermueller/snail4j/workload/model/UseCases.java @@ -1,5 +1,6 @@ package com.github.eostermueller.snail4j.workload.model; +import java.util.Comparator; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; @@ -7,6 +8,10 @@ public class UseCases { + public UseCases sort(Comparator c) { + useCases.sort(c); + return this; + } private List useCases = new CopyOnWriteArrayList(); /* (non-Javadoc)