Java 7: Identical 'catch' branches in 'try' statement

This commit is contained in:
Lars Grefer
2019-08-27 02:11:22 +02:00
committed by Rossen Stoyanchev
parent 55137e101a
commit 78e8f7a3f8
2 changed files with 2 additions and 8 deletions

View File

@@ -289,11 +289,7 @@ class FlowRegistryFactoryBean implements FactoryBean<FlowDefinitionRegistry>, Be
flowRegistry, flowBuilderServices);
FlowAssembler assembler = new FlowAssembler(builder, builderContext);
return assembler.assembleFlow();
} catch (IllegalArgumentException e) {
throw new FlowDefinitionConstructionException(builderInfo.getId(), e);
} catch (InstantiationException e) {
throw new FlowDefinitionConstructionException(builderInfo.getId(), e);
} catch (IllegalAccessException e) {
} catch (IllegalArgumentException | IllegalAccessException | InstantiationException e) {
throw new FlowDefinitionConstructionException(builderInfo.getId(), e);
}
}

View File

@@ -63,9 +63,7 @@ public class WebFlowUpgrader {
Source source = new StreamSource(flowResource.getInputStream());
Result result = new StreamResult(output);
transform(source, result);
} catch (TransformerException e) {
e.printStackTrace();
} catch (IOException e) {
} catch (TransformerException | IOException e) {
e.printStackTrace();
}
return output.toString();