-
Notifications
You must be signed in to change notification settings - Fork 565
DATAREST-994 - Fixed two argument constructor of RepositoryRestHandlerMapping #257
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
Conversation
d622ff0
to
3715b1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny comment, besides LGTM
@@ -82,6 +86,22 @@ public void createConfigurationShouldConstructFullCorsConfiguration() { | |||
assertThat(configuration.getMaxAge(), is(1234L)); | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this blank line 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, beyond that tiny remark about property order. Feel free to merge back once that's resolved.
@@ -266,14 +266,14 @@ public String resolveStringValue(String value) { | |||
static class RepositoryCorsConfigurationAccessor { | |||
|
|||
private final @NonNull ResourceMappings mappings; | |||
private final @NonNull Repositories repositories; | |||
private final Repositories repositories; | |||
private final @NonNull StringValueResolver embeddedValueResolver; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the order (StringValueResolver
before Repositories
) so that we also have the constructor taking all non-null properties first.
3e5f4bd
to
e580c04
Compare
…rMapping. Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided. Original pull request: #257.
e580c04
to
d954b46
Compare
…rMapping. Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided. Original pull request: #257.
…rMapping. Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided. Original pull request: #257.
…rMapping. Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided. Original pull request: #257.
Fixed |
Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.