diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-30 20:48:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-30 21:07:42 +0000 |
commit | f173e148d8f2d0600fd50bee05e536932d529643 (patch) | |
tree | 69adf168a0bcec8c0864490eb2877e75f767e1e0 /qadevOOo | |
parent | f1207dbd3a0b9b05746eecfd0eb4aa4e1efcbeb9 (diff) |
coverity#1326573 Unused value
Change-Id: I72f70f8f0e01cdd59c2086244f328a007563adbd
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java | 14 |
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) ; |