Polishing
This commit is contained in:
parent
8d707eb530
commit
0da8dee289
|
|
@ -53,7 +53,7 @@ public class PropertyComparatorTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCompoundComparator() {
|
||||
public void testChainedComparators() {
|
||||
Comparator<Dog> c = new PropertyComparator<>("lastName", false, true);
|
||||
|
||||
Dog dog1 = new Dog();
|
||||
|
|
@ -74,9 +74,10 @@ public class PropertyComparatorTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCompoundComparatorInvert() {
|
||||
public void testChainedComparatorsReversed() {
|
||||
Comparator<Dog> c = (new PropertyComparator<Dog>("lastName", false, true)).
|
||||
thenComparing(new PropertyComparator<>("firstName", false, true));
|
||||
|
||||
Dog dog1 = new Dog();
|
||||
dog1.setFirstName("macy");
|
||||
dog1.setLastName("grayspots");
|
||||
|
|
@ -91,7 +92,6 @@ public class PropertyComparatorTests {
|
|||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class Dog implements Comparable<Object> {
|
||||
|
||||
private String nickName;
|
||||
|
|
|
|||
|
|
@ -117,7 +117,9 @@ public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider {
|
|||
con = (Connection) con.unwrap(oracleConClass);
|
||||
}
|
||||
catch (ClassNotFoundException | SQLException ex) {
|
||||
logger.warn("Unable to include synonyms in table metadata lookup - no Oracle Connection: " + ex);
|
||||
if (logger.isWarnEnabled()) {
|
||||
logger.warn("Unable to include synonyms in table metadata lookup - no Oracle Connection: " + ex);
|
||||
}
|
||||
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue