java icon indicating copy to clipboard operation
java copied to clipboard

Some code is deprecated and some marked for removal and assert is in incorrect order

Open tdltdl opened this issue 1 year ago • 8 comments

Some examples are

  • MapRequest uses deprecated create signature (MediaType, String)
  • new Integer(0), ...

Also propose to upgrade to latest versions All assert parameters are in the wrong order : The signature is assertEquals( expected, actual) and all test cases are like this assertEquals(asnResp.getDomain(), "af.mil") (expected is the function call and actual is the expected result...

tdltdl avatar Sep 11 '24 16:09 tdltdl

Will also include updated values to the test cases as per #54. and update some dependencies like okhttp that was reported as vulnerable

tdltdl avatar Sep 11 '24 19:09 tdltdl

Hi @tdltdl ! Thanks for your 3 PRs.

We will go over them as soon as we have a chance.

max-ipinfo avatar Sep 13 '24 19:09 max-ipinfo

Hi @max-ipinfo I hope you are fine. Do you have an ETA for checking those fixes and merging them? Thanks!

tdltdl avatar Feb 10 '25 20:02 tdltdl

@tdltdl sorry for the wait.

My hope is to take some time tomorrow, February 21 2025, to look at your PRs.

I'll keep you posted!

max-ipinfo avatar Feb 20 '25 22:02 max-ipinfo

@tdltdl starting the review of the 3 PRs now. I'll keep you posted there directly.

max-ipinfo avatar Feb 21 '25 23:02 max-ipinfo

@tdltdl let's focus on PR #55 for now.

Sent you a first review: https://github.com/ipinfo/java/pull/55#pullrequestreview-2634504332

max-ipinfo avatar Feb 22 '25 00:02 max-ipinfo

Unit test fixes are here... So doing them in the wrong order forces us to do the same test fixes multiple times

tdltdl avatar Feb 22 '25 20:02 tdltdl

Unit test fixes are here... So doing them in the wrong order forces us to do the same test fixes multiple times

Sorry @tdltdl, I didn't understand your comment

I fixed unit tests (including their order) in https://github.com/ipinfo/java/commit/8202b743330d75df3cbc5b5e6c6a080a43ca338f

Are you having issues rebasing your PR?

max-ipinfo avatar Feb 24 '25 17:02 max-ipinfo