GroovyParamsChecker

Automatic Groovy parameter checker. How to use: 1. Annotate your Groovy classes with @ParamsNotNullNotEmpty; 2. At compile time, code will be added into each of your methods to check each parameter to make sure it is not null and in the case of Collections, Maps and Strings, it is not empty; 3. At run time, if a parameter is null or empty, it will throw an IllegalArgumentException with details about the null or empty parameter. To disable the annotation at compile time, set the ParamsNotNullNotEmpty.NoOpMode flag to true.

License

License

Categories

Categories

Groovy Languages
GroupId

GroupId

com.faceture
ArtifactId

ArtifactId

groovy-params-checker
Last Version

Last Version

1.0.28
Release Date

Release Date

Type

Type

jar
Description

Description

GroovyParamsChecker
Automatic Groovy parameter checker. How to use: 1. Annotate your Groovy classes with @ParamsNotNullNotEmpty; 2. At compile time, code will be added into each of your methods to check each parameter to make sure it is not null and in the case of Collections, Maps and Strings, it is not empty; 3. At run time, if a parameter is null or empty, it will throw an IllegalArgumentException with details about the null or empty parameter. To disable the annotation at compile time, set the ParamsNotNullNotEmpty.NoOpMode flag to true.
Project URL

Project URL

https://github.com/xnickmx/params-checker

Download groovy-params-checker

How to add to project

<!-- https://jarcasting.com/artifacts/com.faceture/groovy-params-checker/ -->
<dependency>
    <groupId>com.faceture</groupId>
    <artifactId>groovy-params-checker</artifactId>
    <version>1.0.28</version>
</dependency>
// https://jarcasting.com/artifacts/com.faceture/groovy-params-checker/
implementation 'com.faceture:groovy-params-checker:1.0.28'
// https://jarcasting.com/artifacts/com.faceture/groovy-params-checker/
implementation ("com.faceture:groovy-params-checker:1.0.28")
'com.faceture:groovy-params-checker:jar:1.0.28'
<dependency org="com.faceture" name="groovy-params-checker" rev="1.0.28">
  <artifact name="groovy-params-checker" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.faceture', module='groovy-params-checker', version='1.0.28')
)
libraryDependencies += "com.faceture" % "groovy-params-checker" % "1.0.28"
[com.faceture/groovy-params-checker "1.0.28"]

Dependencies

compile (1)

Group / Artifact Type Version
org.codehaus.groovy : groovy-all jar 2.0.8

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

Versions

Version
1.0.28
1.0.27