-
Notifications
You must be signed in to change notification settings - Fork 683
DATACMNS-1261 - Apply Java 8 Functional types and Lambdas to simplify… #274
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
6b27587
to
4fd7e41
Compare
… parsing logic in Repository configuration. Additionally, fix up Exception error messages and edit Javadoc.
4fd7e41
to
e4a84df
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.
This PR contains a lot of different things. Some things (like polishing) of ConfigurationUtils
or some cases of Assert
instead of throwing exceptions might make sense as a polishing PR.
throw new IllegalArgumentException( | ||
String.format("Could not obtain required bean class name from BeanDefinition!", beanDefinition)); | ||
} | ||
Assert.notNull(result, String.format("Could not obtain required bean class name from BeanDefinition [%s]!", |
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.
This change has performance impact as String.format(…)
is invoked regardless of whether it's required to. We should either stick with the previous variant or use a message supplier. There are also occurrences of similar changes.
* @see java.lang.Iterable | ||
* @since 2.1.0 | ||
*/ | ||
public abstract class IterableUtils { |
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.
Not sure that Spring Data is the best place for such a utility. I'd suggest to move it to Spring Framework.
Closing this pull request since there was no update since quite a while. We can reopen it if we want to revive it. |
… parsing logic in Repository configuration.