Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mminella committed Dec 1, 2017
1 parent 73ca736 commit 7211947
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2013 the original author or authors.
* Copyright 2006-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -751,7 +751,7 @@ private void closeStream() {
*
* @param items the value object
*
* @throws Exception thrown if general error occurs.
* @throws IOException thrown if general error occurs.
* @throws XmlMappingException thrown if error occurs during XML Mapping.
*/
@Override
Expand All @@ -775,13 +775,9 @@ public void write(List<? extends T> items) throws XmlMappingException, IOExcepti
channel.force(false);
}
}
catch (XMLStreamException e) {
catch (XMLStreamException | IOException e) {
throw new WriteFailedException("Failed to flush the events", e);
}
catch (IOException e) {
throw new WriteFailedException("Failed to flush the events", e);
}

}

/**
Expand Down

0 comments on commit 7211947

Please sign in to comment.