From e9dc0c1e7f81745842e2106328a7d7054f49caa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wieland=20Sch=C3=B6bl?= Date: Mon, 12 Apr 2021 17:00:09 +0200 Subject: [PATCH] Suppress Internal Warning in tests --- src/test/java/org/hmcore/tests/JavaTests.java | 1 + .../org/hmcore/tests/modules/impl/JavaTestModule.java | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/hmcore/tests/JavaTests.java b/src/test/java/org/hmcore/tests/JavaTests.java index 08e5ffb..b9ac5ef 100644 --- a/src/test/java/org/hmcore/tests/JavaTests.java +++ b/src/test/java/org/hmcore/tests/JavaTests.java @@ -10,6 +10,7 @@ import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; +@SuppressWarnings("KotlinInternalInJava") public class JavaTests { @Test diff --git a/src/test/java/org/hmcore/tests/modules/impl/JavaTestModule.java b/src/test/java/org/hmcore/tests/modules/impl/JavaTestModule.java index 7a313ff..0e868c9 100644 --- a/src/test/java/org/hmcore/tests/modules/impl/JavaTestModule.java +++ b/src/test/java/org/hmcore/tests/modules/impl/JavaTestModule.java @@ -1,13 +1,13 @@ package org.hmcore.tests.modules.impl; import org.hmcore.modules.Module; -import org.hmcore.registration.config.ObjectInfoData; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +@SuppressWarnings("KotlinInternalInJava") public class JavaTestModule extends Module { public HashMap objectMap = new HashMap<>(); @@ -69,9 +69,10 @@ public class JavaTestModule extends Module { } @Override - public ObjectInfoData[] getObjectInfoArray() { + public org.hmcore.registration.config.ObjectInfoData[] getObjectInfoArray() { - ObjectInfoData[] objectInfoData = new ObjectInfoData[objectMap.values().size()]; + org.hmcore.registration.config.ObjectInfoData[] objectInfoData = + new org.hmcore.registration.config.ObjectInfoData[objectMap.values().size()]; int i = 0; @@ -91,7 +92,7 @@ public class JavaTestModule extends Module { } - objectInfoData[i] = new ObjectInfoData(entry.getKey(), null, options); + objectInfoData[i] = new org.hmcore.registration.config.ObjectInfoData(entry.getKey(), options); i++;