mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-22 00:52:16 -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>**/PrestoPersonDAO.java</exclude>
|
||||
</excludes>
|
||||
<compilerArgs>
|
||||
<compilerArg>-Xlint:unchecked</compilerArg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
@ -305,6 +308,9 @@
|
||||
<excludes>
|
||||
<exclude>**/module-info.java</exclude>
|
||||
</excludes>
|
||||
<compilerArgs>
|
||||
<compilerArg>-Xlint:unchecked</compilerArg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
|
@ -216,11 +216,13 @@ public class QueryMapperQmDao implements QmDao {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<Map<String, String>> getAllNames() throws SQLException {
|
||||
return qm.toListMap(allNames, Map.class, String.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Map<String, String>[] getAllNamesArray() throws SQLException {
|
||||
return qm.toArrayMap(allNames, Map.class, String.class);
|
||||
}
|
||||
|
@ -64,8 +64,9 @@ public class CleaningQueryMapperTest {
|
||||
{
|
||||
final Cleaner<FieldPerson> personCleaner = new Cleaner<FieldPerson>() {
|
||||
@Override
|
||||
public FieldPerson clean(final FieldPerson dto) {
|
||||
return dto.cleanThyself();
|
||||
@SuppressWarnings("unchecked")
|
||||
public <E extends FieldPerson> E clean(final E dto) {
|
||||
return (E) dto.cleanThyself();
|
||||
}
|
||||
};
|
||||
return Arrays.asList(new Object[][] {
|
||||
|
Loading…
Reference in New Issue
Block a user