Skip to content

Commit

Permalink
Remove unnecessary casting
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Oct 8, 2024
1 parent 8357d17 commit 26250d8
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 26250d8

Please sign in to comment.