Skip to content

Commit

Permalink
fix: Java 2 typecasting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 4, 2024
1 parent ffed0cd commit 03a7ac0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/main/java/jagex2/wordenc/WordFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ private static void filterBad(@OriginalArg(1) char[] in) {

@OriginalMember(owner = "client!mc", name = "b", descriptor = "(B[C)V")
private static void filterDomains(@OriginalArg(1) char[] in) {
@Pc(3) char[] filteredAt = in.clone();
@Pc(3) char[] filteredAt = (char[]) in.clone();
@Pc(18) char[] at = new char[] { '(', 'a', ')' };
filter(null, filteredAt, at);
@Pc(27) char[] filteredDot = in.clone();
@Pc(27) char[] filteredDot = (char[]) in.clone();
@Pc(42) char[] dot = new char[] { 'd', 'o', 't' };
filter(null, filteredDot, dot);
for (@Pc(56) int i = domains.length - 1; i >= 0; i--) {
Expand Down Expand Up @@ -330,10 +330,10 @@ private static int getDomainDotFilterStatus(@OriginalArg(0) char[] b, @OriginalA

@OriginalMember(owner = "client!mc", name = "b", descriptor = "([CI)V")
private static void filterTld(@OriginalArg(0) char[] in) {
@Pc(3) char[] filteredDot = in.clone();
@Pc(3) char[] filteredDot = (char[]) in.clone();
@Pc(18) char[] dot = new char[] { 'd', 'o', 't' };
filter(null, filteredDot, dot);
@Pc(27) char[] filteredSlash = in.clone();
@Pc(27) char[] filteredSlash = (char[]) in.clone();
@Pc(50) char[] slash = new char[] { 's', 'l', 'a', 's', 'h' };
filter(null, filteredSlash, slash);
for (@Pc(65) int i = 0; i < tlds.length; i++) {
Expand Down

0 comments on commit 03a7ac0

Please sign in to comment.