cid#1448277 RV: Bad use of return value

Change-Id: I68fdfc59de2d2590730abaae8b16bfe92e1693b2
Reviewed-on: https://gerrit.libreoffice.org/75629
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2019-07-15 12:07:49 +01:00
parent de44936e61
commit fd55c09eba

View File

@ -150,7 +150,7 @@ public class _XContentProviderManager extends MultiMethodTest {
log.println("registering the second provider in non-replacing mode"); log.println("registering the second provider in non-replacing mode");
try { try {
oObj.registerContentProvider(contentProvider, myScheme, false); oObj.registerContentProvider(contentProvider, myScheme, false);
Status.failed("registerContentProvider(.., .., false)"); throw new StatusException(Status.failed("registerContentProvider(.., .., false)"));
} catch (DuplicateProviderException e) { } catch (DuplicateProviderException e) {
log.println("DuplicateProviderException thrown - OK"); log.println("DuplicateProviderException thrown - OK");
} }