From ccf65a5410ed6c6a5f89b0378360dc12de311f22 Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Tue, 30 Apr 2024 07:55:27 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix=20some=20'code=20smells':=20?= =?UTF-8?q?fix=20equals=20for=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/math/ASCIIMathTeXImg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/math/ASCIIMathTeXImg.java b/app/src/main/java/math/ASCIIMathTeXImg.java index 42c7aea..5e52826 100644 --- a/app/src/main/java/math/ASCIIMathTeXImg.java +++ b/app/src/main/java/math/ASCIIMathTeXImg.java @@ -956,7 +956,7 @@ private String[] aAMTparseExpr(String str, boolean rightbracket) { } } for (int j = subarr.size() - 1; j >= 0; j--) { - if (subarr.get(j) == "{\\mid}") { + if (subarr.get(j).equals("{\\mid}")) { if (i == 0) { columnaligns = "|" + columnaligns; }