From 28fa18278c1f3a87722d5e8b78f581526a30bb38 Mon Sep 17 00:00:00 2001 From: Yuuta Liang Date: Sat, 14 Oct 2023 05:35:17 +0800 Subject: Fix lint Signed-off-by: Yuuta Liang --- src/main/ui/Utils.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main/ui/Utils.java') diff --git a/src/main/ui/Utils.java b/src/main/ui/Utils.java index 3ed1300..6841536 100644 --- a/src/main/ui/Utils.java +++ b/src/main/ui/Utils.java @@ -4,11 +4,9 @@ import model.asn1.exceptions.ParseException; import java.math.BigInteger; import java.nio.charset.StandardCharsets; -import java.util.Arrays; import java.util.Base64; import java.util.regex.Matcher; import java.util.regex.Pattern; -import java.util.stream.Collectors; /** * Useful small methods for the whole program. @@ -38,7 +36,7 @@ public final class Utils { /** * EFFECTS: Pack the big-endian bytes into a 32bit integer. - * Throws {@link model.asn1.exceptions.ParseException} if the value is too large. + * Throws {@link model.asn1.exceptions.ParseException} if the value is too large. */ public static int bytesToInt(Byte[] array) throws ParseException { try { @@ -68,8 +66,8 @@ public final class Utils { /** * EFFECTS: Decode the input PEM file, with optional check on tags. \n must present after each line, optional after * the last. - * Throws {@link ParseException} if the desiredTag is specified but the input does not have the specific tag, or - * if the input does not have any tags at all (not a PEM). + * Throws {@link ParseException} if the desiredTag is specified but the input does not have the specific tag, or + * if the input does not have any tags at all (not a PEM). */ public static Byte[] parsePEM(Byte[] input, String desiredTag) throws ParseException { final String str = new String(byteToByte(input), StandardCharsets.UTF_8); -- cgit v1.2.3