Skip to content

ByteArrayValueHandler should accept primitive byte array. Usage java functional interfaces#24

Merged
bytefish merged 4 commits intobytefish:masterfrom
kowalczm:master
Nov 24, 2018
Merged

ByteArrayValueHandler should accept primitive byte array. Usage java functional interfaces#24
bytefish merged 4 commits intobytefish:masterfrom
kowalczm:master

Conversation

@kowalczm
Copy link
Copy Markdown

For optimization it would be good to add/refactor ByteArrayValueHandler for primitive byte arrays

@bytefish
Copy link
Copy Markdown
Owner

Thanks! Do you think existing code will continue to work... I mean, will Java Auto Box these values? I wonder if it is a breaking change to the handler and may affect people using it.

@kowalczm
Copy link
Copy Markdown
Author

Hi,
Yes, it breaks contract but it is hard to imagine that some 'low level' development is relying on Byte objects instead of byte arrays. We could add this change as a new class but it would be good to register it in provider as a replacement of existing? In our case we had to 'wrap' all byte[] to Byte[]

@kowalczm
Copy link
Copy Markdown
Author

I have added additional changes to use standard java interfaces

@bytefish
Copy link
Copy Markdown
Owner

@kowalczm I see. 😎 Please give me some time to review it.

@kowalczm kowalczm changed the title ByteArrayValueHandler should accept primitive byte array ByteArrayValueHandler should accept primitive byte array. Usage java functional interfaces Nov 21, 2018
@kowalczm
Copy link
Copy Markdown
Author

Ok, looking forward release :)

@bytefish
Copy link
Copy Markdown
Owner

Yes. Your second commit changed a lot. Are these urgent changes, like you cannot proceed without them? I would rather make such changes with a new major revision to indicate breaking changes in the API, like adding generics to the mapping. I will think about what's best, but it can take until the weekend.

@kowalczm
Copy link
Copy Markdown
Author

@bytefish, no problem. It's up to you

@bytefish bytefish merged commit 5aa9e24 into bytefish:master Nov 24, 2018
@bytefish
Copy link
Copy Markdown
Owner

bytefish commented Nov 24, 2018

I am now fixing the Unit Tests, Increase to Version 3.0 and then Release it to Maven! 👍

@bytefish
Copy link
Copy Markdown
Owner

All Tests passed, Releasing it to Maven! 👍

@kowalczm
Copy link
Copy Markdown
Author

Thank you for merge and release

@bytefish
Copy link
Copy Markdown
Owner

Thank you for making the library better! 😎

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.

2 participants