hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1616752 - in /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message: BasicHeaderValueParser.java TokenParser.java
Date Fri, 08 Aug 2014 13:22:43 GMT
Author: olegk
Date: Fri Aug  8 13:22:43 2014
New Revision: 1616752

URL: http://svn.apache.org/r1616752
Log:
Javadoc updates

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeaderValueParser.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/TokenParser.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeaderValueParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeaderValueParser.java?rev=1616752&r1=1616751&r2=1616752&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeaderValueParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeaderValueParser.java
Fri Aug  8 13:22:43 2014
@@ -64,6 +64,9 @@ public class BasicHeaderValueParser impl
 
     private final static char PARAM_DELIMITER                = ';';
     private final static char ELEM_DELIMITER                 = ',';
+
+    // IMPORTANT!
+    // These private static variables must be treated as immutable and never exposed outside
this class
     private static final BitSet TOKEN_DELIMS = TokenParser.INIT_BITSET('=', PARAM_DELIMITER,
ELEM_DELIMITER);
     private static final BitSet VALUE_DELIMS = TokenParser.INIT_BITSET(PARAM_DELIMITER, ELEM_DELIMITER);
 

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/TokenParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/TokenParser.java?rev=1616752&r1=1616751&r2=1616752&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/TokenParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/TokenParser.java
Fri Aug  8 13:22:43 2014
@@ -29,6 +29,7 @@ package org.apache.http.message;
 
 import java.util.BitSet;
 
+import org.apache.http.annotation.Immutable;
 import org.apache.http.util.CharArrayBuffer;
 
 /**
@@ -39,6 +40,7 @@ import org.apache.http.util.CharArrayBuf
  *
  * @since 4.4
  */
+@Immutable
 public class TokenParser {
 
     public static BitSet INIT_BITSET(final int ... b) {



Mime
View raw message