File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2009-2020 the original author or authors.
4
+ Copyright 2009-2022 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
@@ -1496,7 +1496,7 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
1496
1496
<source ><![CDATA[ // ExampleObjectFactory.java
1497
1497
public class ExampleObjectFactory extends DefaultObjectFactory {
1498
1498
@Override
1499
- public Object create(Class type) {
1499
+ public <T> T create(Class<T> type) {
1500
1500
return super.create(type);
1501
1501
}
1502
1502
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2009-2020 the original author or authors.
4
+ Copyright 2009-2022 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
@@ -1528,7 +1528,7 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
1528
1528
<source ><![CDATA[ // ExampleObjectFactory.java
1529
1529
public class ExampleObjectFactory extends DefaultObjectFactory {
1530
1530
@Override
1531
- public Object create(Class type) {
1531
+ public <T> T create(Class<T> type) {
1532
1532
return super.create(type);
1533
1533
}
1534
1534
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2009-2021 the original author or authors.
4
+ Copyright 2009-2022 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
@@ -1458,7 +1458,7 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
1458
1458
<source ><![CDATA[ // ExampleObjectFactory.java
1459
1459
public class ExampleObjectFactory extends DefaultObjectFactory {
1460
1460
@Override
1461
- public Object create(Class type) {
1461
+ public <T> T create(Class<T> type) {
1462
1462
return super.create(type);
1463
1463
}
1464
1464
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2009-2021 the original author or authors.
4
+ Copyright 2009-2022 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
@@ -1656,7 +1656,8 @@ public class ExampleObjectFactory extends DefaultObjectFactory {
1656
1656
@Override
1657
1657
public <T> boolean isCollection(Class<T> type) {
1658
1658
return Collection.class.isAssignableFrom(type);
1659
- }}
1659
+ }
1660
+ }
1660
1661
]]> </source >
1661
1662
1662
1663
<source ><![CDATA[ <!-- mybatis-config.xml -->
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
4
- Copyright 2009-2020 the original author or authors.
4
+ Copyright 2009-2022 the original author or authors.
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
@@ -1500,7 +1500,7 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
1500
1500
<source ><![CDATA[ // ExampleObjectFactory.java
1501
1501
public class ExampleObjectFactory extends DefaultObjectFactory {
1502
1502
@Override
1503
- public Object create(Class type) {
1503
+ public <T> T create(Class<T> type) {
1504
1504
return super.create(type);
1505
1505
}
1506
1506
You can’t perform that action at this time.
0 commit comments