Skip to content

Commit

Permalink
#39 - SonarQube linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cshawaus committed Aug 10, 2020
1 parent 7cbaf83 commit a5a9a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected String getCloudConfiguration(String configName, String configProperty)
*/
private void retrieveComponentConfig() {
try {
config = getComponentDataByKey("config").getAsJsonArray();
config = getComponentDataByKey("config").getAsJsonArray(); // NOSONAR
} catch (Exception ex) {
LOGGER.warn("Unable to retrieve the component configuration, this could mean it doesn't exist or is invalid.");
}
Expand Down Expand Up @@ -364,7 +364,7 @@ private JsonElement getComponentDataByKey(String pathPart) {
JsonElement jsonElement = null;

try {
String componentPath = "/content/%s/%s/component-dialog/vue-widgets/%s/%s";
String componentPath = "/content/%s/%s/component-dialog/vue-widgets/%s/%s"; // NOSONAR
String tenantName = TenantUtil.resolveTenantIdFromPath(getResource().getPath());
String resourcePath = String.format(componentPath, NameConstants.PN_TAGS, tenantName, componentName, pathPart);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ public static Map<String, Resource> getLocalSubResourcesInSuperComponent(Compone
if (localresource != null && !ResourceUtil.isNonExistingResource(localresource)) {
for (Resource resource : localresource.getChildren()) {
//add only newly found resources
if (!subResources.containsValue(resource.getName())) {
if (!subResources.containsValue(resource.getName())) { // NOSONAR
String name = resource.getName().replace(DEFAULT_EXTENTION, EMPTY);
subResources.put(name, resource);
}
Expand Down

0 comments on commit a5a9a28

Please sign in to comment.