Commit 19b5a157 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Forrmated code

parent 0ba94a06
...@@ -35,7 +35,5 @@ public class Main { ...@@ -35,7 +35,5 @@ public class Main {
prevChar = (int) array[i]; prevChar = (int) array[i];
} }
System.err.println(tt);
System.err.println(sb.toString());
} }
} }
...@@ -175,7 +175,7 @@ Accept: application/json ...@@ -175,7 +175,7 @@ Accept: application/json
}, { }, {
"name" : "...", "name" : "...",
"id" : "...", "id" : "...",
"type" : "PUBLIC", "type" : "PRIVATE",
"attributes" : { "attributes" : {
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
...@@ -488,7 +488,7 @@ Content-Type: application/json ...@@ -488,7 +488,7 @@ Content-Type: application/json
}, { }, {
"name" : "...", "name" : "...",
"id" : "...", "id" : "...",
"type" : "PRIVATE", "type" : "PUBLIC",
"attributes" : { "attributes" : {
"property1" : "...", "property1" : "...",
"property2" : "..." "property2" : "..."
......
...@@ -138,7 +138,6 @@ public abstract class DRIPCaller implements AutoCloseable { ...@@ -138,7 +138,6 @@ public abstract class DRIPCaller implements AutoCloseable {
private Message unMarshallWithSimpleJson(String strResponse) throws JSONException { private Message unMarshallWithSimpleJson(String strResponse) throws JSONException {
strResponse = strResponse.replaceAll("'null'", "null").replaceAll("\'", "\"").replaceAll(" ", ""); strResponse = strResponse.replaceAll("'null'", "null").replaceAll("\'", "\"").replaceAll(" ", "");
// System.err.println(strResponse);
JSONObject jsonObj = new JSONObject(strResponse); JSONObject jsonObj = new JSONObject(strResponse);
Message responseMessage = new Message(); Message responseMessage = new Message();
responseMessage.setCreationDate((Long) jsonObj.get("creationDate")); responseMessage.setCreationDate((Long) jsonObj.get("creationDate"));
......
...@@ -136,7 +136,6 @@ public class ToscaService { ...@@ -136,7 +136,6 @@ public class ToscaService {
prevChar = (int) array[i]; prevChar = (int) array[i];
} }
toscaContents = sb.toString(); toscaContents = sb.toString();
toscaContents = toscaContents.replaceAll("(?m)^[ \t]*\r?\n", ""); toscaContents = toscaContents.replaceAll("(?m)^[ \t]*\r?\n", "");
for (int i = 0; i < BAD_CHARS.length; i++) { for (int i = 0; i < BAD_CHARS.length; i++) {
int hex = BAD_CHARS[i]; int hex = BAD_CHARS[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment