You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/22 08:32:00 UTC

[jira] [Commented] (ISIS-1844) API cleanup: make any unchecked casts explicit

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

ASF subversion and git services commented on ISIS-1844:
-------------------------------------------------------

Commit 25a72aa9c348d6361d97baea08ca2eccfc687bbe in isis's branch refs/heads/master from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=25a72aa ]

ISIS-1844 ISIS-1844 further resolve raw type warnings + make some
unchecked casts explicit

> API cleanup: make any unchecked casts explicit
> ----------------------------------------------
>
>                 Key: ISIS-1844
>                 URL: https://issues.apache.org/jira/browse/ISIS-1844
>             Project: Isis
>          Issue Type: Sub-task
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M1
>
>
> replace occurrences of
>  
> {code:java}
> public <T> T myMethod() {
>     ...
>     return (T) myObject;
> }
> {code}
> ... with ... 
> {code:java}
> public <T> T myMethod() {
>     ...
>     return Casts.uncheckedCast(myObject);
> }
> {code}
> ... such that we have a programmatic entry point for any unchecked casts.
>  



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