8317264: Pattern.Bound has static fields that should be static final.

Backport-of: ecb5e8a03f
This commit is contained in:
Francesco Andreuzzi
2025-05-09 11:47:27 +00:00
committed by Vitaly Provodin
parent 62e1d90661
commit 6753db8547

View File

@@ -5529,10 +5529,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
* they are ignored for purposes of finding word boundaries.
*/
static final class Bound extends Node {
static int LEFT = 0x1;
static int RIGHT= 0x2;
static int BOTH = 0x3;
static int NONE = 0x4;
static final int LEFT = 0x1;
static final int RIGHT= 0x2;
static final int BOTH = 0x3;
static final int NONE = 0x4;
int type;
boolean useUWORD;
Bound(int n, boolean useUWORD) {