-
Notifications
You must be signed in to change notification settings - Fork 407
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
Equals&hashCode fixup #1644
Equals&hashCode fixup #1644
Conversation
…instanceof + final equals&hashCode methods)
…n equals/hashCode in the beginning)
…ng (+ BigDecimal fields in some of them)
… deleted setters in Tlv)
...m2m-bsserver/src/test/java/org/eclipse/leshan/bsserver/InMemoryBootstrapConfigStoreTest.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-client/src/test/java/org/eclipse/leshan/client/servers/LwM2mServerTest.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-core/src/test/java/org/eclipse/leshan/core/LwM2mTest.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-core/src/main/java/org/eclipse/leshan/core/ResponseCode.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-core/src/test/java/org/eclipse/leshan/core/ResponseCodeTest.java
Outdated
Show resolved
Hide resolved
...java/org/eclipse/leshan/transport/californium/server/observation/ObservationServiceTest.java
Outdated
Show resolved
Hide resolved
...score/src/main/java/org/eclipse/leshan/transport/californium/oscore/cf/OscoreParameters.java
Outdated
Show resolved
Hide resolved
...score/src/main/java/org/eclipse/leshan/transport/californium/oscore/cf/OscoreParameters.java
Show resolved
Hide resolved
I hope you will not be too afraid with all those comments ! Not the best way to welcome back 😁 The idea to separate PR in several commits was good but with hindsight maybe we should do that more step by step.
Reading you code, I also ask myself how |
Reading Objects.hash(Arrays.hashcode()), I see that |
Could you please explain #1644 (comment), I don't understand what you mean? That we don't know how HkdfAlgorithm will be hashed because it doesn't define equals/hashcode? |
I added this comment just to remember that I just see that |
Oh, OK sorry for misunderstanding 😄 |
All mentioned changes are implemented. I know that, as you mentioned in #1644 (comment), I should have created separate PRs... should I do that now or stick with this PR? |
My fault too, I should advice you to do that.
As you prefer. As I said small PR you will have better and faster feedback. |
@nkrzykala is this ready for review ? |
Yes, sorry I didn't let you know |
...ation-tests/src/test/java/org/eclipse/leshan/integration/tests/write/WriteCompositeTest.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-core/src/test/java/org/eclipse/leshan/core/model/LwM2mModelRepositoryTest.java
Outdated
Show resolved
Hide resolved
leshan-lwm2m-core/src/main/java/org/eclipse/leshan/core/ResponseCode.java
Outdated
Show resolved
Hide resolved
Fixed those 3 issues |
Hi, I forgot to do rebase of my branch onto master before I pushed last commits - now my branch is behind by 4 commits:
I am not sure how to fix that as now locally I have the right version (those 4 commits + my commits, after rebase) and remotely I have all of my commits and not those 4 ones. I have question if you could help me clean that? |
Not a big deal, if there is not so much conflict I can do that on myself.
So generally, I create another local branch for the current remote. (so If I do something wrong and can easily go back to that state) Let me know if you want to try to do that OR if I do it myself when I will integrate it in (I fetched your current remote code on my machine, so if something goes wrong I have a backup 😉) |
If it wouldn't be much work and a problem - I'd prefere you to take care of it. I don't think I trust myself with that 😄 Thank you very much! |
Hi, while looking at possible solutions for another issue (#1279) I found out that there is an old implementation of EqualsVerifiers test for Version class in VersionTest.java. I missed to delete it because my implementation of this test is in Lwm2mTest. |
Thx for letting me know that. I will look at that. |
So, I integrated this PR in About importing junit5 "correctly", this is fixed by 6293523) About adding virtualHost to IpPeer equals/hashcode(), this is fixed by 47890dd About VersionTest vs LwM2mTest, this is fixed by : ccd7bc9 So I think we can close this issue. Thx a lot @nkrzykala for your contribution ! Really Good Job ! I really appreciate it 🙏 |
This pull request is according to #1504
I separated modified and added files into commits by categories. You can find commits dividing: