groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (GROOVY-8346) The variable [XXX] may be uninitialized
Date Sat, 07 Oct 2017 12:21:00 GMT

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

Paul King edited comment on GROOVY-8346 at 10/7/17 12:20 PM:
-------------------------------------------------------------

FVA is a 2.5 feature! :-) Groovy ignores violations in 2.4 - we currently have some false
positives in the 2.5 implementation though that we need to get rid of.


was (Author: paulk):
FVA is a 2.5 feature! :-) Groovy ignores violations in 2.4 - we currently have some false
positives though that we need to get rid of.

>  The variable [XXX] may be uninitialized
> ----------------------------------------
>
>                 Key: GROOVY-8346
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8346
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.0-beta-1, 2.5.0-beta-2
>            Reporter: paolo di tommaso
>
> I'm getting several errors when compiling Groovy 2.5.0-beta-2 (and beta-1) related to
final variable initialisations. 
> For example: 
> {code}
> [:compileTestGroovy] WorkflowMetadataTest.groovy: 43: The variable [begin] may be uninitialized
> [:compileTestGroovy] . At [43:15]  @ line 43, column 15.
> [:compileTestGroovy]            final begin = new Date()
> [:compileTestGroovy]                  ^
> {code}
> Related to the following line 
> {code}
>       final begin = new Date()
> {code}
> See also [here|https://github.com/nextflow-io/nextflow/blob/master/src/test/groovy/nextflow/script/WorkflowMetadataTest.groovy#L43-43],
[here|https://github.com/nextflow-io/nextflow/blob/master/src/test/groovy/nextflow/file/SequentialFileStoreTest.groovy#L40-40]
[here|https://github.com/nextflow-io/nextflow/blob/master/src/test/groovy/nextflow/cloud/CloudConfigTest.groovy#L299-299]
and [here|https://github.com/nextflow-io/nextflow/blob/master/src/test/groovy/nextflow/processor/PublishDirTest.groovy#L96-96]
 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message