You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/01/26 16:04:24 UTC
git commit: updated refs/heads/4.3-forward to b401563
Updated Branches:
refs/heads/4.3-forward df6f40fe7 -> b40156313
findbugs: serialized class serializable
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b4015631
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b4015631
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b4015631
Branch: refs/heads/4.3-forward
Commit: b40156313adce56ae80a622e885ecd9ee403c2f6
Parents: df6f40f
Author: Daan Hoogland <da...@onecht.net>
Authored: Sun Jan 26 16:03:56 2014 +0100
Committer: Daan Hoogland <da...@onecht.net>
Committed: Sun Jan 26 16:03:56 2014 +0100
----------------------------------------------------------------------
server/src/com/cloud/api/doc/Argument.java | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b4015631/server/src/com/cloud/api/doc/Argument.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/doc/Argument.java b/server/src/com/cloud/api/doc/Argument.java
index 29c361e..c9f07e7 100644
--- a/server/src/com/cloud/api/doc/Argument.java
+++ b/server/src/com/cloud/api/doc/Argument.java
@@ -16,10 +16,15 @@
// under the License.
package com.cloud.api.doc;
+import java.io.Serializable;
import java.util.List;
-public class Argument implements Comparable{
- private String name;
+public class Argument implements Comparable<Object>, Serializable{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -5696100838854848492L;
+ private String name;
private String description;
private Boolean required;
private String type;
@@ -42,7 +47,7 @@ public class Argument implements Comparable{
}
public String getType() {
- return this.type;
+ return type;
}
public void setType(String type) {
@@ -89,11 +94,12 @@ public class Argument implements Comparable{
this.sinceVersion = sinceVersion;
}
+ @Override
public int compareTo(Object anotherAgrument) throws ClassCastException {
if (!(anotherAgrument instanceof Argument))
throw new ClassCastException("An Argument object expected.");
Argument argument = (Argument)anotherAgrument;
- return this.getName().compareToIgnoreCase(argument.getName());
+ return getName().compareToIgnoreCase(argument.getName());
}
public boolean hasArguments() {