Commits

Jan Lahoda committed b8f8659

Having multiple @DataBoundConstructors is apparently not a good idea - trying different approach.

Comments (0)

Files changed (1)

remoting/server/hudson/src/main/java/org/netbeans/modules/jackpot30/hudson/IndexingBuilder.java

     }
 
     @DataBoundConstructor
-    public IndexingBuilder(String projectName, String toolName, String indexSubDirectory) {
-        this(projectName, toolName, indexSubDirectory, "");
-    }
-
-    @DataBoundConstructor
     public IndexingBuilder(String projectName, String toolName, String indexSubDirectory, String ignorePatterns) {
         this.projectName = projectName;
         this.toolName = toolName;
         this.indexSubDirectory = indexSubDirectory;
-        this.ignorePatterns = ignorePatterns;
+        this.ignorePatterns = ignorePatterns != null ? ignorePatterns : "";
     }
 
     public String getProjectName() {