Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ca162a

Browse files
authoredMar 29, 2025
deps: Refactor dependencies (iluwatar#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
1 parent 371439a commit 0ca162a

File tree

1,863 files changed

+14487
-17716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,863 files changed

+14487
-17716
lines changed
 

‎abstract-document/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
</parent>
3535
<artifactId>abstract-document</artifactId>
3636
<dependencies>
37+
<dependency>
38+
<groupId>org.slf4j</groupId>
39+
<artifactId>slf4j-api</artifactId>
40+
</dependency>
41+
<dependency>
42+
<groupId>ch.qos.logback</groupId>
43+
<artifactId>logback-classic</artifactId>
44+
</dependency>
3745
<dependency>
3846
<groupId>org.junit.jupiter</groupId>
3947
<artifactId>junit-jupiter-engine</artifactId>

‎abstract-document/src/main/java/com/iluwatar/abstractdocument/AbstractDocument.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
import java.util.function.Function;
3232
import java.util.stream.Stream;
3333

34-
/**
35-
* Abstract implementation of Document interface.
36-
*/
34+
/** Abstract implementation of Document interface. */
3735
public abstract class AbstractDocument implements Document {
3836

3937
private final Map<String, Object> documentProperties;
@@ -57,12 +55,12 @@ public Object get(String key) {
5755
@Override
5856
public <T> Stream<T> children(String key, Function<Map<String, Object>, T> childConstructor) {
5957
return Stream.ofNullable(get(key))
60-
.filter(Objects::nonNull)
61-
.map(el -> (List<Map<String, Object>>) el)
62-
.findAny()
63-
.stream()
64-
.flatMap(Collection::stream)
65-
.map(childConstructor);
58+
.filter(Objects::nonNull)
59+
.map(el -> (List<Map<String, Object>>) el)
60+
.findAny()
61+
.stream()
62+
.flatMap(Collection::stream)
63+
.map(childConstructor);
6664
}
6765

6866
@Override
@@ -100,5 +98,4 @@ private String buildStringRepresentation() {
10098
builder.append("]");
10199
return builder.toString();
102100
}
103-
104101
}

0 commit comments

Comments
 (0)
Please sign in to comment.