Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 79848 invoked from network); 28 Aug 2003 06:09:46 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Aug 2003 06:09:46 -0000 Received: (qmail 91557 invoked by uid 500); 28 Aug 2003 06:09:20 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 91436 invoked by uid 500); 28 Aug 2003 06:09:17 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 91337 invoked by uid 500); 28 Aug 2003 06:09:15 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 91330 invoked from network); 28 Aug 2003 06:09:15 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 28 Aug 2003 06:09:15 -0000 Received: (qmail 79688 invoked by uid 1260); 28 Aug 2003 06:09:29 -0000 Date: 28 Aug 2003 06:09:29 -0000 Message-ID: <20030828060929.79687.qmail@minotaur.apache.org> From: cziegeler@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl CachingPointProcessingPipeline.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N cziegeler 2003/08/27 23:09:29 Modified: src/java/org/apache/cocoon/components/pipeline/impl CachingPointProcessingPipeline.java Log: Code formatting Revision Changes Path 1.4 +25 -25 cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl/CachingPointProcessingPipeline.java Index: CachingPointProcessingPipeline.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl/CachingPointProcessingPipeline.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- CachingPointProcessingPipeline.java 7 Aug 2003 08:52:15 -0000 1.3 +++ CachingPointProcessingPipeline.java 28 Aug 2003 06:09:29 -0000 1.4 @@ -219,18 +219,18 @@ ((CachingOutputStream)os).getContent()); this.cache.store(this.toCacheKey.copy(), response); - // - // Scan back along the pipelineCacheKey for - // for any cachepoint(s) - // - this.toCacheKey.removeUntilCachePoint(); - - // - // adjust the validities object - // to reflect the new length of the pipeline cache key. - // - // REVISIT: Is it enough to simply reduce the length of the validities array? - // + // + // Scan back along the pipelineCacheKey for + // for any cachepoint(s) + // + this.toCacheKey.removeUntilCachePoint(); + + // + // adjust the validities object + // to reflect the new length of the pipeline cache key. + // + // REVISIT: Is it enough to simply reduce the length of the validities array? + // if (this.toCacheKey.size()>0) { SourceValidity[] copy = new SourceValidity[this.toCacheKey.size()]; System.arraycopy(this.toCacheSourceValidities, 0, @@ -316,8 +316,8 @@ while ( itt.hasNext() ) { next = (XMLConsumer) itt.next(); - // if we have cacheable transformers, - // check the tranformers for cachepoints + // if we have cacheable transformers, + // check the tranformers for cachepoints if (cacheableTransformerCount > 0) { if ( (this.isCachePoint.get(currentTransformerIndex) != null) && ((Boolean)this.isCachePoint.get(currentTransformerIndex)).booleanValue()) { @@ -330,8 +330,8 @@ } - // Serializer is not cacheable, - // but we have the longest cacheable key. Do default longest key caching + // Serializer is not cacheable, + // but we have the longest cacheable key. Do default longest key caching if (localXMLSerializer != null) { if (cacheableTransformerCount == 0) { next = new XMLTeePipe(next, localXMLSerializer); @@ -349,15 +349,15 @@ next = super.lastConsumer; - // if the serializer is not cacheable, but all the transformers are: - // (this is default longest key caching) + // if the serializer is not cacheable, but all the transformers are: + // (this is default longest key caching) if (localXMLSerializer != null) { next = new XMLTeePipe(next, localXMLSerializer); this.xmlSerializerArray.add(localXMLSerializer); localXMLSerializer = null; } - // else if the serializer is cacheable and has cocoon views + // else if the serializer is cacheable and has cocoon views else if ((currentTransformerIndex == this.firstNotCacheableTransformerIndex) && this.nextIsCachePoint) { cachePointXMLSerializer = ((XMLSerializer)this.manager.lookup( XMLSerializer.ROLE )); @@ -381,8 +381,8 @@ if (cacheableTransformerCount >= this.firstProcessedTransformerIndex) { - // if we have cacheable transformers left, - // then check the tranformers for cachepoints + // if we have cacheable transformers left, + // then check the tranformers for cachepoints if (cacheableTransformerCount < this.firstNotCacheableTransformerIndex) { if ( !(prev instanceof XMLDeserializer) && (this.isCachePoint.get(cacheableTransformerCount) != null) && @@ -393,8 +393,8 @@ } } - // Serializer is not cacheable, - // but we have the longest cacheable key. Do default longest key caching + // Serializer is not cacheable, + // but we have the longest cacheable key. Do default longest key caching if (localXMLSerializer != null && !(prev instanceof XMLDeserializer) && cacheableTransformerCount == this.firstNotCacheableTransformerIndex) { next = new XMLTeePipe(next, localXMLSerializer); @@ -408,7 +408,7 @@ } next = super.lastConsumer; - //*all* the transformers are cacheable, but the serializer is not!! this is longest key + //*all* the transformers are cacheable, but the serializer is not!! this is longest key if (localXMLSerializer != null && !(prev instanceof XMLDeserializer)) { next = new XMLTeePipe(next, localXMLSerializer); this.xmlSerializerArray.add(localXMLSerializer);