Tal Nisan has posted comments on this change.
Change subject: core: Remove CompatException class and it's usages
......................................................................
Patch Set 1: (4 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetCACertificateQuery.java
Line 18: if (FileUtil.fileExists(path)) {
Line 19: try {
Line 20:
getQueryReturnValue().setReturnValue(FileUtil.readAllText(path));
Line 21: } catch (IOException e) {
Line 22: getQueryReturnValue().setSucceeded(false);
Good idea, will do
Line 23: return;
Line 24: }
Line 25: getQueryReturnValue().setSucceeded(true);
Line 26: }
....................................................
File
backend/manager/modules/compat/src/test/java/org/ovirt/engine/core/compat/TimeSpanTest.java
Line 62: public void testInvalidParse() {
Line 63: try {
Line 64: TimeSpan.Parse("1.02.03");
Line 65: fail("No exception was thrown");
Line 66: } catch (IllegalArgumentException e) {
Exactly :)
Line 67: // eat it, we are ok
Line 68: }
Line 69: }
Line 70:
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/FileUtil.java
Line 87: try {
Line 88: java.io.File file = new java.io.File(filename.toString());
Line 89: return new Date(file.lastModified());
Line 90: } catch (Exception e) {
Line 91: throw new RuntimeException(e);
I know, it's just a placeholder in order not to raise conflict, this method is
deleted in another patch I already uploaded, it's just not depend on it :)
Line 92: }
Line 93: }
Line 94:
Line 95: /**
....................................................
File
frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/EnumCompat.java
Line 11: */
Line 12: public static <T extends Enum> String[] GetNames(Class<T> clazz) {
Line 13: ArrayList<String> returnValues = new ArrayList<String>();
Line 14: if (!clazz.isEnum()) {
Line 15: throw new RuntimeException("Class is not an Enum: " +
clazz.getName());
Doesn't really matter, it's a part of the uioverrides package, used only in a
single place (DateTime in uioverrides) not accessible to nothing in the project
and deprecated as hell ;)
Line 16: }
Line 17: for (Enum e : clazz.getEnumConstants()) {
Line 18: returnValues.add(e.name());
Line 19: }
--
To view, visit http://gerrit.ovirt.org/12430
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I726e0f9e7fb0c9bff00b8d510dc3907d202e0fa2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches