Added variables description in default template comments.

Fixed default constructor in template.
This commit is contained in:
Erik C. Thauvin 2016-01-28 17:30:46 -08:00
parent 35ee113a04
commit 8d6d840efb
4 changed files with 23 additions and 8 deletions

View file

@ -1,3 +1,18 @@
########################################################################################
##
## Available variables:
##
## $packageName - The package name. (string)
## $className - The class name. (string)
## $project - The project name. (string)
## $epoch - The build epoch/unix time. (long)
## $major - The major version. (int)
## $minor - The minor version. (int)
## $patch - The patch version. (int)
## $prerelease - The pre-release version. (string)
## $buildmeta - The build metadata version. (string)
##
########################################################################################
/*
* This file is automatically generated by the Semantic Version Annotation Processor.
* Do not modify this file -- YOUR CHANGES WILL BE ERASED!
@ -7,7 +22,7 @@ package ${packageName};
import java.util.Date;
/**
* This class provides semantic version information.
* This <code>${className}</code> class provides semantic version information.
*
* @author Semantic Version Annotation Processor
*/
@ -23,9 +38,9 @@ public final class ${className} {
/**
* Disables the default constructor.
*
* @throws UnsupportedOperationException if the constructor is called.
* @throws UnsupportedOperationException If the constructor is called.
*/
private GeneratedVersion()
private ${className}()
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Illegal constructor call.");
}