@@ -44,11 +44,11 @@ public final class ArtifactFactoryConfig extends AbstractElement {
4444 @ XmlAttribute (name = "class" )
4545 private String factoryClassName ;
4646
47- @ NotNull
47+ @ Nullable
4848 @ XmlAttribute (name = "project" )
4949 private String project ;
5050
51- @ NotNull
51+ @ Nullable
5252 @ XmlAttribute (name = "folder" )
5353 private String folder ;
5454
@@ -78,12 +78,12 @@ public final class ArtifactFactoryConfig extends AbstractElement {
7878 * @param factoryClassName
7979 * Full qualified factory class name.
8080 * @param project
81- * Name of the target project.
81+ * Name of the target project (optional) .
8282 * @param folder
83- * Name of the target folder inside the project.
83+ * Name of the target folder inside the project (optional) .
8484 */
85- public ArtifactFactoryConfig (final String artifact , final String factoryClassName , final String project ,
86- final String folder ) {
85+ public ArtifactFactoryConfig (final String artifact , final String factoryClassName , @ Nullable final String project ,
86+ @ Nullable final String folder ) {
8787 this (artifact , factoryClassName , project , folder , null );
8888 }
8989
@@ -95,14 +95,14 @@ public ArtifactFactoryConfig(final String artifact, final String factoryClassNam
9595 * @param factoryClassName
9696 * Full qualified factory class name.
9797 * @param project
98- * Name of the target project.
98+ * Name of the target project (optional) .
9999 * @param folder
100- * Name of the target folder inside the project.
100+ * Name of the target folder inside the project (optional) .
101101 * @param incremental
102102 * If the factory executes on an incremental build TRUE (default), else FALSE.
103103 */
104- public ArtifactFactoryConfig (final String artifact , final String factoryClassName , final String project , // NOSONAR
105- final String folder , @ Nullable final Boolean incremental ) {
104+ public ArtifactFactoryConfig (final String artifact , final String factoryClassName , @ Nullable final String project , // NOSONAR
105+ @ Nullable final String folder , @ Nullable final Boolean incremental ) {
106106 super ();
107107 this .artifact = artifact ;
108108 this .factoryClassName = factoryClassName ;
@@ -132,17 +132,19 @@ public final String getFactoryClassName() {
132132 /**
133133 * Returns the name of the target project.
134134 *
135- * @return Project name.
135+ * @return Project name or <code>null</code> if not set .
136136 */
137+ @ Nullable
137138 public final String getProject () {
138139 return project ;
139140 }
140141
141142 /**
142143 * Returns the name of the target folder inside the project.
143144 *
144- * @return Folder name.
145+ * @return Folder name or <code>null</code> if not set .
145146 */
147+ @ Nullable
146148 public final String getFolder () {
147149 return folder ;
148150 }
0 commit comments