Skip to content

Commit

Permalink
Removed the tabs and added spaces to correct the alignment of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aparnamichael committed Nov 14, 2024
1 parent 473976d commit 4f99565
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ public static Object getValueFromDataParameter(Map<String, Object> data, String
Object child = data.get(key);
if (child instanceof String) {
// if the value in the 'data' is a string, we string the object.
// eg: data = “AssertTrue”
// eg: data = “AssertTrue”
return child;
} else if (child instanceof List<?>) {
// if the value in the 'data' is an array, we will convert it to an JsonArray.
// eg: data =[“ApplicationScoped", "RequestScoped”]
// if the value in the 'data' is an array, we will convert it to an JsonArray.
// eg: data =[“ApplicationScoped", "RequestScoped”]
Gson gson = new Gson();
JsonArray jsonArray = gson.toJsonTree(child).getAsJsonArray();
return jsonArray;
} else {
// Returns null if it is in any other format.
// Returns null if it is in any other format.
return null;
}

Expand Down

0 comments on commit 4f99565

Please sign in to comment.