From 3b2012c0ff0788d9cd9af92e6a885f5b02f03745 Mon Sep 17 00:00:00 2001 From: yuanneng Date: Mon, 15 Nov 2021 11:15:00 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#I4I7QL=20Description:=E4=B8=80?= =?UTF-8?q?=E4=B8=AAability=E6=9C=892=E5=BC=A0=E5=8D=A1=E7=89=87=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E6=89=93=E5=8C=85=E6=8A=A5=E9=94=99?= =?UTF-8?q?=20Sig:aafwk=20Feature=20or=20Bugfix:=20Bugfig=20Binary=20Sourc?= =?UTF-8?q?e:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fenghao --- adapter/ohos/Compressor.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java index 05f4ff88..cd8b30c7 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -1541,21 +1541,18 @@ public class Compressor { private void parsePackFormName(BufferedReader bufferedReader, Utility utility) throws BundleException { String lineStr = null; try { - boolean isFormsStart = false; while ((lineStr = bufferedReader.readLine()) != null) { if (lineStr.contains("abilities")) { continue; } if (lineStr.contains(FORMS)) { - isFormsStart = true; continue; } if (lineStr.contains(JSON_END)) { continue; } - if (isFormsStart && lineStr.contains(NAME)) { + if (lineStr.contains(NAME)) { getNameFromString(lineStr, utility); - isFormsStart = false; } } } catch (IOException exception) { -- Gitee