Skip to content

Commit

Permalink
objectionary#3058: removed println
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Apr 26, 2024
1 parent 19c0521 commit 5f8d70c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import java.nio.file.Path
import java.util.stream.Collectors
import java.util.stream.Stream

println 'Verify that all java classes named with EO are public'
Path[] sources = [
basedir.toPath().resolve("target").resolve("classes"),
basedir.toPath().resolve("target").resolve("test-classes"),
Expand All @@ -44,6 +43,7 @@ Collection<JavaClass> violations = stream_of(sources)
.filter (clazz -> {
return !clazz.isPublic()
})
.map (clazz -> clazz.getClassName())
.collect(Collectors.toList())
if (!violations.isEmpty()) {
throw new IllegalStateException(
Expand All @@ -55,17 +55,13 @@ if (!violations.isEmpty()) {
}

static Stream<Path> stream_of(Path[] paths) {
println("start")
Stream<Path> accum = Stream.empty()
println("mid")
for (path in paths) {
accum = Stream.concat(
accum,
Files.walk(path)
)
println("mid")
}
println("finish")
return accum
}

Expand Down

0 comments on commit 5f8d70c

Please sign in to comment.