mirror of
https://github.com/HMCore/Core.git
synced 2026-01-03 00:12:48 +00:00
Refactor ModuleInfo, ObjectInfoConfig to Kotlin
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
package org.hmcore.registration.config;
|
|
||||||
|
|
||||||
public class ModuleInfo {
|
|
||||||
|
|
||||||
public final String moduleName;
|
|
||||||
public final ObjectInfoData[] objects;
|
|
||||||
|
|
||||||
public ModuleInfo(String moduleName, ObjectInfoData[] objects) {
|
|
||||||
this.moduleName = moduleName;
|
|
||||||
this.objects = objects;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
package org.hmcore.registration.config;
|
|
||||||
|
|
||||||
public class ObjectInfoConfig {
|
|
||||||
|
|
||||||
public final ModuleInfo[] modules;
|
|
||||||
|
|
||||||
public ObjectInfoConfig(ModuleInfo[] modules) {
|
|
||||||
this.modules = modules;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package org.hmcore.registration.config
|
||||||
|
|
||||||
|
internal class ModuleInfo(
|
||||||
|
@JvmField val moduleName: String,
|
||||||
|
@JvmField val objects: Array<ObjectInfoData>,
|
||||||
|
)
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package org.hmcore.registration.config
|
||||||
|
|
||||||
|
internal class ObjectInfoConfig(
|
||||||
|
@JvmField val modules: Array<ModuleInfo>,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user