Skip to content
Permalink
Browse files
chore: use isEmpty() instead of size() == 0
  • Loading branch information
lburgazzoli committed Mar 8, 2022
1 parent dd0df36 commit cf4e9fbfbba2ae59c5c4500f71427f66a1603fa0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -139,7 +139,7 @@ public void afterConfigure(RouteBuilder builder) {
List<RouteDefinition> routes = builder.getRouteCollection().getRoutes();
List<RouteTemplateDefinition> templates = builder.getRouteTemplateCollection().getRouteTemplates();

if (routes.size() > 0) {
if (!routes.isEmpty()) {
throw new IllegalArgumentException("There should be no route definition, got " + routes.size());
}
if (!templates.isEmpty()) {

0 comments on commit cf4e9fb

Please sign in to comment.