GitHub user kaspersorensen opened a pull request:

    https://github.com/apache/metamodel/pull/142

    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.
    
    I think I still need a JIRA issue for this, but any feedback on the code 
front is very welcome.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kaspersorensen/metamodel java-8-functions

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/metamodel/pull/142.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #142
    
----
commit f015665d88ae5066e8657575bb01baa7af0a0f13
Author: Kasper Sørensen <[email protected]>
Date:   2017-04-29T23:05:07Z

    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.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to