From fd55c09ebab3827847d69112a8786a3413d42db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 15 Jul 2019 12:07:49 +0100 Subject: [PATCH] cid#1448277 RV: Bad use of return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I68fdfc59de2d2590730abaae8b16bfe92e1693b2 Reviewed-on: https://gerrit.libreoffice.org/75629 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java index 0207c3c77a9e..957901775e51 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java @@ -150,7 +150,7 @@ public class _XContentProviderManager extends MultiMethodTest { log.println("registering the second provider in non-replacing mode"); try { oObj.registerContentProvider(contentProvider, myScheme, false); - Status.failed("registerContentProvider(.., .., false)"); + throw new StatusException(Status.failed("registerContentProvider(.., .., false)")); } catch (DuplicateProviderException e) { log.println("DuplicateProviderException thrown - OK"); }