<Swing Dev> RFR: 8270058: Use Objects.check{Index, FromToIndex, FromIndexSize} for java.desktop [v3]

Yi Yang yyang at openjdk.java.net
Thu Jul 22 06:29:13 UTC 2021


> After JDK-8265518(#3615), it's possible to replace all variants of checkIndex by Objects.checkIndex/Objects.checkFromToIndex/Objects.checkFromIndexSize in the whole JDK codebase.
> 
> As Mandy suggested, I create this PR for changes involving client code:
> 
> src/java.desktop/share/classes/com/sun/media/sound/AudioFloatInputStream.java
> src/java.desktop/share/classes/javax/swing/JTabbedPane.java
> test/jdk/java/awt/print/PrinterJob/ImagePrinting/ClippedImages.java
> test/jdk/javax/imageio/AppletResourceTest.java
> test/jdk/javax/imageio/ImageReaderReadAll.java
> test/jdk/javax/imageio/metadata/IIOMetadataFormat/UserPluginMetadataFormatTest.java

Yi Yang has updated the pull request incrementally with one additional commit since the last revision:

  typo

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4718/files
  - new: https://git.openjdk.java.net/jdk/pull/4718/files/e8bea045..1db9e872

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4718&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4718&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4718.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4718/head:pull/4718

PR: https://git.openjdk.java.net/jdk/pull/4718


More information about the swing-dev mailing list