mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-25 18:32:18 -05:00
Fix some warnings
This commit is contained in:
parent
2650b60f47
commit
564df7b022
6
pom.xml
6
pom.xml
@ -253,6 +253,9 @@
|
|||||||
<exclude>**/module-info.java</exclude>
|
<exclude>**/module-info.java</exclude>
|
||||||
<exclude>**/PrestoPersonDAO.java</exclude>
|
<exclude>**/PrestoPersonDAO.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
|
<compilerArgs>
|
||||||
|
<compilerArg>-Xlint:unchecked</compilerArg>
|
||||||
|
</compilerArgs>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
<executions>
|
<executions>
|
||||||
@ -305,6 +308,9 @@
|
|||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/module-info.java</exclude>
|
<exclude>**/module-info.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
|
<compilerArgs>
|
||||||
|
<compilerArg>-Xlint:unchecked</compilerArg>
|
||||||
|
</compilerArgs>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -216,11 +216,13 @@ public class QueryMapperQmDao implements QmDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public List<Map<String, String>> getAllNames() throws SQLException {
|
public List<Map<String, String>> getAllNames() throws SQLException {
|
||||||
return qm.toListMap(allNames, Map.class, String.class);
|
return qm.toListMap(allNames, Map.class, String.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public Map<String, String>[] getAllNamesArray() throws SQLException {
|
public Map<String, String>[] getAllNamesArray() throws SQLException {
|
||||||
return qm.toArrayMap(allNames, Map.class, String.class);
|
return qm.toArrayMap(allNames, Map.class, String.class);
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,9 @@ public class CleaningQueryMapperTest {
|
|||||||
{
|
{
|
||||||
final Cleaner<FieldPerson> personCleaner = new Cleaner<FieldPerson>() {
|
final Cleaner<FieldPerson> personCleaner = new Cleaner<FieldPerson>() {
|
||||||
@Override
|
@Override
|
||||||
public FieldPerson clean(final FieldPerson dto) {
|
@SuppressWarnings("unchecked")
|
||||||
return dto.cleanThyself();
|
public <E extends FieldPerson> E clean(final E dto) {
|
||||||
|
return (E) dto.cleanThyself();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return Arrays.asList(new Object[][] {
|
return Arrays.asList(new Object[][] {
|
||||||
|
Loading…
Reference in New Issue
Block a user