mirror of
https://github.com/HMCore/Core.git
synced 2026-01-03 08:22:50 +00:00
Suppress Internal Warning in tests
This commit is contained in:
@@ -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.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
|
@SuppressWarnings("KotlinInternalInJava")
|
||||||
public class JavaTests {
|
public class JavaTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
package org.hmcore.tests.modules.impl;
|
package org.hmcore.tests.modules.impl;
|
||||||
|
|
||||||
import org.hmcore.modules.Module;
|
import org.hmcore.modules.Module;
|
||||||
import org.hmcore.registration.config.ObjectInfoData;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@SuppressWarnings("KotlinInternalInJava")
|
||||||
public class JavaTestModule extends Module<Integer, JavaCustomObjectInfo> {
|
public class JavaTestModule extends Module<Integer, JavaCustomObjectInfo> {
|
||||||
|
|
||||||
public HashMap<String, Integer> objectMap = new HashMap<>();
|
public HashMap<String, Integer> objectMap = new HashMap<>();
|
||||||
@@ -69,9 +69,10 @@ public class JavaTestModule extends Module<Integer, JavaCustomObjectInfo> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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;
|
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++;
|
i++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user