cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl CachingPointProcessingPipeline.java
Date Thu, 28 Aug 2003 06:09:29 GMT
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);
  
  
  

Mime
View raw message