pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-999) Update code to take advantage of Java 8 features
Date Tue, 06 Feb 2018 22:07:00 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354620#comment-16354620
] 

Roger Whitcomb commented on PIVOT-999:
--------------------------------------

Remove the "putInt" and "putBoolean" default methods from Dictionary because they really aren't
needed (with autoboxing).  Add a default "copy" method:

Sending core\src\org\apache\pivot\collections\Dictionary.java
Sending core\test\org\apache\pivot\collections\test\DictionaryTest.java
Sending wtk\src\org\apache\pivot\wtk\Component.java
Transmitting file data ...done
Committing transaction...
Committed revision 1823398.

> Update code to take advantage of Java 8 features
> ------------------------------------------------
>
>                 Key: PIVOT-999
>                 URL: https://issues.apache.org/jira/browse/PIVOT-999
>             Project: Pivot
>          Issue Type: New Feature
>          Components: all
>    Affects Versions: 2.1
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Major
>             Fix For: 2.1
>
>
> Some features that we could potentially use include:
> * default methods in interfaces to extend features while maintaining backward compatibility
> * lambdas for such things as callbacks
> * really use functional interfaces (already kind of present, but not really used)
> * "forEach" in many places for Iterable collections



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message