public class com.google.common.collect.testing.testers.SetHashCodeTester extends com.google.common.collect.testing.testers.AbstractSetTester
{
public void <init>()
{
com.google.common.collect.testing.testers.SetHashCodeTester v;
v := @this: com.google.common.collect.testing.testers.SetHashCodeTester;
specialinvoke v.<com.google.common.collect.testing.testers.AbstractSetTester: void <init>()>();
return;
}
public void testHashCode()
{
java.util.Iterator v;
java.util.Collection v;
java.util.Set v;
com.google.common.collect.testing.testers.SetHashCodeTester v;
int v, v, v, v;
java.lang.Object v;
boolean v;
v := @this: com.google.common.collect.testing.testers.SetHashCodeTester;
v = 0;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.util.Collection getSampleElements()>();
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v;
if v != null goto label;
v = 0;
goto label;
label:
v = virtualinvoke v.<java.lang.Object: int hashCode()>();
label:
v = v + v;
goto label;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.util.Set getSet()>();
v = interfaceinvoke v.<java.util.Set: int hashCode()>();
staticinvoke <com.google.common.collect.testing.testers.SetHashCodeTester: void assertEquals(java.lang.String,int,int)>("A Set\'s hashCode() should be the sum of those of its elements.", v, v);
return;
}
public void testHashCode_containingNull()
{
java.lang.Object[] v;
java.util.Iterator v;
java.util.Collection v;
java.util.Set v;
com.google.common.collect.testing.testers.SetHashCodeTester v;
int v, v, v, v, v, v;
java.lang.Object v, v, v;
boolean v;
v := @this: com.google.common.collect.testing.testers.SetHashCodeTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: int getNumElements()>();
v = v - 1;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.util.Collection getSampleElements(int)>(v);
v = 0;
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v;
if v != null goto label;
v = 0;
goto label;
label:
v = virtualinvoke v.<java.lang.Object: int hashCode()>();
label:
v = v + v;
goto label;
label:
interfaceinvoke v.<java.util.Collection: boolean add(java.lang.Object)>(null);
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<java.util.Collection: java.lang.Object[] toArray()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object create(java.lang.Object[])>(v);
v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.util.Collection collection> = v;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SetHashCodeTester: java.util.Set getSet()>();
v = interfaceinvoke v.<java.util.Set: int hashCode()>();
staticinvoke <com.google.common.collect.testing.testers.SetHashCodeTester: void assertEquals(java.lang.String,int,int)>("A Set\'s hashCode() should be the sum of those of its elements (with a null element counting as having a hash of zero).", v, v);
return;
}
public static java.lang.reflect.Method[] getHashCodeMethods()
{
java.lang.reflect.Method v, v;
java.lang.reflect.Method[] v;
v = newarray (java.lang.reflect.Method)[2];
v = staticinvoke <com.google.common.collect.testing.Helpers: java.lang.reflect.Method getMethod(java.lang.Class,java.lang.String)>(class "Lcom/google/common/collect/testing/testers/SetHashCodeTester;", "testHashCode");
v[0] = v;
v = staticinvoke <com.google.common.collect.testing.Helpers: java.lang.reflect.Method getMethod(java.lang.Class,java.lang.String)>(class "Lcom/google/common/collect/testing/testers/SetHashCodeTester;", "testHashCode_containingNull");
v[1] = v;
return v;
}
}