Skip to content

Commit

Permalink
JACOBIN-608 Converted arrays in HexFormat to slices
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Nov 16, 2024
1 parent 3b8a930 commit bf25f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/buildno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

package config

var BuildNo = 3247
var BuildNo = 3248
6 changes: 3 additions & 3 deletions src/gfunction/javaUtilHexFormat.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Load_Util_HexFormat() {
// hashMapHash accepts a pointer to an object and returns
// a uint64 MD5 hash value of the pointed-to thing
func hexMapClinit(params []interface{}) interface{} {
DIGITS := [256]int8{
DIGITS := []int8{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
Expand All @@ -43,14 +43,14 @@ func hexMapClinit(params []interface{}) interface{} {
sDigits := statics.Static{Type: "[B", Value: DIGITS}
statics.AddStatic("java/util/HexFormat.DIGITS", sDigits)

UPPERCASE_DIGITS := [16]int8{
UPPERCASE_DIGITS := []int8{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
}
sUppercaseDigits := statics.Static{Type: "[B", Value: UPPERCASE_DIGITS}
statics.AddStatic("java/util/HexFormat.UPPERCASE_DIGITS", sUppercaseDigits)

LOWERCASE_DIGITS := [16]int8{
LOWERCASE_DIGITS := []int8{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f',
}
Expand Down

0 comments on commit bf25f73

Please sign in to comment.