Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#20317 from theresa-m/remove_casting
Browse files Browse the repository at this point in the history
Remove unnecessary casting
  • Loading branch information
keithc-ca authored Oct 8, 2024
2 parents 69d16bb + 26250d8 commit 70f99fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ static public void testCheckCastNullableTypeOnNull() throws Throwable {
static public void testValueWithLongAlignmentGCScanning() throws Throwable {
ArrayList<Object> longAlignmentArrayList = new ArrayList<Object>(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);
Expand All @@ -2324,7 +2324,7 @@ static public void testValueWithLongAlignmentGCScanning() throws Throwable {
static public void testValueWithObjectAlignmentGCScanning() throws Throwable {
ArrayList<Object> objectAlignmentArrayList = new ArrayList<Object>(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);
Expand All @@ -2349,7 +2349,7 @@ static public void testValueWithObjectAlignmentGCScanning() throws Throwable {
static public void testValueWithSingleAlignmentGCScanning() throws Throwable {
ArrayList<Object> singleAlignmentArrayList = new ArrayList<Object>(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);
Expand Down

0 comments on commit 70f99fd

Please sign in to comment.