Permalink
Browse files

CheckStyle: Fix whitespace violations

  • Loading branch information...
Pieter12345 committed Jun 9, 2018
1 parent 4421fe8 commit bbbfaf6f3d56f52aeba6ccaf109a60bf24f1f76f
@@ -161,7 +161,7 @@ public static void verifyNonInheritImplements() throws ClassNotFoundException {
+ " implement the method public " + im.getReturnType().getSimpleName() + " " + im.getName() + "(";
List<String> params = new ArrayList<>();
msg += StringUtils.Join(im.getParameters(), ", ", ", ", ", ", "", (Object item) -> {
Parameter ci = (Parameter)item;
Parameter ci = (Parameter) item;
return ci.getType().getSimpleName() + " " + ci.getName();
});
msg += ") {}";
@@ -349,7 +349,7 @@ public static boolean getBoolean(Construct c, Target t) {
if(c instanceof CBoolean) {
b = ((CBoolean) c).getBoolean();
} else if(c instanceof CString) {
if(((CString)c).val().equals("false")) {
if(((CString) c).val().equals("false")) {
CHLog.GetLogger().e(CHLog.Tags.FALSESTRING, "String \"false\" evaluates as true (non-empty strings are"
+ " true). This is most likely not what you meant to do. This warning can globally be disabled"
+ " with the logger-preferences.ini file.", t);
@@ -249,7 +249,7 @@ public static boolean available(int port) {
//
// @SuppressWarnings("ConvertToStringSwitch")
// private static void HandleConnection(PersistenceNetwork pn, Socket s) throws IOException {
// try (
// try(
// BufferedReader reader = new BufferedReader(new InputStreamReader(s.getInputStream(), "UTF-8"));
// PrintWriter out = new PrintWriter(s.getOutputStream(), true);) {
// FederationVersion version;
@@ -60,7 +60,7 @@ private static CString getHMAC(String algorithm, Target t, Construct[] args) {
private static byte[] getByteArrayFromArg(Construct c) {
byte[] val;
if(c instanceof CSecureString) {
val = ArrayUtils.charToBytes(((CSecureString)c).getDecryptedCharArray());
val = ArrayUtils.charToBytes(((CSecureString) c).getDecryptedCharArray());
} else {
val = c.val().getBytes();
}
@@ -449,7 +449,7 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
try {
String val;
if(args[0] instanceof CSecureString) {
val = new String(((CSecureString)args[0]).getDecryptedCharArray());
val = new String(((CSecureString) args[0]).getDecryptedCharArray());
} else {
val = args[0].val();
}
@@ -520,7 +520,7 @@ public Boolean runAsync() {
public Construct exec(Target t, Environment environment, Construct... args) throws ConfigRuntimeException {
String val;
if(args[0] instanceof CSecureString) {
val = new String(((CSecureString)args[0]).getDecryptedCharArray());
val = new String(((CSecureString) args[0]).getDecryptedCharArray());
} else {
val = args[0].val();
}
@@ -354,7 +354,7 @@ public static String docs() {
// // Else, we need to ask the server for a port, then listen on that port.
// int port;
// Socket masterSocket = new Socket("localhost", master_port);
// try (
// try(
// OutputStream os = masterSocket.getOutputStream();
// InputStream is = new BufferedInputStream(masterSocket.getInputStream());
// PrintWriter out = new PrintWriter(os, true);

0 comments on commit bbbfaf6

Please sign in to comment.