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 Thu, 21 Dec 2017 19:45:00 GMT

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

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

Taking things to the next level:  begin to deprecate the "xxxxListener.Adapter" classes because
with default methods in interfaces now in Java 8+ we can do the same thing in the interface
itself.  So, do this as a demonstration in a couple of very small, not very much used interfaces/components:
Sending        demos/src/org/apache/pivot/demos/decorator/DecoratorDemo.java
Sending        wtk/src/org/apache/pivot/wtk/ComponentMouseListener.java
Sending        wtk/src/org/apache/pivot/wtk/NumberRulerListener.java
Sending        wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFormSkin.java
Sending        wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPanoramaSkin.java
Transmitting file data .....
Committed revision 1818971.


> 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
>             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
(v6.4.14#64029)

Mime
View raw message