Gitlab service upgraded. Please report any problems to

Commit 1dec2ec0 authored by Noric Couderc's avatar Noric Couderc

Removed unused method in ListApplication

Forces re-generating the data.
parent 15a38332
......@@ -66,13 +66,6 @@ public class ListApplication extends CollectionApplication<List<Integer>> {
return dataStructure.get(generateIndex());
public Integer runGet2() {
if (dataStructure.isEmpty()) {
return null;
return dataStructure.get(generateIndex());
public int runIndexOf() {
return dataStructure.indexOf(randomGenerator.nextInt());
......@@ -26,6 +26,7 @@ val MethodNameTable = DualHashBidiMap(mapOf(
Pair("keySet()", "runKeySet"),
Pair("lastIndexOf(Object)", "runLastIndexOf"),
Pair("listIterator()", "runListIterator"),
Pair("listIterator(int)", "runListIterator2"),
Pair("put(Object, Object)", "runPut"),
Pair("putAll(Map)", "runPutAll"),
Pair("remove(Object)", "runRemove"),
......@@ -37,7 +38,7 @@ val MethodNameTable = DualHashBidiMap(mapOf(
Pair("sort(Comparator)", "runSort"),
Pair("subList(int, int)", "runSubList"),
Pair("toArray()", "runToArray"),
Pair("toArray(Object[])", "runToArray"),
Pair("toArray(Object[])", "runToArray2"),
Pair("values()", "runValues")
......@@ -221,11 +221,10 @@ public class ApplicationTest {
// Expected: {runAddAll=1, runIsEmpty=1, runToArray=2, runAdd=1}
HashMap<String, Long> expected = new HashMap<String, Long>();
expected.put("runSubList", 1L);
expected.put("runListIterator2", 1L);
expected.put("runAdd", 1L);
expected.put("runRemove", 1L);
expected.put("runIterator", 1L);
expected.put("runToArray2", 2L);
expected.put("runRemoveAll", 1L);
expected.put("runClear", 1L);
expected.put("runContains", 1L);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment