Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change hash key to long #4

Merged
merged 1 commit into from
Feb 24, 2015
Merged

Conversation

chaowlert
Copy link
Collaborator

Hi,

Based on your library, you use int as key of record of {TSource + TDestination + has destination flag}.
Even it is very small chance, but it is possible to have key collision when there are a lot of type mappings.

My solution is using long, TSource will use high-order number, TDestination will use low-order number, and destination flag will be positive and negative.

Please review

eswann added a commit that referenced this pull request Feb 24, 2015
@eswann eswann merged commit da4eec7 into MapsterMapper:master Feb 24, 2015
@eswann
Copy link
Collaborator

eswann commented Feb 27, 2015

This pull reqest caused several tests to fail...had to nix it. Good idea but did you try running the tests?

@eswann
Copy link
Collaborator

eswann commented Feb 27, 2015

I was able to fix the failures by updating the signatures of the ClassAdapter AdaptInvoker signatures to be long,int instead of int,int. Please verify the unit tests going forward, but I agree it's a good update.

@chaowlert
Copy link
Collaborator Author

Hi, sorry, I just ignore notification without realize you have comments. I'm so sorry about bug from my PR. For all unit tests, I will do it soon.

@eswann
Copy link
Collaborator

eswann commented Mar 3, 2015

No problem...thanks for the contributions!

chaowlert added a commit that referenced this pull request Sep 28, 2017
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