Author: markt
Date: Tue Jan 16 20:31:16 2018
New Revision: 1821304

URL: http://svn.apache.org/viewvc?rev=1821304&view=rev
Log:
Add a base class with a view to aligning and pulling up the common code where 
possible.

Added:
    tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/AbstractChunk.java
      - copied unchanged from r1821197, 
tomcat/trunk/java/org/apache/tomcat/util/buf/AbstractChunk.java
Modified:
    tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
    tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/CharChunk.java

Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java?rev=1821304&r1=1821303&r2=1821304&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java 
(original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java Tue Jan 
16 20:31:16 2018
@@ -17,7 +17,6 @@
 package org.apache.tomcat.util.buf;
 
 import java.io.IOException;
-import java.io.Serializable;
 import java.nio.ByteBuffer;
 import java.nio.CharBuffer;
 import java.nio.charset.Charset;
@@ -64,7 +63,7 @@ import java.nio.charset.StandardCharsets
  * @author Costin Manolache
  * @author Remy Maucherat
  */
-public final class ByteChunk implements Cloneable, Serializable {
+public final class ByteChunk extends AbstractChunk {
 
     private static final long serialVersionUID = 1L;
 

Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/CharChunk.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/CharChunk.java?rev=1821304&r1=1821303&r2=1821304&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/CharChunk.java 
(original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/buf/CharChunk.java Tue Jan 
16 20:31:16 2018
@@ -17,7 +17,6 @@
 package org.apache.tomcat.util.buf;
 
 import java.io.IOException;
-import java.io.Serializable;
 
 /**
  * Utilities to manipulate char chunks. While String is the easiest way to
@@ -29,7 +28,7 @@ import java.io.Serializable;
  * @author Costin Manolache
  * @author Remy Maucherat
  */
-public final class CharChunk implements Cloneable, Serializable, CharSequence {
+public final class CharChunk extends AbstractChunk implements CharSequence {
 
     private static final long serialVersionUID = 1L;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to