Skip to content

Commit

Permalink
refactor: Simplify lambda blocks to expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and app committed Aug 17, 2024
1 parent 3d8fbd0 commit 77eda2c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ public void addClass(JavaType type) {

public boolean isEmbeddableClass(@Nullable JavaType type) {
return definedEmbeddableClasses.stream()
.anyMatch(emb -> {
return type.equals(emb)
|| type.isAssignableFrom(Pattern.compile(((JavaType.Class) emb).getFullyQualifiedName()));
});
.anyMatch(emb -> type.equals(emb)
|| type.isAssignableFrom(Pattern.compile(((JavaType.Class) emb).getFullyQualifiedName())));
}
}
}

0 comments on commit 77eda2c

Please sign in to comment.