diff --git a/src/java.base/share/classes/sun/text/CompactByteArray.java b/src/java.base/share/classes/sun/text/CompactByteArray.java index 81437b2c67a..d4dbb0e03f6 100644 --- a/src/java.base/share/classes/sun/text/CompactByteArray.java +++ b/src/java.base/share/classes/sun/text/CompactByteArray.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -129,7 +129,7 @@ public final class CompactByteArray implements Cloneable { { if (isCompact) expand(); - values[(int)index] = value; + values[index] = value; touchBlock(index >> BLOCKSHIFT, value); } @@ -326,17 +326,11 @@ public final class CompactByteArray implements Cloneable { for (i = 0; i < INDEXCOUNT; ++i) { indices[i] = (short)(i<