Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Forked from gunnarmorling/ZOMG.java
Last active Dec 7, 2021
Embed
What would you like to do?
package org.kcctl.command;
/**
* A Java annotation with a Java text block including YAML inside a XML's CData.
*/
@TextBlocksRock(
"""
<?xml version="1.0"?>
<we>
<![CDATA[
can:
do: |
{
"it" : true
}
]] >
</we>
"""
)
/**
* A public class named ZOMG
*/
public class ZOMG {
}
/**
* An annotation named TextBlocksRock
*/
@interface TextBlocksRock {
String value();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment