DefaultListSelectionModel.removeIndexInterva accepts `int` value which allows it to take in Integer.MAX_VALUE theoratically but it does calculation with that value which can results in IOOBE. Fix is to make sure the calculation stays within bounds.
------------- Commit messages: - Test fix - 6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails Changes: https://git.openjdk.org/jdk/pull/10409/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10409&range=00 Issue: https://bugs.openjdk.org/browse/JDK-6187113 Stats: 46 lines in 2 files changed: 44 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/10409.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10409/head:pull/10409 PR: https://git.openjdk.org/jdk/pull/10409