Java 7: Identical 'catch' branches in 'try' statement
This commit is contained in:
committed by
Rossen Stoyanchev
parent
55137e101a
commit
78e8f7a3f8
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user