summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java b/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java
index dc8b8f2..ad22344 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.9.1)
+ * Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -29,9 +29,12 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04")
public class WhoamiInfo implements org.apache.thrift.TBase<WhoamiInfo, WhoamiInfo._Fields>, java.io.Serializable, Cloneable, Comparable<WhoamiInfo> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WhoamiInfo");
@@ -276,10 +279,10 @@ public class WhoamiInfo implements org.apache.thrift.TBase<WhoamiInfo, WhoamiInf
return getUser();
case IS_SUPER_USER:
- return Boolean.valueOf(isIsSuperUser());
+ return isIsSuperUser();
case CAN_LIST_IMAGES:
- return Boolean.valueOf(isCanListImages());
+ return isCanListImages();
}
throw new IllegalStateException();
@@ -347,7 +350,24 @@ public class WhoamiInfo implements org.apache.thrift.TBase<WhoamiInfo, WhoamiInf
@Override
public int hashCode() {
- return 0;
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_user = true && (isSetUser());
+ list.add(present_user);
+ if (present_user)
+ list.add(user);
+
+ boolean present_isSuperUser = true;
+ list.add(present_isSuperUser);
+ if (present_isSuperUser)
+ list.add(isSuperUser);
+
+ boolean present_canListImages = true;
+ list.add(present_canListImages);
+ if (present_canListImages)
+ list.add(canListImages);
+
+ return list.hashCode();
}
@Override