Deprecated Ref, Func and Predicate in favor of java.util.function
authorKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Sat, 29 Apr 2017 23:05:07 +0000 (16:05 -0700)
committerKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Sat, 29 Apr 2017 23:27:52 +0000 (16:27 -0700)
commitf015665d88ae5066e8657575bb01baa7af0a0f13
tree141740d917ec118a0822223e0ca9d5caec8b5674
parentb0cfe3aed447769f752743ac1753ebed90adaad2
Deprecated Ref, Func and Predicate in favor of java.util.function

"Ref" to be replaced by Supplier.
"Func" to be replaced by Function.
"Predicate" to be replaced by Predicate.
"Action" to extend Consumer (allowing for throwing checked exceptions).
"UncheckedFunc to extend Function.

Also added `@SuppressWarning` on method that the Java 8 compiler is
emitting warnings for while the code being alright.
51 files changed:
core/src/main/java/org/apache/metamodel/CompositeDataContext.java
core/src/main/java/org/apache/metamodel/CompositeQueryDelegate.java
core/src/main/java/org/apache/metamodel/MetaModelHelper.java
core/src/main/java/org/apache/metamodel/UpdateScript.java
core/src/main/java/org/apache/metamodel/convert/StringToDateConverter.java
core/src/main/java/org/apache/metamodel/intercept/InterceptableDataContext.java
core/src/main/java/org/apache/metamodel/query/AbstractQueryClause.java
core/src/main/java/org/apache/metamodel/query/QueryClause.java
core/src/main/java/org/apache/metamodel/schema/AbstractSchema.java
core/src/main/java/org/apache/metamodel/schema/AbstractTable.java
core/src/main/java/org/apache/metamodel/util/AbstractResource.java
core/src/main/java/org/apache/metamodel/util/Action.java
core/src/main/java/org/apache/metamodel/util/CollectionUtils.java
core/src/main/java/org/apache/metamodel/util/ConstantFunc.java
core/src/main/java/org/apache/metamodel/util/ExclusionPredicate.java
core/src/main/java/org/apache/metamodel/util/FalsePredicate.java
core/src/main/java/org/apache/metamodel/util/FileHelper.java
core/src/main/java/org/apache/metamodel/util/Func.java
core/src/main/java/org/apache/metamodel/util/HasNameMapper.java
core/src/main/java/org/apache/metamodel/util/ImmutableRef.java
core/src/main/java/org/apache/metamodel/util/InclusionPredicate.java
core/src/main/java/org/apache/metamodel/util/LazyRef.java
core/src/main/java/org/apache/metamodel/util/MutableRef.java
core/src/main/java/org/apache/metamodel/util/Predicate.java
core/src/main/java/org/apache/metamodel/util/Ref.java
core/src/main/java/org/apache/metamodel/util/Resource.java
core/src/main/java/org/apache/metamodel/util/SerializableRef.java
core/src/main/java/org/apache/metamodel/util/TruePredicate.java
core/src/main/java/org/apache/metamodel/util/UncheckedFunc.java
core/src/test/java/org/apache/metamodel/util/ClasspathResourceTest.java
core/src/test/java/org/apache/metamodel/util/CollectionUtilsTest.java
core/src/test/java/org/apache/metamodel/util/ExclusionPredicateTest.java
core/src/test/java/org/apache/metamodel/util/FileResourceTest.java
core/src/test/java/org/apache/metamodel/util/InclusionPredicateTest.java
core/src/test/java/org/apache/metamodel/util/SimpleRefTest.java
csv/src/main/java/org/apache/metamodel/csv/CsvDataContext.java
full/src/main/java/org/apache/metamodel/DataContextFactory.java
hadoop/src/test/java/org/apache/metamodel/util/HdfsResourceIntegrationTest.java
jdbc/src/main/java/org/apache/metamodel/jdbc/JdbcDataContext.java
jdbc/src/main/java/org/apache/metamodel/jdbc/dialects/OracleQueryRewriter.java
jdbc/src/test/java/org/apache/metamodel/dialects/SQLServerQueryRewriterTest.java
jdbc/src/test/java/org/apache/metamodel/jdbc/dialects/OracleQueryRewriterTest.java
pom.xml
salesforce/src/main/java/org/apache/metamodel/salesforce/SalesforceDataContext.java
salesforce/src/main/java/org/apache/metamodel/salesforce/SalesforceSchema.java
salesforce/src/main/java/org/apache/metamodel/salesforce/SalesforceTable.java
salesforce/src/main/java/org/apache/metamodel/salesforce/SalesforceUpdateCallback.java
sugarcrm/src/main/java/org/apache/metamodel/sugarcrm/SugarCrmSchema.java
sugarcrm/src/main/java/org/apache/metamodel/sugarcrm/SugarCrmTable.java
xml/src/main/java/org/apache/metamodel/xml/XmlDomDataContext.java
xml/src/main/java/org/apache/metamodel/xml/XmlSaxDataContext.java