beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BEAM-1761) Unintended unboxing of potential null pointer in AutoValue_HDFSFileSource
Date Mon, 20 Mar 2017 22:54:41 GMT

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

Ted Yu resolved BEAM-1761.
--------------------------
       Resolution: Not A Problem
    Fix Version/s: Not applicable

> Unintended unboxing of potential null pointer in AutoValue_HDFSFileSource
> -------------------------------------------------------------------------
>
>                 Key: BEAM-1761
>                 URL: https://issues.apache.org/jira/browse/BEAM-1761
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: Not applicable
>
>
> {code}
>       if (validateSource == null) {
>         missing += " validateSource";
>       }
> ...
>       return new AutoValue_HDFSFileSource<T, K, V>(
>           this.filepattern,
>           this.formatClass,
>           this.coder,
>           this.inputConverter,
>           this.serializableConfiguration,
>           this.serializableSplit,
>           this.username,
>           this.validateSource);
> {code}
> If validateSource is null, it would be unboxed in call to ctor of AutoValue_HDFSFileSource



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message