Add just the refactoring from #26. #32

Merged
stb merged 2 commits from refactor into main 2026-07-21 21:22:20 +02:00
Showing only changes of commit 510c045070 - Show all commits

Formatting
All checks were successful
/ Verify (pull_request) Successful in 52s
/ Verify (push) Successful in 46s

Stefan Bethke 2026-07-21 21:20:15 +02:00

View file

@ -66,7 +66,7 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
return Response.ok(attribute_list).build();
}
/**
/**
* Resolves and validates the configuration and request state needed to export attribute
* values for a given slug, exposing the results as member variables.
june marked this conversation as resolved Outdated

Einrückung fehlt.

Einrückung fehlt.
*/
@ -87,13 +87,13 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
.toList();
if (componentList.isEmpty()) {
throw new NotFoundException("Endpoint not found");
throw new NotFoundException("Endpoint not found.");
june marked this conversation as resolved Outdated

Missing dot.

Missing dot.
}
if (componentList.size() > 1) {
throw new NotFoundException(
"Endpoint Configuration Error - Multiple configurations exist for this endpoint.");
}
if (componentList.size() > 1) {
throw new NotFoundException(
"Endpoint Configuration Error - Multiple configurations exist for this endpoint.");
}
ComponentModel component = componentList.get(0);