Skip to content

Commit d9b2f89

Browse files
author
Pavel Rappo
committed
8322936: Update blessed-modifier-order.sh for default, sealed, and non-sealed
Reviewed-by: erikj, rriggs, martin
1 parent a3e0e23 commit d9b2f89

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/blessed-modifier-order.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
#
3+
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
34
# Copyright 2015 Google, Inc. All Rights Reserved.
45
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
56
#
@@ -26,12 +27,17 @@ usage() {
2627
echo "$0 DIR ..."
2728
echo "Modifies in place all the java source files found"
2829
echo "in the given directories so that all java language modifiers"
29-
echo "are in the canonical order given by Modifier#toString()."
30+
echo "are in the canonical order."
3031
echo "Tries to get it right even within javadoc comments,"
3132
echo "and even if the list of modifiers spans 2 lines."
3233
echo
3334
echo "See:"
34-
echo "https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Modifier.html#toString-int-"
35+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.1.1"
36+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.3.1"
37+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.4.3"
38+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.8.3"
39+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-9.html#jls-9.1.1"
40+
echo "https://docs.oracle.com/javase/specs/jls/se21/html/jls-9.html#jls-9.4"
3541
echo
3642
echo "Example:"
3743
echo "$0 jdk/src/java.base jdk/test/java/{util,io,lang}"
@@ -46,7 +52,7 @@ for dir in "${dirs[@]}"; do [[ -d "$dir" ]] || usage; done
4652

4753
declare -ar modifiers=(
4854
public protected private
49-
abstract static final transient
55+
abstract default static final sealed non-sealed transient
5056
volatile synchronized native strictfp
5157
)
5258
declare -r SAVE_IFS="$IFS"

0 commit comments

Comments
 (0)