using an inline if
FIxing bad indentation
Adding comment to explain how the Date works in Java (Using JODA Time lib) and how it should work in Ruby to keep the mri compatiblity