Suppress Internal Warning in tests

This commit is contained in:
Wieland Schöbl
2021-04-12 17:00:09 +02:00
parent d1fa7b77ad
commit e9dc0c1e7f
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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<Integer, JavaCustomObjectInfo> {
public HashMap<String, Integer> objectMap = new HashMap<>();
@@ -69,9 +69,10 @@ public class JavaTestModule extends Module<Integer, JavaCustomObjectInfo> {
}
@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<Integer, JavaCustomObjectInfo> {
}
objectInfoData[i] = new ObjectInfoData(entry.getKey(), null, options);
objectInfoData[i] = new org.hmcore.registration.config.ObjectInfoData(entry.getKey(), options);
i++;