You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2018/01/22 09:04:00 UTC

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

     [ https://issues.apache.org/jira/browse/ISIS-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Huber closed ISIS-1844.
----------------------------
    Resolution: Fixed

no more unchecked cast warnings

> 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)