jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edgarp...@apache.org
Subject svn commit: r448024 - /jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java
Date Wed, 20 Sep 2006 01:28:46 GMT
Author: edgarpoce
Date: Tue Sep 19 18:28:45 2006
New Revision: 448024

URL: http://svn.apache.org/viewvc?view=rev&rev=448024
Log:
keys might not be of type string

Modified:
    jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java

Modified: jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java?view=diff&rev=448024&r1=448023&r2=448024
==============================================================================
--- jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java
(original)
+++ jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/web/JcrServletWebContext.java
Tue Sep 19 18:28:45 2006
@@ -77,8 +77,8 @@
 		}
 
 		// lookup in the underlying map
-		if (super.get(key)!=null) {
-			return super.get(key) ;
+		if (super.get(key) != null) {
+			return super.get(key);
 		}
 
 		// lookup in request parameters
@@ -88,22 +88,21 @@
 		}
 
 		// lookup in request attributes
-		if (key instanceof String && this.getRequestScope().get(key) != null) {
+		if (this.getRequestScope().get(key) != null) {
 			return this.getRequestScope().get(key);
 		}
 
 		// lookup in session attributes
-		if (key instanceof String && this.getSessionScope().get(key) != null) {
+		if (this.getSessionScope().get(key) != null) {
 			return this.getSessionScope().get(key);
 		}
 
 		// lookup in application attributes
-		if (key instanceof String
-				&& this.getApplicationScope().get(key) != null) {
-			return this.getSessionScope().get(key);
+		if (this.getApplicationScope().get(key) != null) {
+			return this.getApplicationScope().get(key);
 		}
-		
-		return null ;
+
+		return null;
 
 	}
 }



Mime
View raw message