cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/acting AuthAction.java
Date Tue, 13 Aug 2002 15:33:33 GMT
cziegeler    2002/08/13 08:33:33

  Modified:    src/scratchpad/src/org/apache/cocoon/sunshine/sunrise Tag:
                        cocoon_2_0_3_branch SunRise.java
               src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/acting
                        Tag: cocoon_2_0_3_branch AuthAction.java
  Log:
  Reduce map creation as suggest by Per Kreipke [per@onclave.com]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.4   +4 -2      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Attic/SunRise.java
  
  Index: SunRise.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Attic/SunRise.java,v
  retrieving revision 1.5.2.3
  retrieving revision 1.5.2.4
  diff -u -r1.5.2.3 -r1.5.2.4
  --- SunRise.java	9 Aug 2002 06:21:40 -0000	1.5.2.3
  +++ SunRise.java	13 Aug 2002 15:33:33 -0000	1.5.2.4
  @@ -1518,6 +1518,8 @@
           return this.createParameters(null, this.handlerName, path, this.applicationName);
       }
   
  +    protected static final Map EMPTY_MAP = Collections.unmodifiableMap(new TreeMap());
  +
       /**
        * Create a map for the actions
        * The result is cached!
  @@ -1526,7 +1528,7 @@
       throws ProcessingException {
           if (this.handler == null) {
               // this is only a fallback
  -            return new HashMap();
  +            return EMPTY_MAP;
           }
           SessionContext context = this.getSunRiseSessionContext(false);
           Map map = (Map)context.getAttribute("cachedmap_" + this.handler.getName());
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +2 -2      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/acting/Attic/AuthAction.java
  
  Index: AuthAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/acting/Attic/AuthAction.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- AuthAction.java	22 Feb 2002 06:57:18 -0000	1.2
  +++ AuthAction.java	13 Aug 2002 15:33:33 -0000	1.2.2.1
  @@ -126,7 +126,7 @@
                   if (initialized == false) {
                       map = sunRise.createMap();
                   } else {
  -                    map = new HashMap();
  +                    map = EMPTY_MAP;
                   }
               }
           } finally {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message