Skip to content

Commit

Permalink
feat: remove unecessary imports
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed May 2, 2023
1 parent 1436c23 commit e40cb97
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private String newRandomDocumentCollection() {
}

private DocumentCondition newRandomDocumentCondition() {
return DocumentCondition.eq(UUID.randomUUID().toString().toString(), UUID.randomUUID().toString().toString());
return DocumentCondition.eq(UUID.randomUUID().toString(), UUID.randomUUID().toString());
}

@BeforeEach
Expand All @@ -77,7 +77,7 @@ void shouldAcceptToSelectOneValidDocument() {

@Test
void shouldAcceptToSelectAnEmptyArrayOfDocuments() {
assertSame(builder, builder.select(new String[]{}));
assertSame(builder, builder.select());
}

@Test
Expand All @@ -102,7 +102,7 @@ void shouldAcceptToSortOneValidSortReference() {

@Test
void shouldAcceptToSortAnEmptyArrayOfSortRef() {
assertSame(builder, builder.sort(new Sort[]{}));
assertSame(builder, builder.sort());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


import java.math.BigDecimal;
import java.util.Objects;

public record Money(String currency, BigDecimal value) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public enum RepositoryType {
ORDER_BY("");

private static final Predicate<Class<?>> IS_REPOSITORY_METHOD = Predicate.<Class<?>>isEqual(CrudRepository.class)
.or(Predicate.<Class<?>>isEqual(PageableRepository.class));
.or(Predicate.isEqual(PageableRepository.class));

private static final Set<RepositoryType> KEY_WORLD_METHODS = EnumSet.of(FIND_BY, DELETE_BY, COUNT_BY, EXISTS_BY);
private final String keyword;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Queue;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.Deque;
import java.util.List;
import java.util.NavigableSet;
import java.util.Objects;
import java.util.Optional;
import java.util.Queue;
import java.util.Set;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


import java.math.BigDecimal;
import java.util.Objects;

public record Money(String currency, BigDecimal value) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void shouldExecuteQueryCount2() {

@Test
public void shouldExecuteQueryProperties() {
List<Object> properties = executor.<Object>executeGremlin(graph.traversal(), "g.V().values()")
List<Object> properties = executor.executeGremlin(graph.traversal(), "g.V().values()")
.collect(toList());
assertFalse(properties.isEmpty());
assertEquals(4, properties.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


import java.math.BigDecimal;
import java.util.Objects;

public record Money(String currency, BigDecimal value) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


import java.math.BigDecimal;
import java.util.Objects;

public record Money(String currency, BigDecimal value) {

Expand Down

0 comments on commit e40cb97

Please sign in to comment.