[Minor] code cleanup

This commit is contained in:
Robert von Burg 2023-04-17 08:33:41 +02:00
parent 0d2b8165e1
commit e4cdf43b9c
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 4 additions and 4 deletions

View File

@ -322,8 +322,7 @@ public class XmlModelSaxReader extends DefaultHandler {
break;
default:
throw new IllegalArgumentException(
MessageFormat.format("The element ''{0}'' is unhandled!", qName));
throw new IllegalArgumentException(MessageFormat.format("The element ''{0}'' is unhandled!", qName));
}
}
@ -369,6 +368,8 @@ public class XmlModelSaxReader extends DefaultHandler {
case ACTION:
if (this.activityStack.isEmpty())
throw new IllegalStateException("Missing parent for action");
this.activityStack.peek().addElement((Action) parameterizedElement);
this.parameterizedElement = this.activityStack.peek();
@ -425,8 +426,7 @@ public class XmlModelSaxReader extends DefaultHandler {
break;
default:
throw new IllegalArgumentException(
MessageFormat.format("The element ''{0}'' is unhandled!", qName));
throw new IllegalArgumentException(MessageFormat.format("The element ''{0}'' is unhandled!", qName));
}
}
}