Skip to content

Commit 2ad2d5f

Browse files
committed
capitalize 2 hexadecimal literals
1 parent 290ec51 commit 2ad2d5f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
<module name="CommentsIndentation">
183183
<property name="tokens" value="BLOCK_COMMENT_BEGIN"/>
184184
</module>
185+
<module name="HexLiteralCase"/>
185186
<module name="Indentation">
186187
<property name="arrayInitIndent" value="4"/>
187188
<property name="basicOffset" value="4"/>

src/main/java/maud/MaudUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2017-2024 Stephen Gold
2+
Copyright (c) 2017-2025 Stephen Gold
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without
@@ -1146,7 +1146,7 @@ public static BufferedImage render(
11461146
for (int x = 0; x < width; ++x) {
11471147
for (int byteI = 0; byteI < bytesPerPixel; ++byteI) {
11481148
int pixelByte = byteBuffer.get(byteOffset);
1149-
pixelBytes[byteI] = 0xff & pixelByte;
1149+
pixelBytes[byteI] = 0xFF & pixelByte;
11501150
++byteOffset;
11511151
}
11521152
Color color = pixelColor(format, pixelBytes);

src/main/java/maud/model/cgm/GeometryItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2021-2023, Stephen Gold
2+
Copyright (c) 2021-2025 Stephen Gold
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without
@@ -233,7 +233,7 @@ public String toString() {
233233
*/
234234
private String describe() {
235235
String name = geometry.getName();
236-
int hash = geometry.getMaterial().hashCode() & 0xffff;
236+
int hash = geometry.getMaterial().hashCode() & 0xFFFF;
237237
String description = String.format("%s (mat=%04x)", name, hash);
238238

239239
assert description != null;

0 commit comments

Comments
 (0)