Add comments for Maven snippet plugin and remove spurious newlines per WW-2658. Thanks to Matthieu Chase Heimer for the patch.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@660522 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Holmes
2008-05-27 14:08:00 +00:00
parent 2c1ffa7e73
commit 36d82cbc7f
2 changed files with 4 additions and 7 deletions
@@ -18,6 +18,7 @@
* specific language governing permissions and limitations
* under the License.
*/
// START SNIPPET: entire-file
package org.apache.struts2.showcase.fileupload;
import java.io.File;
@@ -44,7 +45,6 @@ public class MultipleFileUploadUsingArrayAction extends ActionSupport {
public String[] getUploadContentType() { return this.uploadContentTypes; }
public void setUploadContentType(String[] uploadContentType) { this.uploadContentTypes = uploadContentType; }
public String upload() throws Exception {
System.out.println("\n\n upload2");
System.out.println("files:");
@@ -62,5 +62,5 @@ public class MultipleFileUploadUsingArrayAction extends ActionSupport {
System.out.println("\n\n");
return SUCCESS;
}
}
// END SNIPPET: entire-file
@@ -18,6 +18,7 @@
* specific language governing permissions and limitations
* under the License.
*/
// START SNIPPET: entire-file
package org.apache.struts2.showcase.fileupload;
import java.io.File;
import java.util.ArrayList;
@@ -57,9 +58,6 @@ public class MultipleFileUploadUsingListAction extends ActionSupport {
this.uploadContentTypes = contentTypes;
}
public String upload() throws Exception {
System.out.println("\n\n upload1");
@@ -78,6 +76,5 @@ public class MultipleFileUploadUsingListAction extends ActionSupport {
System.out.println("\n\n");
return SUCCESS;
}
}
// END SNIPPET: entire-file