Skip to content

Remove duplicate data field in IntArray and ShortArray#384

Open
Rylern wants to merge 1 commit into
imglib:masterfrom
Rylern:duplicate-data
Open

Remove duplicate data field in IntArray and ShortArray#384
Rylern wants to merge 1 commit into
imglib:masterfrom
Rylern:duplicate-data

Conversation

@Rylern

@Rylern Rylern commented Sep 18, 2025

Copy link
Copy Markdown

The IntArray/ ShortArray classes define a protected data array. However, this array is not used (there's already a protected data array defined in AbstractIntArray / AbstractShortArray).

This causes some issues when creating a class that extends IntArray / ShortArray, because then data refers to the one defined in IntArray/ ShortArray (which is not used), not the one defined in AbstractIntArray / AbstractShortArray (which is used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant