Skip to content

Commit 708fcc1

Browse files
committed
use uppercase letters in hexadecimal literals
1 parent c49ebbf commit 708fcc1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
<module name="CommentsIndentation">
199199
<property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
200200
</module>
201+
<module name="HexLiteralCase"/>
201202
<module name="Indentation">
202203
<property name="arrayInitIndent" value="4"/>
203204
<property name="basicOffset" value="4"/>

src/main/java/com/github/stephengold/joltjni/Color.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public int getUInt32() {
354354
int aa = ((int) a) << 24;
355355
int bb = ((int) b) << 16;
356356
int gg = ((int) g) << 8;
357-
int result = aa & 0xff000000 | bb & 0xff0000 | gg & 0xff00 | r & 0xff;
357+
int result = aa & 0xFF000000 | bb & 0xFF0000 | gg & 0xFF00 | r & 0xFF;
358358

359359
return result;
360360
}

src/main/java/com/github/stephengold/joltjni/HeightFieldShapeConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2024 Stephen Gold
2+
Copyright (c) 2024-2025 Stephen Gold
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
@@ -56,11 +56,11 @@ final public class HeightFieldShapeConstants {
5656
/**
5757
* {@code cNoCollisionValue} converted to 16 bits
5858
*/
59-
final public static int cNoCollisionValue16 = 0xffff;
59+
final public static int cNoCollisionValue16 = 0xFFFF;
6060
/**
6161
* maximum height when converted to 16 bits
6262
*/
63-
final public static int cMaxHeightValue16 = 0xfffe;
63+
final public static int cMaxHeightValue16 = 0xFFFE;
6464
// *************************************************************************
6565
// constructors
6666

src/main/java/com/github/stephengold/joltjni/Jolt.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ final public class Jolt {
6464
* <p>
6565
* value should match Jolt/Physics/Collision/Shape/SubShapeID.h
6666
*/
67-
final public static int cEmptySubShapeId = 0xffffffff;
67+
final public static int cEmptySubShapeId = 0xFFFF_FFFF;
6868
/**
6969
* invalid body ID
7070
* <p>
7171
* value should match Jolt/Physics/Body/BodyID.h
7272
*/
73-
final public static int cInvalidBodyId = 0xffffffff;
73+
final public static int cInvalidBodyId = 0xFFFF_FFFF;
7474
/**
7575
* standard 2nd argument to the {@code JobSystemThreadPool} constructor
7676
* <p>

0 commit comments

Comments
 (0)