Return unmodifiable list in tree number generator

This commit is contained in:
Arne Keller 2021-02-10 16:46:24 +01:00
parent 541f9c54e8
commit 503de3ad88

View File

@ -1,6 +1,7 @@
package edu.kit.typicalc.view.content.typeinferencecontent;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TreeNumberGenerator {
@ -22,6 +23,6 @@ public class TreeNumberGenerator {
}
protected List<Integer> getNumbers() {
return numbers;
return Collections.unmodifiableList(numbers);
}
}