diff --git a/test/functional/Valhalla/src_qtypes/org/openj9/test/lworld/ValueTypeTests.java b/test/functional/Valhalla/src_qtypes/org/openj9/test/lworld/ValueTypeTests.java index 8952acd6508..cdde8f30e10 100644 --- a/test/functional/Valhalla/src_qtypes/org/openj9/test/lworld/ValueTypeTests.java +++ b/test/functional/Valhalla/src_qtypes/org/openj9/test/lworld/ValueTypeTests.java @@ -2299,7 +2299,7 @@ static public void testCheckCastNullableTypeOnNull() throws Throwable { static public void testValueWithLongAlignmentGCScanning() throws Throwable { ArrayList longAlignmentArrayList = new ArrayList(objectGCScanningIterationCount); for (int i = 0; i < objectGCScanningIterationCount; i++) { - Object newLongAlignmentArray = (Object)ValueClass.newNullRestrictedArray(assortedValueWithLongAlignmentClass, genericArraySize); + Object newLongAlignmentArray = ValueClass.newNullRestrictedArray(assortedValueWithLongAlignmentClass, genericArraySize); for (int j = 0; j < genericArraySize; j++) { Object assortedValueWithLongAlignment = createAssorted(makeAssortedValueWithLongAlignment, typeWithLongAlignmentFields); Array.set(newLongAlignmentArray, j, assortedValueWithLongAlignment); @@ -2324,7 +2324,7 @@ static public void testValueWithLongAlignmentGCScanning() throws Throwable { static public void testValueWithObjectAlignmentGCScanning() throws Throwable { ArrayList objectAlignmentArrayList = new ArrayList(objectGCScanningIterationCount); for (int i = 0; i < objectGCScanningIterationCount; i++) { - Object newObjectAlignmentArray = (Object)ValueClass.newNullRestrictedArray(assortedValueWithObjectAlignmentClass, genericArraySize); + Object newObjectAlignmentArray = ValueClass.newNullRestrictedArray(assortedValueWithObjectAlignmentClass, genericArraySize); for (int j = 0; j < genericArraySize; j++) { Object assortedValueWithObjectAlignment = createAssorted(makeAssortedValueWithObjectAlignment, typeWithObjectAlignmentFields); Array.set(newObjectAlignmentArray, j, assortedValueWithObjectAlignment); @@ -2349,7 +2349,7 @@ static public void testValueWithObjectAlignmentGCScanning() throws Throwable { static public void testValueWithSingleAlignmentGCScanning() throws Throwable { ArrayList singleAlignmentArrayList = new ArrayList(objectGCScanningIterationCount); for (int i = 0; i < objectGCScanningIterationCount; i++) { - Object newSingleAlignmentArray = (Object)ValueClass.newNullRestrictedArray(assortedValueWithSingleAlignmentClass, genericArraySize); + Object newSingleAlignmentArray = ValueClass.newNullRestrictedArray(assortedValueWithSingleAlignmentClass, genericArraySize); for (int j = 0; j < genericArraySize; j++) { Object assortedValueWithSingleAlignment = createAssorted(makeAssortedValueWithSingleAlignment, typeWithSingleAlignmentFields); Array.set(newSingleAlignmentArray, j, assortedValueWithSingleAlignment);