Skip to content

Commit 3503bce

Browse files
committed
fix sonar issue on day 22
1 parent 3cfd40f commit 3503bce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

day22/src/main/java/de/havox_design/aoc2015/day22/StateWrapper.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
public class StateWrapper<StateT> {
6+
public class StateWrapper<S> {
77

8-
private final StateT state;
8+
private final S state;
99

10-
private final StateWrapper<StateT> predecessor;
10+
private final StateWrapper<S> predecessor;
1111

12-
StateWrapper(final StateT state, final StateWrapper<StateT> predecessor) {
12+
StateWrapper(final S state, final StateWrapper<S> predecessor) {
1313
this.state = state;
1414
this.predecessor = predecessor;
1515
}
1616

17-
public StateT getState() {
17+
public S getState() {
1818
return state;
1919
}
2020

21-
public StateWrapper<StateT> getPredecessor() {
21+
public StateWrapper<S> getPredecessor() {
2222
return predecessor;
2323
}
2424

25-
public List<StateT> getStates() {
26-
final List<StateT> stateList;
25+
public List<S> getStates() {
26+
final List<S> stateList;
2727
if (predecessor == null) {
2828
stateList = new ArrayList<>();
2929
} else {

0 commit comments

Comments
 (0)