SSD2015/Stack

Type 1 does not throw exception on pushing null

Closed this issue · 0 comments

whs commented

Example code

// stack is of type 1
stack.push(null);
  • Expected result: IllegalArgumentException is thrown
  • Actual result: Nothing is thrown