generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Extract JVM comments for Enums and TypeAlias (#3082)
Closes #3061
- Loading branch information
1 parent
9840864
commit 03911ec
Showing
12 changed files
with
140 additions
and
105 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...time/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/CommentKey.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...l-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/CommentsBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package xyz.block.ftl.deployment; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
public final class CommentsBuildItem extends SimpleBuildItem { | ||
|
||
final Map<String, Collection<String>> comments; | ||
|
||
public CommentsBuildItem(Map<String, Collection<String>> comments) { | ||
this.comments = comments; | ||
} | ||
|
||
public Iterable<String> getComments(String name) { | ||
return comments.getOrDefault(name, List.of()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
|
||
import xyz.block.ftl.Enum; | ||
|
||
/** | ||
* Comment on TypeEnum | ||
*/ | ||
@Enum | ||
public interface Animal { | ||
@JsonIgnore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.