You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Brad Walker (Jira)" <ji...@apache.org> on 2019/12/03 23:21:00 UTC

[jira] [Closed] (NETBEANS-3518) fix bug in AbstractSummaryView.java

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

Brad Walker closed NETBEANS-3518.
---------------------------------
    Fix Version/s: 11.3
       Resolution: Fixed

fixed & merged..

> fix bug in AbstractSummaryView.java
> -----------------------------------
>
>                 Key: NETBEANS-3518
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3518
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Brad Walker
>            Assignee: Brad Walker
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 11.3
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I was working on my usual code cleanup when I encountered a bug in the method AbstractSummaryView() in AbstractSummaryView.java..
> Notice the following code was not type-casting correctly..
> {code:java}
> -                if (selection.length == 1) {
> -                    if (selection[0] instanceof ShowAllEventsItem) {
> -                        showRemainingFiles(((ShowAllEventsItem) selection[0]).getParent(), true);
> -                    } else if (selection[0] instanceof ShowLessEventsItem) {
> -                        showRemainingFiles(((ShowAllEventsItem) selection[0]).getParent(), false);
> -                    } else if (selection[0] instanceof MoreRevisionsItem) {
> {code}
> Specifically, an instance of _ShowLessEventsItem_ should be properly cast..
> {code:java}
> +                        showRemainingFiles(((ShowLessEventsItem) selection.get(0)).getParent(), false);
> {code}
> While I had the hood opened, I fixed a few other Java warnings..



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists