Skip to content

Commit 5b36517

Browse files
Improper Name in comments
Modifies the improper name of the recommendation with CSS Color Level 4. CSS Level 4 doesn't exist. CSS is a set of Modules, one of them is Color.
1 parent 7a99e7c commit 5b36517

File tree

1 file changed

+2
-2
lines changed
  • src/java.desktop/share/classes/javax/swing/text/html

1 file changed

+2
-2
lines changed

src/java.desktop/share/classes/javax/swing/text/html/CSS.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ static final Color hexToColor(String digits) {
13641364
digits = digits.substring(1, Math.min(n, 9));
13651365
n--;
13661366
}
1367-
// CSS level 4
1367+
// CSS Color level 4
13681368
// - defines color hex code as #[2 digits Red][2 digits Green][2 digits Blue][2 digits Alpha]. With digit 0 ... f.
13691369
// - allows, webpage passes 3, 4, 6 or 8 digit color code.
13701370
// - 3 digits #[R][G][B] ........ represents #[RR][GG][BB]FF
@@ -1373,7 +1373,7 @@ static final Color hexToColor(String digits) {
13731373
// - 8 digits #[RR][GG][BB][AA] . represents #[RR][GG][BB][AA]
13741374
//
13751375
// Becareful ! In java.awt.Color hex #[2 digits Alpha][2 digits Red][2 digits Green][2 digits Blue]
1376-
// Since this method is defined in CSS.java, it must only take in charge CSS Level 4 color format.
1376+
// Since this method is defined in CSS.java, it must only take in charge CSS Color Level 4 notations.
13771377
//
13781378
// According notes below the current OpenJDK implementation is
13791379
// - 3 digits #[R][G][B] represents #[RR][GG][BB]FF

0 commit comments

Comments
 (0)