Re: Review Request 60039: OOZIE-2942 Fix Findbugs warnings in oozie-examples

2018-05-04 Thread András Piros via Review Board

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




examples/src/main/java/org/apache/oozie/example/DateList.java
Line 50 (original), 50 (patched)


Please mind indentation.



examples/src/main/java/org/apache/oozie/example/DateList.java
Line 62 (original), 62 (patched)


Since `Repeatable#getOccurrenceTime()` can deliver `null`, I'd let the 
original condition here.

`do {...} while (true);` seems too dangerous to me.



examples/src/main/java/org/apache/oozie/example/DateList.java
Line 69 (original), 69 (patched)


Please mind indentation.



examples/src/main/java/org/apache/oozie/example/DateList.java
Line 72 (original), 71-72 (patched)


Please mind indentation.



examples/src/main/java/org/apache/oozie/example/Repeatable.java
Line 168 (original), 168-170 (patched)


Would set `this.baseline` here to a new `Date` instance.



examples/src/main/java/org/apache/oozie/example/Repeatable.java
Line 172 (original), 176 (patched)


Would modify only in `getBaseline()`. In case input parameter `baseline = 
null` we'd get an `Exception` here.


- András Piros


On June 13, 2017, 8:40 a.m., Jan Hentschel wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60039/
> ---
> 
> (Updated June 13, 2017, 8:40 a.m.)
> 
> 
> Review request for oozie.
> 
> 
> Bugs: OOZIE-2942
> https://issues.apache.org/jira/browse/OOZIE-2942
> 
> 
> Repository: oozie-git
> 
> 
> Description
> ---
> 
> Fixed the Findbugs warning in the **oozie-examples** module.
> 
> 
> Diffs
> -
> 
>   examples/src/main/java/org/apache/oozie/example/DateList.java 7e574cbe 
>   examples/src/main/java/org/apache/oozie/example/LocalOozieExample.java 
> c9f5697c 
>   examples/src/main/java/org/apache/oozie/example/Repeatable.java ee863251 
> 
> 
> Diff: https://reviews.apache.org/r/60039/diff/2/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Jan Hentschel
> 
>



Review Request 60039: OOZIE-2942 Fix Findbugs warnings in oozie-examples

2017-06-13 Thread Jan Hentschel

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

Review request for oozie.


Bugs: OOZIE-2942
https://issues.apache.org/jira/browse/OOZIE-2942


Repository: oozie-git


Description
---

Fixed the Findbugs warning in the **oozie-examples** module.


Diffs
-

  examples/src/main/java/org/apache/oozie/example/DateList.java 7e574cbe 
  examples/src/main/java/org/apache/oozie/example/LocalOozieExample.java 
c9f5697c 
  examples/src/main/java/org/apache/oozie/example/Repeatable.java ee863251 


Diff: https://reviews.apache.org/r/60039/diff/1/


Testing
---


Thanks,

Jan Hentschel