Fixed some warnings

This commit is contained in:
Lukas Eder 2012-07-15 17:10:11 +02:00
parent 033f4f346f
commit 11b00a20e9
4 changed files with 9 additions and 1 deletions

View File

@ -280,7 +280,6 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, I, IPK, T658,
assertEquals(Arrays.asList("Coelho", "Orwell"), new ArrayList<String>(authorNames));
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Test
public void testUpdatablesPK() throws Exception {
jOOQAbstractTest.reset = false;

View File

@ -1715,6 +1715,12 @@ public class Factory implements FactoryOperations {
catch (IOException e) {
throw new DataAccessException("Could not read the CSV string", e);
}
finally {
try {
reader.close();
}
catch (IOException ignore) {}
}
FieldList fields = new FieldList();
@ -3326,6 +3332,7 @@ public class Factory implements FactoryOperations {
/**
* This is not yet implemented
*/
@SuppressWarnings("unused")
static <T extends java.util.Date> Field<T> trunc(Field<T> date, DatePart part) {
throw new UnsupportedOperationException("This is not yet implemented");
}

View File

@ -66,6 +66,7 @@ class TimestampDiff extends AbstractFunction<DayToSecond> {
this.timestamp2 = timestamp2;
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
final Field<DayToSecond> getFunction0(Configuration configuration) {
switch (configuration.getDialect()) {

View File

@ -78,6 +78,7 @@ class Trunc<T> extends AbstractFunction<T> {
}
}
@SuppressWarnings("unused")
private final Field<T> getDateTimeFunction(Configuration configuration) {
return null;
}