Skip to content

Instantly share code, notes, and snippets.

@0x1306e6d
Created July 1, 2016 04:37
Show Gist options
  • Save 0x1306e6d/95d31c8ae2607f3dcf29dee033d7db15 to your computer and use it in GitHub Desktop.
Save 0x1306e6d/95d31c8ae2607f3dcf29dee033d7db15 to your computer and use it in GitHub Desktop.
#set($paramName = $helper.getParamName($field, $project))
public ##
#if($field.modifierStatic)
static void ##
#else
$classname ##
#end
$StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))($field.type $paramName) {
#if ($field.name == $paramName)
#if (!$field.modifierStatic)
this.##
#else
$classname.##
#end
#end
$field.name = $paramName;
#if(!$field.modifierStatic)
return this;
#end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment