aboutsummaryrefslogtreecommitdiff
path: root/src/main/ui/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/ui/Utils.java')
-rw-r--r--src/main/ui/Utils.java8
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);