CMSgov/dpc-app

View on GitHub
dpc-common/src/main/java/gov/cms/dpc/fhir/parameters/FHIRParamValueFactory.java

Summary

Maintainability
A
0 mins
Test Coverage

Merge this if statement with the enclosing one.
Open

            if (IBaseResource.class.isAssignableFrom(parameter.getRawType()))

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if (file != null) {
  if (file.isFile() || file.isDirectory()) {
    /* ... */
  }
}

Compliant Solution

if (file != null && isFileOrDirectory(file)) {
  /* ... */
}

private static boolean isFileOrDirectory(File file) {
  return file.isFile() || file.isDirectory();
}

There are no issues that match your filters.

Category
Status