Alissa Bonas has uploaded a new change for review. Change subject: core: rename method to start w/lowercase in OvfWriter ......................................................................
core: rename method to start w/lowercase in OvfWriter Solves a findbug warning. Change-Id: I18912375615114a8b4dacc9eb64f3f812c2154a0 Signed-off-by: Alissa Bonas <[email protected]> --- M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfWriter.java 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/21593/1 diff --git a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfWriter.java b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfWriter.java index f3b8c7b..ff7e745 100644 --- a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfWriter.java +++ b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfWriter.java @@ -68,7 +68,7 @@ _writer.WriteAttributeString(OVF_URI, "version", Config.<String> GetValue(ConfigValues.VdcVersion)); } - protected long BytesToGigabyte(long bytes) { + protected long bytesToGigabyte(long bytes) { return bytes / 1024 / 1024 / 1024; } @@ -115,10 +115,10 @@ for (DiskImage image : _images) { _writer.WriteStartElement("Disk"); _writer.WriteAttributeString(OVF_URI, "diskId", image.getImageId().toString()); - _writer.WriteAttributeString(OVF_URI, "size", String.valueOf(BytesToGigabyte(image.getSize()))); + _writer.WriteAttributeString(OVF_URI, "size", String.valueOf(bytesToGigabyte(image.getSize()))); _writer.WriteAttributeString(OVF_URI, "actual_size", - String.valueOf(BytesToGigabyte(image.getActualSizeInBytes()))); + String.valueOf(bytesToGigabyte(image.getActualSizeInBytes()))); _writer.WriteAttributeString(OVF_URI, "vm_snapshot_id", (image.getVmSnapshotId() != null) ? image .getVmSnapshotId().toString() : ""); -- To view, visit http://gerrit.ovirt.org/21593 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I18912375615114a8b4dacc9eb64f3f812c2154a0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alissa Bonas <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
