Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(codestyle): Fixes code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart committed Jul 25, 2017
1 parent ba3c470 commit af9ef25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ public List<String> getPaths(String fullyQualifiedName) {
protected List<String> getPathsForJavaClassName(String prefix, String fullyQualifiedName, List<String> visited) {
if (visited.contains(fullyQualifiedName)) {
return Collections.emptyList();
} else {
visited.add(fullyQualifiedName);
}

visited.add(fullyQualifiedName);

ResponseEntity<String> response = null;
try {
response = restTemplate.getForEntity(getClassInspectionUrl(config, fullyQualifiedName), String.class);
Expand Down Expand Up @@ -113,9 +113,9 @@ protected List<String> getPathsFromJavaClassJson(String prefix, String json, Lis
if (isPrimitive || isTerminal(fieldClassName)) {
paths.add(prefix + DEFAULT_SEPARATOR + name);
continue;
} else {
paths.addAll(getPathsForJavaClassName(prefix + DEFAULT_SEPARATOR + name, fieldClassName, visited));
}

paths.addAll(getPathsForJavaClassName(prefix + DEFAULT_SEPARATOR + name, fieldClassName, visited));
}
}
}
Expand All @@ -132,7 +132,9 @@ protected static String getClassName(String fullyQualifiedName) {
int index = fullyQualifiedName.lastIndexOf(".");
if (index > 0) {
return fullyQualifiedName.substring(index + 1);
} else return fullyQualifiedName;
}

return fullyQualifiedName;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class BaseExceptionMapper<E extends Throwable> implements ExceptionMapp

private final String userMessage;

public BaseExceptionMapper(final Status status, final String userMessage) {
protected BaseExceptionMapper(final Status status, final String userMessage) {
this.status = status;
this.userMessage = userMessage;
}
Expand Down

0 comments on commit af9ef25

Please sign in to comment.