Skip to content

Commit 95239a2

Browse files
committed
Fix CheckStyle/PMD
1 parent eb85ac3 commit 95239a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

spring-data-eclipse-store-benchmark/src/main/java/software/xdev/spring/data/eclipse/store/benchmark/BenchmarkApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import software.xdev.spring.data.eclipse.store.repository.config.EnableEclipseStoreRepositories;
1010

1111

12-
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
12+
@SuppressWarnings({"checkstyle:HideUtilityClassConstructor", "PMD.UseUtilityClass"})
1313
@SpringBootApplication
1414
@EnableEclipseStoreRepositories
1515
public class BenchmarkApplication

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/support/EclipseStoreQueryLookupStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public RepositoryQuery resolveQuery(
6767
final Query queryAnnotation = method.getAnnotation(Query.class);
6868
if(queryAnnotation != null)
6969
{
70-
if(method.getName().equalsIgnoreCase("findall"))
70+
if("findall".equalsIgnoreCase(method.getName()))
7171
{
7272
// Special case for Queries that have findAll and are annotated with Query
7373
return this.createFindAllEclipseStoreQueryProvider(

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/support/id/IdManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public List<T> findAllById(@Nonnull final Iterable<ID> idsToFind)
8080
return StreamSupport
8181
.stream(idsToFind.spliterator(), false)
8282
.map(this::findById)
83-
.filter(e -> e.isPresent())
83+
.filter(Optional::isPresent)
8484
.map(Optional::get)
8585
.toList();
8686
}

spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/special/types/LazyDaoObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public boolean equals(final Object o)
5252
}
5353
final ComplexObject<Lazy<String>> that = (ComplexObject<Lazy<String>>)o;
5454
return Objects.equals(this.getId(), that.getId())
55-
&& (this.getValue() == null && that.getValue() == null)
56-
|| Objects.equals(this.getValue().get(), that.getValue().get());
55+
&& (this.getValue() == null && that.getValue() == null
56+
|| Objects.equals(this.getValue().get(), that.getValue().get()));
5757
}
5858
}

0 commit comments

Comments
 (0)