Fixes the [] from appearing in EULA.

This commit is contained in:
James Quinley
2022-09-16 23:04:34 -07:00
parent b7ee2c44d1
commit 8a1ef180a2

View File

@ -1423,7 +1423,12 @@ public class delegationServices {
Path path = Paths.get(fileName);
byte[] bytes = Files.readAllBytes(path);
List<String> allLines = Files.readAllLines(path, StandardCharsets.UTF_8);
policyDocument = allLines.toString();
String formattedString = allLines.toString()
.replace(",", "") //remove the commas
.replace("[", "") //remove the right bracket
.replace("]", "") //remove the left bracket
.trim(); //remove trailing spaces from partially initialized arrays
policyDocument = formattedString;
}
catch (Exception EXR)
{