Skip to content

Commit

Permalink
#98 aibolit.P14 fixed in DomStack
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 13, 2020
1 parent f86100e commit 55d32e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/org/xembly/DomStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public void push(final Directive.Cursor cursor) {

@Override
public Directive.Cursor pop() throws ImpossibleModificationException {
try {
synchronized (this.cursors) {
synchronized (this.cursors) {
try {
return this.cursors.pop();
} catch (final NoSuchElementException ex) {
throw new ImpossibleModificationException(
"Stack is empty, can't POP", ex
);
}
} catch (final NoSuchElementException ex) {
throw new ImpossibleModificationException(
"stack is empty, can't POP", ex
);
}
}
}

0 comments on commit 55d32e1

Please sign in to comment.