Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
sharon2719 authored and Wambere committed Sep 20, 2024
1 parent 727672f commit 923f2aa
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ void validateStructureMap(String inputFilePath, boolean validate, String structu

FctUtils.printCompletedInDuration(start);
}
void validateStructureMapForProject(

void validateStructureMapForProject(
String projectPath, String compositionFilePath, boolean validate) throws IOException {
FctUtils.printInfo("Starting project mode validation with composition");

Expand Down Expand Up @@ -270,22 +270,22 @@ JsonArray getStructureMapsFromComposition(JsonObject composition) {
return null;
}

String findMatchingStructureMap(String questionnaireTitle, JsonArray structureMaps) {
for (JsonElement structureMapElement : structureMaps) {
JsonObject structureMap = structureMapElement.getAsJsonObject();
String findMatchingStructureMap(String questionnaireTitle, JsonArray structureMaps) {
for (JsonElement structureMapElement : structureMaps) {
JsonObject structureMap = structureMapElement.getAsJsonObject();

// Check if the "title" field exists and is not null
if (structureMap.has("title") && !structureMap.get("title").isJsonNull()) {
String structureMapTitle = structureMap.get("title").getAsString();
// Check if the "title" field exists and is not null
if (structureMap.has("title") && !structureMap.get("title").isJsonNull()) {
String structureMapTitle = structureMap.get("title").getAsString();

// Logic to match questionnaire title with structure map title
if (structureMapTitle.equals(questionnaireTitle)) {
return structureMapTitle; // Return the matched structure map title
}
}
// Logic to match questionnaire title with structure map title
if (structureMapTitle.equals(questionnaireTitle)) {
return structureMapTitle; // Return the matched structure map title
}
return null;
}
}
return null;
}

static ArrayList<String> getResourceFiles(String pathToFolder) throws IOException {
ArrayList<String> filesArray = new ArrayList<>();
Expand Down

0 comments on commit 923f2aa

Please sign in to comment.