incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r618287 - /incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java
Date Mon, 04 Feb 2008 14:06:10 GMT
Author: fmeschbe
Date: Mon Feb  4 06:06:09 2008
New Revision: 618287

URL: http://svn.apache.org/viewvc?rev=618287&view=rev
Log:
Move construction of Bindings object to where it will be used

Modified:
    incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java

Modified: incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java?rev=618287&r1=618286&r2=618287&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java
(original)
+++ incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScript.java
Mon Feb  4 06:06:09 2008
@@ -252,7 +252,6 @@
             throw fail(scriptName, OUT, "Wrong type");
         }
 
-        Bindings bindings = new SimpleBindings();
         SlingScriptHelper sling;
 
         Object slingObject = slingBindings.get(SLING);
@@ -302,6 +301,7 @@
         }
 
         // set base variables
+        Bindings bindings = new SimpleBindings();
         bindings.put(SLING, sling);
         bindings.put(REQUEST, sling.getRequest());
         bindings.put(RESPONSE, sling.getResponse());



Mime
View raw message