Skip to content

Commit 83e4559

Browse files
committed
instanceof and cast
1 parent b0148c4 commit 83e4559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/maxgamer/quickshop/localization/text/postprocessing/impl/FillerProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class FillerProcessor implements PostProcessor {
3434
boolean hit = false;
3535
for (int i = 0; i < args.length; i++) {
3636

37-
if (args[i].getClass() == String.class) {
38-
strings[i] = String.valueOf(args[i]);
37+
if (args[i] instanceof String) {
38+
strings[i] = (String) args[i];
3939
continue;
4040
}
4141

0 commit comments

Comments
 (0)