forked from Limework/skript-db
Add Java 8 support
This commit is contained in:
parent
83d2795519
commit
2eda1418cf
4
pom.xml
4
pom.xml
@ -45,8 +45,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>11</source>
|
<source>8</source>
|
||||||
<target>11</target>
|
<target>8</target>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -14,7 +14,7 @@ public class Types {
|
|||||||
static {
|
static {
|
||||||
Classes.registerClass(new ClassInfo<>(HikariDataSource.class, "datasource")
|
Classes.registerClass(new ClassInfo<>(HikariDataSource.class, "datasource")
|
||||||
.user("datasources?")
|
.user("datasources?")
|
||||||
.parser(new Parser<>() {
|
.parser(new Parser<HikariDataSource>() {
|
||||||
@Override
|
@Override
|
||||||
public HikariDataSource parse(String s, ParseContext context) {
|
public HikariDataSource parse(String s, ParseContext context) {
|
||||||
return null;
|
return null;
|
||||||
@ -35,7 +35,7 @@ public class Types {
|
|||||||
return "jdbc:.+";
|
return "jdbc:.+";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.serializer(new Serializer<>() {
|
.serializer(new Serializer<HikariDataSource>() {
|
||||||
@Override
|
@Override
|
||||||
public Fields serialize(HikariDataSource o) {
|
public Fields serialize(HikariDataSource o) {
|
||||||
Fields fields = new Fields();
|
Fields fields = new Fields();
|
||||||
|
Loading…
Reference in New Issue
Block a user