Browse Source

Anpassen der geg. Lösung an den Null-Testfall

vollständige_und_weitere_testate
chris 3 years ago
parent
commit
e6cf897874
  1. 3
      SimpleActivityStack/src/solution/SimpleActivityStack.java

3
SimpleActivityStack/src/solution/SimpleActivityStack.java

@ -6,6 +6,9 @@ public class SimpleActivityStack extends SimpleStack<SimpleActivity> {
@Override
public int push(SimpleActivity activity) {
if (activity == null) {
return 0;
}
if (size() > 0) {
super.get(size() - 1).passivate();
}

Loading…
Cancel
Save