jsr305:enhance

Full name:

jp.skypencil:jsr305-maven-plugin:1.2-SNAPSHOT:enhance

Description:

enhance check codes

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: process-classes.

Required Parameters

Name Type Since Description
classesDirectory File - Place where target classes are.
Default value is: ${project.build.outputDirectory}.

Optional Parameters

Name Type Since Description
negativeCheck Setting - Setting for negative check. default is:
<configuration>
  <negativeCheck>
    <targetScope>PUBLIC</targetScope>
    <exception>java.lang.IllegalArgumentException</exception>
  </negativeCheck>
</configuration>

nullCheck Setting - Setting for null check. default is:
<configuration>
  <nullCheck>
    <targetScope>PUBLIC</targetScope>
    <level>PERMISSIVE</level>
  <exception>java.lang.IllegalArgumentException</exception>
</nullCheck>
</configuration>

regexCheck Setting - Setting for regex check. default is:
<configuration>
  <regexCheck>
    <targetScope>PUBLIC</targetScope>
    <exception>java.lang.IllegalArgumentException</exception>
  </regexCheck>
</configuration>

Parameter Details

classesDirectory:

Place where target classes are.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${jsr305.classes}
  • Default: ${project.build.outputDirectory}

negativeCheck:

Setting for negative check. default is:
<configuration>
  <negativeCheck>
    <targetScope>PUBLIC</targetScope>
    <exception>java.lang.IllegalArgumentException</exception>
  </negativeCheck>
</configuration>
  • Type: jp.skypencil.jsr305.negative.Setting
  • Required: No

nullCheck:

Setting for null check. default is:
<configuration>
  <nullCheck>
    <targetScope>PUBLIC</targetScope>
    <level>PERMISSIVE</level>
  <exception>java.lang.IllegalArgumentException</exception>
</nullCheck>
</configuration>
  • Type: jp.skypencil.jsr305.nullable.Setting
  • Required: No

regexCheck:

Setting for regex check. default is:
<configuration>
  <regexCheck>
    <targetScope>PUBLIC</targetScope>
    <exception>java.lang.IllegalArgumentException</exception>
  </regexCheck>
</configuration>
  • Type: jp.skypencil.jsr305.regex.Setting
  • Required: No