summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-30 20:48:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-10-30 21:07:42 +0000
commitf173e148d8f2d0600fd50bee05e536932d529643 (patch)
tree69adf168a0bcec8c0864490eb2877e75f767e1e0 /qadevOOo
parentf1207dbd3a0b9b05746eecfd0eb4aa4e1efcbeb9 (diff)
coverity#1326573 Unused value
Change-Id: I72f70f8f0e01cdd59c2086244f328a007563adbd
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
index 68e47d2da0f0..18b6e910266c 100644
--- a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
+++ b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
@@ -70,13 +70,15 @@ public class _XMimeContentTypeFactory extends MultiMethodTest {
result = false ;
}
- try {
- oObj.createMimeContentType("nosuchtype") ;
+ if (result == true) {
+ try {
+ oObj.createMimeContentType("nosuchtype") ;
- log.println("!!! No exception was thrown on wrong MIME type !!!") ;
- result = false ;
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Right exception was thrown." ) ;
+ log.println("!!! No exception was thrown on wrong MIME type !!!") ;
+ result = false ;
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Right exception was thrown." ) ;
+ }
}
tRes.tested("createMimeContentType()", result) ;