Skip to content

Commit 5c7ebcb

Browse files
Fix for Checkstyle
1 parent 3af893f commit 5c7ebcb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

spring-data-eclipse-store-benchmark/src/main/java/software/xdev/spring/data/eclipse/store/benchmark/benchmarks/with/id/FindByIdCustomerWithAutoIdBenchmark.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import software.xdev.spring.data.eclipse.store.repository.config.EclipseStoreClientConfiguration;
1212

1313

14+
@SuppressWarnings("checkstyle:MagicNumber")
1415
public class FindByIdCustomerWithAutoIdBenchmark
1516
{
1617
public abstract static class ExistingCustomerSpringState extends SpringState

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/query/criteria/CriteriaByExample.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ private <T> Predicate<ExampleMatcher.PropertySpecifier> createPredicateForSpecif
103103
final Optional<Object> transformedValue =
104104
specifier.getPropertyValueTransformer().apply(Optional.ofNullable(value));
105105

106-
final ExampleMatcher.StringMatcher setOrDefaultMatcher = specifier.getStringMatcher() == null ?
107-
example.getMatcher().getDefaultStringMatcher() :
108-
specifier.getStringMatcher();
106+
final ExampleMatcher.StringMatcher setOrDefaultMatcher = specifier.getStringMatcher() == null
107+
? example.getMatcher().getDefaultStringMatcher()
108+
: specifier.getStringMatcher();
109109

110110
switch(setOrDefaultMatcher)
111111
{
@@ -159,8 +159,11 @@ private <T> Predicate<ExampleMatcher.PropertySpecifier> createPredicateForSpecif
159159
)
160160
.matcher(valueAsString.get()).find();
161161
}
162+
default ->
163+
{
164+
return false;
165+
}
162166
}
163-
return true;
164167
};
165168
}
166169

0 commit comments

Comments
 (0)