Last active
November 26, 2019 13:28
-
-
Save goldmann/5edf85e44578c8a725f6dc761c7574b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Grapes([ | |
@Grab('org.yaml:snakeyaml:1.25') | |
]) | |
import org.yaml.snakeyaml.constructor.Constructor | |
import org.yaml.snakeyaml.nodes.NodeId | |
import org.yaml.snakeyaml.nodes.MappingNode | |
class SelectiveConstructor extends Constructor { | |
SelectiveConstructor() { | |
new ConstructProduct() | |
} | |
class ConstructProduct extends Constructor.ConstructMapping { | |
} | |
} | |
new SelectiveConstructor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failing with:
Similar to: https://stackoverflow.com/questions/25656479/looking-to-extend-inner-classes-in-groovy