diff options
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java')
-rw-r--r-- | bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java index 28fad0147..aa694c5ca 100644 --- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java +++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java @@ -118,9 +118,7 @@ public class DocumentRangeNode fRange= new Position(start, length); try { fBaseDocument.addPosition(RANGE_CATEGORY, fRange); - } catch (BadPositionCategoryException ex) { - CompareUIPlugin.log(ex); - } catch (BadLocationException ex) { + } catch (BadPositionCategoryException | BadLocationException ex) { CompareUIPlugin.log(ex); } } @@ -222,9 +220,7 @@ public class DocumentRangeNode fBaseDocument.addPosition(RANGE_CATEGORY, p); fAppendPosition= p; } - } catch (BadPositionCategoryException ex) { - // silently ignored - } catch (BadLocationException ex) { + } catch (BadPositionCategoryException | BadLocationException ex) { // silently ignored } } @@ -244,9 +240,7 @@ public class DocumentRangeNode fBaseDocument.addPosition(RANGE_CATEGORY, p); fAppendPosition= p; return fAppendPosition; - } catch (BadPositionCategoryException ex) { - // silently ignored - } catch (BadLocationException ex) { + } catch (BadPositionCategoryException | BadLocationException ex) { // silently ignored } } |