Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Sonar major issue - Declarations should use Java collection inter... #720

Merged
merged 1 commit into from Feb 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -205,7 +205,7 @@ public void setFad(final FedoraAuthorizationDelegate fad) {
}

private Set<Principal> collectPrincipals(final Credentials credentials) {
final HashSet<Principal> principals = new HashSet<>();
final Set<Principal> principals = new HashSet<>();

// TODO add exception handling for principal providers
for (final PrincipalProvider p : this.getPrincipalProviders()) {
Expand Down
Expand Up @@ -109,7 +109,7 @@ private UriBuilder uriBuilder() {

@Override
protected FedoraResource doForward(final Resource resource) {
final HashMap<String, String> values = new HashMap<>();
final Map<String, String> values = new HashMap<>();
final String path = asString(resource, values);
try {
if (path != null) {
Expand Down Expand Up @@ -151,7 +151,7 @@ protected Resource doBackward(final FedoraResource resource) {

@Override
public boolean inDomain(final Resource resource) {
final HashMap<String, String> values = new HashMap<>();
final Map<String, String> values = new HashMap<>();
return uriTemplate.match(resource.getURI(), values) && values.containsKey("path");
}

Expand Down Expand Up @@ -184,7 +184,7 @@ public Resource toDomain(final String path) {

@Override
public String asString(final Resource resource) {
final HashMap<String, String> values = new HashMap<>();
final Map<String, String> values = new HashMap<>();

return asString(resource, values);
}
Expand Down