From fe19482bbac238a04bb170311ebdb5aadfd47f69 Mon Sep 17 00:00:00 2001 From: "James R. Perkins" Date: Tue, 20 Feb 2024 17:30:06 -0800 Subject: [PATCH] [26] Remove the debug assertion as it could break on valid signatures. Signed-off-by: James R. Perkins --- .../sun/tdk/signaturetest/core/Erasurator.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tools/sigtest/src/main/java/com/sun/tdk/signaturetest/core/Erasurator.java b/tools/sigtest/src/main/java/com/sun/tdk/signaturetest/core/Erasurator.java index 0031a74..61bf5ed 100644 --- a/tools/sigtest/src/main/java/com/sun/tdk/signaturetest/core/Erasurator.java +++ b/tools/sigtest/src/main/java/com/sun/tdk/signaturetest/core/Erasurator.java @@ -234,22 +234,6 @@ private MemberDescription processMember(MemberDescription mr, boolean dontClone) if (!MemberDescription.EMPTY_THROW_LIST.equals(ths)) cloned_m.setThrowables(convert(ths, globalParameters, localParameters)); - - // just for debugging - if (SigTest.debug) { - String s = cloned_m.toString(); - /* - *annotation value can be parametrized class - *but we should NOT (I'm not 100% sure) erasure this. - *so just skip annotation for this checkings - */ - int fl = s.indexOf('\n'); - if (fl > 0) { - s = s.substring(0, fl); - } - assert s.indexOf('<') == -1 && s.indexOf('?') == -1 && s.indexOf('{') == -1 : s; - } - return cloned_m; }