diff options
author | Yuuta Liang <yuutaw@students.cs.ubc.ca> | 2023-10-14 05:35:17 +0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@students.cs.ubc.ca> | 2023-10-14 05:35:17 +0800 |
commit | 28fa18278c1f3a87722d5e8b78f581526a30bb38 (patch) | |
tree | 2f23f6e2e222a78f40809ec37e8b28a29cba3d3c /src/main/ui/Utils.java | |
parent | 0bcc057e741af3fbc108f42b75f9d42f48f6a51e (diff) | |
download | jca-28fa18278c1f3a87722d5e8b78f581526a30bb38.tar jca-28fa18278c1f3a87722d5e8b78f581526a30bb38.tar.gz jca-28fa18278c1f3a87722d5e8b78f581526a30bb38.tar.bz2 jca-28fa18278c1f3a87722d5e8b78f581526a30bb38.zip |
Fix lint
Signed-off-by: Yuuta Liang <yuutaw@students.cs.ubc.ca>
Diffstat (limited to 'src/main/ui/Utils.java')
-rw-r--r-- | src/main/ui/Utils.java | 8 |
1 files changed, 3 insertions, 5 deletions
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); |