File tree 3 files changed +189
-179
lines changed
src/main/java/info/xiaomo/core
3 files changed +189
-179
lines changed Original file line number Diff line number Diff line change 6
6
<modelVersion >4.0.0</modelVersion >
7
7
<groupId >info.xiaomo</groupId >
8
8
<artifactId >gameCore</artifactId >
9
- <version >2021 .2</version >
9
+ <version >2.0 .2</version >
10
10
<name >gameCore</name >
11
11
12
12
<properties >
13
13
<maven .compiler.source>1.8</maven .compiler.source>
14
14
<maven .compiler.target>1.8</maven .compiler.target>
15
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
16
</properties >
16
17
18
+ <distributionManagement >
19
+ <repository >
20
+ <id >github</id >
21
+ <name >GitHub OWNER Apache Maven Packages</name >
22
+ <url >https://maven.pkg.github.com/GameUnion/ServerCore</url >
23
+ </repository >
24
+ </distributionManagement >
25
+
17
26
<dependencies >
18
27
<dependency >
19
28
<groupId >org.apache.poi</groupId >
Original file line number Diff line number Diff line change 17
17
*/
18
18
@ Data
19
19
public class ConfigContainer <T > implements IConfigContainer {
20
- private Map <Object , T > configMap = new HashMap <>(10 );
21
- private List <T > configList = new ArrayList <>();
20
+ private Map <Object , T > configMap = new HashMap <>(10 );
21
+ private List <T > configList = new ArrayList <>();
22
22
23
- @ Override
24
- public T getConfig (Object key ) {
25
- return configMap .get (key );
26
- }
23
+ @ SuppressWarnings ("unchecked" )
24
+ @ Override
25
+ public T getConfig (Object key ) {
26
+ return configMap .get (key );
27
+ }
27
28
28
- @ Override
29
- public List <T > getList () {
30
- return configList ;
31
- }
29
+ @ SuppressWarnings ("unchecked" )
30
+ @ Override
31
+ public List <T > getList () {
32
+ return configList ;
33
+ }
32
34
}
You can’t perform that action at this time.
0 commit comments