qadevOOo/runner/util/DBTools.java | 4 ++- qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java | 4 ++- qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java | 4 ++- qadevOOo/tests/java/mod/_defreg/NestedRegistry.java | 4 ++- qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java | 4 ++- qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java | 8 ++++-- qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java | 12 +++++----- qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/AccessibleShape.java | 4 ++- qadevOOo/tests/java/mod/_svx/SvxShapeControl.java | 8 +++++- qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java | 8 +++++- qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java | 8 +++++- qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java | 8 +++++- 18 files changed, 72 insertions(+), 28 deletions(-)
New commits: commit b1c472fd873c6396890135a3804a5b93e8581457 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Dec 10 10:55:21 2015 +0000 coverity#1326610 DE: Dropped or ignored exception and coverity#1326611 DE: Dropped or ignored exception coverity#1326612 DE: Dropped or ignored exception coverity#1326613 DE: Dropped or ignored exception coverity#1326614 DE: Dropped or ignored exception coverity#1326615 DE: Dropped or ignored exception coverity#1326617 DE: Dropped or ignored exception coverity#1326618 DE: Dropped or ignored exception coverity#1326619 DE: Dropped or ignored exception coverity#1326620 DE: Dropped or ignored exception coverity#1326621 DE: Dropped or ignored exception coverity#1326622 DE: Dropped or ignored exception coverity#1326623 DE: Dropped or ignored exception coverity#1326624 DE: Dropped or ignored exception coverity#1326625 DE: Dropped or ignored exception coverity#1326626 DE: Dropped or ignored exception coverity#1326627 DE: Dropped or ignored exception Change-Id: I921a5434a6a116db5033cb2c90a59008c13f1bb2 diff --git a/qadevOOo/runner/util/DBTools.java b/qadevOOo/runner/util/DBTools.java index 685ce2c..4fd764a 100644 --- a/qadevOOo/runner/util/DBTools.java +++ b/qadevOOo/runner/util/DBTools.java @@ -161,7 +161,9 @@ public class DBTools { dbContext = UnoRuntime.queryInterface (XNamingService.class, cont) ; - } catch (com.sun.star.uno.Exception e) {} + } catch (com.sun.star.uno.Exception e) { + System.out.println("caught exception: " + e); + } } /** diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java index 742aa7e..3538eb6 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java @@ -174,7 +174,9 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { try { newValue = tParam.getMSF().createInstance( "com.sun.star.util.NumberFormatsSupplier"); - } catch (com.sun.star.uno.Exception e) {} + } catch (com.sun.star.uno.Exception e) { + System.out.println("caught exception: " + e); + } return newValue; } }) ; diff --git a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java index e18a834..88b7683 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java +++ b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java @@ -92,7 +92,9 @@ public class _XGoalSeek extends MultiMethodTest { xSheet.getCellByPosition(3, 4).setValue(0.8); xSheet.getCellByPosition(3, 5).setFormula("= (D5 ^ 2 - 1) / (D5 - 1)"); } - catch(Exception e) {} + catch(Exception e) { + System.out.println("caught exception: " + e); + } goal = oObj.seekGoal(aFormula, aValue, "2"); log.println("Goal Result: " + goal.Result + " Divergence: " + goal.Divergence); result &= goal.Divergence < divergence; diff --git a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java index c6bc3e8..efd3b33 100644 --- a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java +++ b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java @@ -71,7 +71,9 @@ public class NestedRegistry extends TestCase { reg1.destroy(); reg2.destroy(); } - catch (com.sun.star.registry.InvalidRegistryException e) {} + catch (com.sun.star.registry.InvalidRegistryException e) { + System.out.println("caught exception: " + e); + } } /** diff --git a/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java b/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java index a5e1893..3790f94 100644 --- a/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java +++ b/qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java @@ -69,7 +69,9 @@ public class NestedRegistry extends TestCase { reg1.destroy(); reg2.destroy(); } - catch (com.sun.star.registry.InvalidRegistryException e) {} + catch (com.sun.star.registry.InvalidRegistryException e) { + System.out.println("caught exception: " + e); + } } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java index ca72046..87f1c5a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java @@ -150,9 +150,11 @@ public class ScAccessiblePageHeaderArea extends TestCase { tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { - try { - pressZoom.doAccessibleAction(0); - } catch (com.sun.star.lang.IndexOutOfBoundsException ibe) {} + try { + pressZoom.doAccessibleAction(0); + } catch (com.sun.star.lang.IndexOutOfBoundsException ibe) { + System.out.println("caught exception: " + ibe); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java index 0502bf0..4886436 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java @@ -91,7 +91,9 @@ public class AccessibleControlShape extends TestCase { Size size = oShape.getSize(); size.Width += 100; oShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java index 7551834..f54b1dd 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java @@ -85,11 +85,13 @@ public class AccessibleEditableTextPara extends TestCase { new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { - int l = "AccessibleEditablePara".length(); - edText.deleteText(0, l); - edText.setText("Event"); - edText.setText("AccessibleEditablePara"); - }catch(com.sun.star.lang.IndexOutOfBoundsException e) {} + int l = "AccessibleEditablePara".length(); + edText.deleteText(0, l); + edText.setText("Event"); + edText.setText("AccessibleEditablePara"); + } catch(com.sun.star.lang.IndexOutOfBoundsException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java index ef8f300..7303139 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java @@ -93,7 +93,9 @@ public class AccessibleGraphicShape extends TestCase { Size size = oShape.getSize(); size.Width += 100; oShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java index d675840..8529515 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java @@ -103,7 +103,9 @@ public class AccessibleOLEShape extends TestCase { Size size = oShape.getSize(); size.Width += 100; oShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java index 46f21ce..37a3b8a 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java @@ -107,7 +107,9 @@ public class AccessiblePresentationGraphicShape extends TestCase { Size size = fShape.getSize(); size.Width += 100; fShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java index 0b70cf0..9329506 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java @@ -116,7 +116,9 @@ public class AccessiblePresentationOLEShape extends TestCase { Size size = fShape.getSize(); size.Width += 100; fShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java index b81c1bb..8828d8ac 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java @@ -107,7 +107,9 @@ public class AccessiblePresentationShape extends TestCase { Size size = fShape.getSize(); size.Width += 100; fShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleShape.java index b218012..2e160bb 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleShape.java @@ -95,7 +95,9 @@ public class AccessibleShape extends TestCase { Size size = oShape.getSize(); size.Width += 100; oShape.setSize(size); - } catch(com.sun.star.beans.PropertyVetoException e) {} + } catch(com.sun.star.beans.PropertyVetoException e) { + System.out.println("caught exception: " + e); + } } }); diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java index 662ff19..aac416f 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java @@ -122,13 +122,17 @@ public class SvxShapeControl extends TestCase { try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style1",aStyle); oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape); try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style2",aStyle); log.println( "adding document relation for XControlShape" ); diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java index bf8d5bc..aec6cc2 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java @@ -130,13 +130,17 @@ public class SvxShapeDimensioning extends TestCase { try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style1",aStyle); oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape); try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style2",aStyle); DefaultDsc tDsc = new DefaultDsc("com.sun.star.text.XTextContent", diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java index 51560ae..552ac5f 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java @@ -224,13 +224,17 @@ public class SvxShapePolyPolygon extends TestCase { try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style1",aStyle); oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape); try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style2",aStyle); // adding relation for XText diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java index 8c403eb..f053a2e 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java @@ -238,13 +238,17 @@ public class SvxShapePolyPolygonBezier extends TestCase { try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style1",aStyle); oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape); try { aStyle = (XStyle) AnyConverter.toObject( new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} + } catch (Exception e) { + System.out.println("caught exception: " + e); + } tEnv.addObjRelation("Style2",aStyle); // adding relation for XText
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits