Kaydet (Commit) f173e148 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326573 Unused value

Change-Id: I72f70f8f0e01cdd59c2086244f328a007563adbd
üst f1207dbd
...@@ -70,13 +70,15 @@ public class _XMimeContentTypeFactory extends MultiMethodTest { ...@@ -70,13 +70,15 @@ public class _XMimeContentTypeFactory extends MultiMethodTest {
result = false ; result = false ;
} }
try { if (result == true) {
oObj.createMimeContentType("nosuchtype") ; try {
oObj.createMimeContentType("nosuchtype") ;
log.println("!!! No exception was thrown on wrong MIME type !!!") ; log.println("!!! No exception was thrown on wrong MIME type !!!") ;
result = false ; result = false ;
} catch (com.sun.star.lang.IllegalArgumentException e) { } catch (com.sun.star.lang.IllegalArgumentException e) {
log.println("Right exception was thrown." ) ; log.println("Right exception was thrown." ) ;
}
} }
tRes.tested("createMimeContentType()", result) ; tRes.tested("createMimeContentType()", result) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment