diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-25 06:54:30 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-25 07:54:30 +0300 |
commit | 3c0c3e0a997f66821d037df641c435dda930a890 (patch) | |
tree | 152afe8c3340dafaa50562f1a21a3b2325583639 /server/src | |
parent | 40d15b32e341a38dacc24cc3ec79ab3ff0a25a50 (diff) | |
download | vaadin-framework-3c0c3e0a997f66821d037df641c435dda930a890.tar.gz vaadin-framework-3c0c3e0a997f66821d037df641c435dda930a890.zip |
Fix typos (#10071)
And use varargs in a test.
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main/java/com/vaadin/server/FileDownloader.java | 2 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Upload.java | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/server/FileDownloader.java b/server/src/main/java/com/vaadin/server/FileDownloader.java index 684e12dc6e..7ed2eb8bce 100644 --- a/server/src/main/java/com/vaadin/server/FileDownloader.java +++ b/server/src/main/java/com/vaadin/server/FileDownloader.java @@ -92,7 +92,7 @@ public class FileDownloader extends AbstractExtension { } /** - * Sets whether the content type of served resources should be overriden to + * Sets whether the content type of served resources should be overridden to * <code>application/octet-stream</code> to reduce the risk of a browser * plugin choosing to display the resource instead of downloading it. This * is by default set to <code>true</code>. diff --git a/server/src/main/java/com/vaadin/ui/Upload.java b/server/src/main/java/com/vaadin/ui/Upload.java index 4cd9ea7b82..6d689c61f4 100644 --- a/server/src/main/java/com/vaadin/ui/Upload.java +++ b/server/src/main/java/com/vaadin/ui/Upload.java @@ -193,7 +193,7 @@ public class Upload extends AbstractComponent target.addAttribute("nextid", nextid); - // Post file to this strean variable + // Post file to this stream variable target.addVariable(this, "action", getStreamVariable()); } @@ -1026,10 +1026,11 @@ public class Upload extends AbstractComponent /** * In addition to the actual file chooser, upload components have button - * that starts actual upload progress. This method is used to set a stylename - * to that button. + * that starts actual upload progress. This method is used to set a + * stylename to that button. * - * @param buttonStyleName styleName for upload components button. + * @param buttonStyleName + * styleName for upload components button. * @see #setButtonCaption(String) about when the button is shown / hidden. * @since 8.2 */ |