Allon Mureinik has uploaded a new change for review. Change subject: core: DateTime cleanup: Remove unused methods ......................................................................
core: DateTime cleanup: Remove unused methods Removed unused methods of DateTime. As a side effect, this solves the FindBugs error for "int converted to long and passed as absolute time to new org.ovirt.engine.core.compat.DateTime(long) in new org.ovirt.engine.core.compat.DateTime(int)". Change-Id: I1e7f3403ff28cc0327889fd51841e8a3a1f3e400 Signed-off-by: Allon Mureinik <[email protected]> --- M backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java 1 file changed, 0 insertions(+), 13 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/95/8195/1 diff --git a/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java b/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java index 6615b8f..ffa2b3b 100644 --- a/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java +++ b/backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/DateTime.java @@ -8,10 +8,6 @@ import java.util.GregorianCalendar; public class DateTime extends Date { - - // public static Date Now = new DateTime(); - // public static DateTime Now2 = new DateTime(); - private static final String dayNames[] = new DateFormatSymbols().getWeekdays(); public DateTime(int year, int month, int date) { @@ -54,10 +50,6 @@ public long getTotalMilliseconds() { return this.getTime(); - } - - public DateTime(int i) { - super(i); } public String toString(String formatString) { @@ -161,11 +153,6 @@ public static boolean TryParseExact(String value, String string, Object dateTimeFormat, DateTimeStyles none, RefObject<Date> tempRefObject) { - // TODO Auto-generated method stub - throw new NotImplementedException(); // juicommon - } - - public static Date ParseExact(String entity, String string, CultureInfo currentCulture) { // TODO Auto-generated method stub throw new NotImplementedException(); // juicommon } -- To view, visit http://gerrit.ovirt.org/8195 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1e7f3403ff28cc0327889fd51841e8a3a1f3e400 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
