summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 10:55:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 16:36:20 +0000
commitb1c472fd873c6396890135a3804a5b93e8581457 (patch)
treefc3eb61cd9805268343440316379c8545f1c9b76 /qadevOOo/tests/java/mod
parent4a1edf626ad48b5955892e5590d75fa7ae5eaf58 (diff)
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
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r--qadevOOo/tests/java/mod/_defreg/NestedRegistry.java4
-rw-r--r--qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java4
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java8
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java12
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessibleShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapeControl.java8
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java8
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java8
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java8
15 files changed, 63 insertions, 25 deletions
diff --git a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
index c6bc3e85eb41..efd3b335fe8f 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 a5e18932db92..3790f94e3bfc 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 ca72046d3a66..87f1c5a74164 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 0502bf0f86eb..4886436b9cf0 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 7551834674fb..f54b1dd499ee 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 ef8f300d63e2..73031398a192 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 d67584025d6c..8529515a209e 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 46f21cee04f0..37a3b8a35882 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 0b70cf048b24..9329506da84b 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 b81c1bb525bf..8828d8acfc05 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 b218012c6958..2e160bb78819 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 662ff1921a08..aac416f0c5a4 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 bf8d5bc496f6..aec6cc2df2b3 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 51560ae92867..552ac5fb465e 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 8c403eb55362..f053a2e0f13f 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