From 50166f656ff5f826fcb1c43611472f9ce9e4964e Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 3 Jun 2010 18:28:01 +0000 Subject: [PATCH] Correct Javadoc Fix whitespace git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@951100 13f79535-47bb-0310-9956-ffa450edef68 --- .../coyote/http11/AbstractHttp11Processor.java | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/java/org/apache/coyote/http11/AbstractHttp11Processor.java b/java/org/apache/coyote/http11/AbstractHttp11Processor.java index 894e1cc33..ced5b183e 100644 --- a/java/org/apache/coyote/http11/AbstractHttp11Processor.java +++ b/java/org/apache/coyote/http11/AbstractHttp11Processor.java @@ -330,7 +330,7 @@ public class AbstractHttp11Processor { /** - * Return the list of restricted user agents. + * Return the list of compressable mime-types. */ public String[] findCompressableMimeTypes() { return (compressableMimeTypes); @@ -614,8 +614,6 @@ public class AbstractHttp11Processor { return adapter; } - - /** * Check for compression @@ -677,6 +675,7 @@ public class AbstractHttp11Processor { return false; } + /** * Specialized utility method: find a sequence of lower case bytes inside * a ByteChunk. @@ -688,23 +687,23 @@ public class AbstractHttp11Processor { int start = bc.getStart(); int end = bc.getEnd(); - // Look for first char - int srcEnd = b.length; + // Look for first char + int srcEnd = b.length; - for (int i = start; i <= (end - srcEnd); i++) { - if (Ascii.toLower(buff[i]) != first) continue; - // found first char, now look for a match + for (int i = start; i <= (end - srcEnd); i++) { + if (Ascii.toLower(buff[i]) != first) continue; + // found first char, now look for a match int myPos = i+1; - for (int srcPos = 1; srcPos < srcEnd; ) { + for (int srcPos = 1; srcPos < srcEnd; ) { if (Ascii.toLower(buff[myPos++]) != b[srcPos++]) - break; + break; if (srcPos == srcEnd) return i - start; // found it + } } - } - return -1; - + return -1; } + /** * Determine if we must drop the connection because of the HTTP status * code. Use the same list of codes as Apache/httpd. -- 2.11.0