Skip to content

method.return

Override method return types.

Usage

properties
method.return=groovy:it.ann("com.example.CustomReturn")?.value()

Example

properties
# Use annotation value as return type
method.return=groovy:it.ann("com.example.CustomReturn")?.value()

See also: method.return.main for setting the primary return type when multiple exist.

Released under the Apache-2.0 License.