buildframework/helium/sf/java/internaldata/src/com/nokia/helium/internaldata/ant/listener/EndLessStack.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    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.