File tree Expand file tree Collapse file tree 3 files changed +189
-179
lines changed
src/main/java/info/xiaomo/core Expand file tree Collapse file tree 3 files changed +189
-179
lines changed Original file line number Diff line number Diff line change 66 <modelVersion >4.0.0</modelVersion >
77 <groupId >info.xiaomo</groupId >
88 <artifactId >gameCore</artifactId >
9- <version >2021 .2</version >
9+ <version >2.0 .2</version >
1010 <name >gameCore</name >
1111
1212 <properties >
1313 <maven .compiler.source>1.8</maven .compiler.source>
1414 <maven .compiler.target>1.8</maven .compiler.target>
15+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1516 </properties >
1617
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+
1726 <dependencies >
1827 <dependency >
1928 <groupId >org.apache.poi</groupId >
Original file line number Diff line number Diff line change 1717 */
1818@ Data
1919public 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 <>();
2222
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+ }
2728
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+ }
3234}
You can’t perform that action at this time.
0 commit comments