buildframework/helium/sf/java/internaldata/src/com/nokia/helium/internaldata/ant/listener/EndLessStack.java
equal
deleted
inserted
replaced
49 * If the stack is empty it returns the defaultElement. |
49 * If the stack is empty it returns the defaultElement. |
50 * @return element |
50 * @return element |
51 */ |
51 */ |
52 public E pop() { |
52 public E pop() { |
53 E element = super.pop(); |
53 E element = super.pop(); |
54 if (element != null) |
54 if (element != null) { |
55 return element; |
55 return element; |
|
56 } |
56 return defaultElement; |
57 return defaultElement; |
57 } |
58 } |
58 |
59 |
59 /** |
60 /** |
60 * Endless stack is never empty. |
61 * Endless stack is never empty. |