Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Feb 2, 2017

Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.

Copy link
Member

@mp911de mp911de left a 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));
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this blank line 🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@odrotbohm odrotbohm left a 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;
Copy link
Member

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.

…rMapping.

Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.

Original pull request: #257.
schauder added a commit that referenced this pull request Feb 3, 2017
…rMapping.

Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.

Original pull request: #257.
schauder added a commit that referenced this pull request Feb 3, 2017
…rMapping.

Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.

Original pull request: #257.
schauder added a commit that referenced this pull request Feb 3, 2017
…rMapping.

Repositories in RepositoryCorsConfigurationAccessor may be null now. findCorsConfiguration returns null when no repositories are provided.

Original pull request: #257.
@schauder
Copy link
Contributor Author

schauder commented Feb 3, 2017

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants