Bug 735061

Summary: CommandBase.getNow() is equal to new java.util.Date()
Product: [Retired] oVirt Reporter: Laszlo Hornyak <lhornyak>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dfediuck, dyasny, iheim, lpeer, mgoldboi, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: CodeChange
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-11 06:41:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Laszlo Hornyak 2011-09-01 10:32:22 UTC
Description of problem:

CommandBase.getNow() calls System.currentTimeMillis and it passes the returned value to the constructed Date object's constructor. This is the same as default constructor's behavior. Plus then there is no need to call this method, it is more simply to create a java.util.Date

How reproducible:
Always

Comment 1 Itamar Heim 2012-12-11 06:41:04 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.