Author: markt Date: Fri Oct 12 08:21:27 2012 New Revision: 1397464 URL: http://svn.apache.org/viewvc?rev=1397464&view=rev Log: Clean-up - Servlet 3.0 Javadoc - line-length
Modified: tomcat/trunk/java/javax/servlet/http/Cookie.java tomcat/trunk/java/javax/servlet/http/HttpServlet.java Modified: tomcat/trunk/java/javax/servlet/http/Cookie.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/Cookie.java?rev=1397464&r1=1397463&r2=1397464&view=diff ============================================================================== --- tomcat/trunk/java/javax/servlet/http/Cookie.java (original) +++ tomcat/trunk/java/javax/servlet/http/Cookie.java Fri Oct 12 08:21:27 2012 @@ -50,9 +50,6 @@ import java.util.ResourceBundle; * This class supports both the Version 0 (by Netscape) and Version 1 (by RFC * 2109) cookie specifications. By default, cookies are created using Version 0 * to ensure the best interoperability. - * - * @author Various - * @version $Version$ */ public class Cookie implements Cloneable, Serializable { @@ -395,11 +392,13 @@ public class Cookie implements Cloneable "org.apache.catalina.STRICT_SERVLET_COMPLIANCE", "false")).booleanValue(); - String fwdSlashIsSeparator = System.getProperty("org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR"); + String fwdSlashIsSeparator = System.getProperty( + "org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR"); if (fwdSlashIsSeparator == null) { FWD_SLASH_IS_SEPARATOR = STRICT_SERVLET_COMPLIANCE; } else { - FWD_SLASH_IS_SEPARATOR = Boolean.valueOf(fwdSlashIsSeparator).booleanValue(); + FWD_SLASH_IS_SEPARATOR = + Boolean.valueOf(fwdSlashIsSeparator).booleanValue(); } if (FWD_SLASH_IS_SEPARATOR) { @@ -408,7 +407,8 @@ public class Cookie implements Cloneable tspecials2 = tspecials2NoSlash; } - String strictNaming = System.getProperty("org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING"); + String strictNaming = System.getProperty( + "org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING"); if (strictNaming == null) { STRICT_NAMING = STRICT_SERVLET_COMPLIANCE; } else { @@ -452,16 +452,24 @@ public class Cookie implements Cloneable } /** - * @param httpOnly - * @since Servlet 3.0 TODO SERVLET3 - Add comments + * Sets the flag that controls if this cookie will be hidden from scripts on + * the client side. + * + * @param httpOnly The new value of the flag + * + * @since Servlet 3.0 */ public void setHttpOnly(boolean httpOnly) { this.httpOnly = httpOnly; } /** - * @return TODO - * @since Servlet 3.0 TODO SERVLET3 - Add comments + * Gets the flag that controls if this cookie will be hidden from scripts on + * the client side. + * + * @return <code>true</code> if the cookie is hidden from scripts, else + * <code>false</code> + * @since Servlet 3.0 */ public boolean isHttpOnly() { return httpOnly; Modified: tomcat/trunk/java/javax/servlet/http/HttpServlet.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpServlet.java?rev=1397464&r1=1397463&r2=1397464&view=diff ============================================================================== --- tomcat/trunk/java/javax/servlet/http/HttpServlet.java (original) +++ tomcat/trunk/java/javax/servlet/http/HttpServlet.java Fri Oct 12 08:21:27 2012 @@ -52,7 +52,7 @@ import javax.servlet.ServletResponse; * <p>There's almost no reason to override the <code>service</code> * method. <code>service</code> handles standard HTTP * requests by dispatching them to the handler methods - * for each HTTP request type (the <code>do</code><i>XXX</i> + * for each HTTP request type (the <code>do</code><i>Method</i> * methods listed above). * * <p>Likewise, there's almost no reason to override the @@ -586,7 +586,7 @@ public abstract class HttpServlet extend /** * Receives standard HTTP requests from the public * <code>service</code> method and dispatches - * them to the <code>do</code><i>XXX</i> methods defined in + * them to the <code>do</code><i>Method</i> methods defined in * this class. This method is an HTTP-specific version of the * {@link javax.servlet.Servlet#service} method. There's no * need to override this method. @@ -842,9 +842,7 @@ class NoBodyOutputStream extends Servlet } @Override - public void write(byte buf[], int offset, int len) - throws IOException - { + public void write(byte buf[], int offset, int len) throws IOException { if (len >= 0) { contentLength += len; } else { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org