From 66c8dd856bd9dd1b50199e2d05698dd60b933640 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Wed, 11 Dec 2019 12:11:14 +1100 Subject: [PATCH] [274] Corrected javadoc for Part.write(String) The javadoc for Part.write(String) contained the contradictory sentence: "Absolute paths are used as provided and are relative to getLocation()." Changed to the agreed text: "Relative paths are relative to MultipartConfigElement.getLocation(). Absolute paths are used as provided." Signed-off-by: Jan Bartel --- api/src/main/java/javax/servlet/http/Part.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/api/src/main/java/javax/servlet/http/Part.java b/api/src/main/java/javax/servlet/http/Part.java index 711fd254b..c87e41b59 100644 --- a/api/src/main/java/javax/servlet/http/Part.java +++ b/api/src/main/java/javax/servlet/http/Part.java @@ -74,12 +74,11 @@ public interface Part { * implementation to use, for example, file renaming, where possible, rather than copying all of the underlying * data, thus gaining a significant performance benefit. * - * @param fileName The location into which the uploaded part should be stored. The value may be a file name or a - * path. The actual location of the file in the filesystem is relative to - * {@link javax.servlet.MultipartConfigElement#getLocation()}. Absolute paths are used as provided - * and are relative to getLocation(). Note: that this is a system dependent string and - * URI notation may not be acceptable on all systems. For portability, this string should be - * generated with the File or Path APIs. + * @param fileName The location into which the uploaded part should be stored. Relative paths are relative to + * {@link javax.servlet.MultipartConfigElement#getLocation()}. Absolute paths are used as + * provided. Note: that this is a system dependent string and URI notation may not be + * acceptable on all systems. For portability, this string should be generated with the + * File or Path APIs. * * @throws IOException if an error occurs. */