> On júl. 20, 2016, 9:16 de, Abhishek Bafna wrote:
> > core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowValidator.java,
> >  line 61
> > <https://reviews.apache.org/r/50202/diff/1/?file=1447527#file1447527line61>
> >
> >     I think it would be a good idea to use equals() method instead of 
> > reference comparison (!= or ==).

I will change it to intValue() instead of getValue().


> On júl. 20, 2016, 9:16 de, Abhishek Bafna wrote:
> > core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowValidator.java,
> >  line 123
> > <https://reviews.apache.org/r/50202/diff/1/?file=1447527#file1447527line123>
> >
> >     [minor] This null check seems to be redundant. While parsing the 
> > workflow.

I checked the existing code, seems like only my code throws E708 in this case.

Previously this existed in LiteWorkflowAppParser, but I moved that logic to 
here.


> On júl. 20, 2016, 9:16 de, Abhishek Bafna wrote:
> > core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowValidator.java,
> >  line 127
> > <https://reviews.apache.org/r/50202/diff/1/?file=1447527#file1447527line127>
> >
> >     [minor]This seems redundant to me. We are doing this check while 
> > pasrsing the workflow. [LiteWorkflowApp#addNode]
> >     
> >     In case, we would like to keep the check, it would be good to repleace 
> > the (==) with String#equals() method.

Yepp, you're absosutely right. This check is not necessary.


- Peter


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50202/#review142917
-----------------------------------------------------------


On júl. 19, 2016, 7:56 du, Peter Bacsko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50202/
> -----------------------------------------------------------
> 
> (Updated júl. 19, 2016, 7:56 du)
> 
> 
> Review request for oozie.
> 
> 
> Bugs: OOZIE-1978
>     https://issues.apache.org/jira/browse/OOZIE-1978
> 
> 
> Repository: oozie-git
> 
> 
> Description
> -------
> 
> See OOZIE-1978 for details.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/oozie/ErrorCode.java 2907ca2 
>   
> core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowAppParser.java 
> a1b9cdb 
>   
> core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowValidator.java 
> PRE-CREATION 
>   core/src/test/java/org/apache/oozie/command/wf/TestSubmitXCommand.java 
> 73464c8 
>   
> core/src/test/java/org/apache/oozie/workflow/lite/TestLiteWorkflowAppParser.java
>  9002b6c 
> 
> Diff: https://reviews.apache.org/r/50202/diff/
> 
> 
> Testing
> -------
> 
> Existing tests pass.
> 
> We might need to add some more, at least testing acyclic graph detection.
> 
> 
> Thanks,
> 
> Peter Bacsko
> 
>

Reply via email to