modernizer-maven-plugin icon indicating copy to clipboard operation
modernizer-maven-plugin copied to clipboard

Add new violations for Java 13-15

Open gaul opened this issue 5 years ago • 3 comments

Audit Java 13-15 API additions using something like:

https://gunnarmorling.github.io/jdk-api-diff/jdk14-jdk15-api-diff.html

gaul avatar Sep 15 '20 23:09 gaul

I took a quick look at diffs since JDK 11 and the only obvious thing that I found was HexFormat.

Just an idea, because I don't have such live/production code to check it right now so no PR right now (until I find live use case)

It is in 17 (few days too early I know) there is a new class (https://download.java.net/java/early_access/jdk17/docs/api/java.base/java/util/HexFormat.html ) that might be useful as a replacement of:

  • https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/Hex.html
  • https://javadoc.io/doc/com.google.guava/guava/latest/com/google/common/io/BaseEncoding.html#base16()

BTW. You can look at diffs between JDKs here: https://krzyk.github.io/jdk-api-diff-set/ (I used https://github.com/AdoptOpenJDK/jdk-api-diff to generate it) - it is not the best format but usable.

krzyk avatar Aug 29 '21 08:08 krzyk

@krzyk @Stephan202 Could one of you look into this? I plan to run a new release soon.

gaul avatar Mar 05 '22 14:03 gaul

@gaul I can add this one on my TODO list, but my weekends are rather full currently. So it's hard to firmly commit at the moment. Let's see :crossed_fingers:

NB: in addition to the resources mentioned above this website might also be helpful :)

Stephan202 avatar Mar 05 '22 14:03 Stephan202

Any help on this? I want to run another release over the holidays.

gaul avatar Dec 01 '22 02:12 gaul

I see this one sunk down way too far on my TODO list, out of sight :(. The coming weeks are very busy, so I can't commit. (But I did just share this thread in the company Slack; maybe somebody bites :eyes: .)

Stephan202 avatar Dec 01 '22 07:12 Stephan202