Remove redundant substring() call

parseUnsignedInt() is capable of parsing a substring itself.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 676be4a0cb
commit 35fea8f293
  1. 2
      crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt

@ -68,7 +68,7 @@ object IsaacRandomTest {
for (line in lines) {
for (i in line.indices step 8) {
elements += Integer.parseUnsignedInt(line.substring(i, i + 8), 16)
elements += Integer.parseUnsignedInt(line, i, i + 8, 16)
}
}

Loading…
Cancel
Save