8000 Remove duplicate data field in IntArray and ShortArray by Rylern · Pull Request #384 · imglib/imglib2 · GitHub
[go: up one dir, main page]

Skip to content

Remove duplicate data field in IntArray and ShortArray#384

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

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

Conversation

@Rylern
Copy link
@Rylern Rylern commented Sep 18, 2025

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
491B

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0