Add just the refactoring from #26. #32
1 changed files with 6 additions and 6 deletions
commit
510c045070
|
|
@ -66,7 +66,7 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
|
||||||
return Response.ok(attribute_list).build();
|
return Response.ok(attribute_list).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves and validates the configuration and request state needed to export attribute
|
* Resolves and validates the configuration and request state needed to export attribute
|
||||||
* values for a given slug, exposing the results as member variables.
|
* values for a given slug, exposing the results as member variables.
|
||||||
*/
|
*/
|
||||||
|
|
@ -87,13 +87,13 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
if (componentList.isEmpty()) {
|
if (componentList.isEmpty()) {
|
||||||
throw new NotFoundException("Endpoint not found");
|
throw new NotFoundException("Endpoint not found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentList.size() > 1) {
|
if (componentList.size() > 1) {
|
||||||
throw new NotFoundException(
|
throw new NotFoundException(
|
||||||
"Endpoint Configuration Error - Multiple configurations exist for this endpoint.");
|
"Endpoint Configuration Error - Multiple configurations exist for this endpoint.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ComponentModel component = componentList.get(0);
|
ComponentModel component = componentList.get(0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue