Skip to content
Snippets Groups Projects
Commit 4cf9e55b authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7136 reorder methods

parent 47b855cf
No related branches found
No related tags found
1 merge request!1Ozg 7136 null postfach type
......@@ -284,12 +284,11 @@ class PostfachService {
.findFirst();
}
private boolean hasPostfachType(PostfachRemoteService postfachRemoteService, String postfachType) {
return StringUtils.equals(postfachRemoteService.getPostfachType(), postfachType);
}
Stream<PostfachRemoteService> getPostfachRemoteServices() {
return postfachRemoteServices.map(Collection::stream).orElseThrow(() -> new NotConfiguredException("No postfach configured"));
}
private boolean hasPostfachType(PostfachRemoteService postfachRemoteService, String postfachType) {
return StringUtils.equals(postfachRemoteService.getPostfachType(), postfachType);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment