tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1670286 - /tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java
Date Tue, 31 Mar 2015 09:07:08 GMT
Author: markt
Date: Tue Mar 31 09:07:08 2015
New Revision: 1670286

URL: http://svn.apache.org/r1670286
Log:
Longer lines to improve readability

Modified:
    tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java

Modified: tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java?rev=1670286&r1=1670285&r2=1670286&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java (original)
+++ tomcat/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java Tue Mar 31 09:07:08
2015
@@ -51,8 +51,7 @@ public class ScopedAttributeELResolver e
             context.setPropertyResolved(base, property);
             if (property != null) {
                 String key = property.toString();
-                PageContext page = (PageContext) context
-                        .getContext(JspContext.class);
+                PageContext page = (PageContext) context.getContext(JspContext.class);
                 result = page.findAttribute(key);
 
                 if (result == null) {
@@ -86,8 +85,7 @@ public class ScopedAttributeELResolver e
     }
 
     @Override
-    public Class<Object> getType(ELContext context, Object base,
-            Object property) {
+    public Class<Object> getType(ELContext context, Object base, Object property) {
         if (context == null) {
             throw new NullPointerException();
         }
@@ -101,8 +99,7 @@ public class ScopedAttributeELResolver e
     }
 
     @Override
-    public void setValue(ELContext context, Object base, Object property,
-            Object value) {
+    public void setValue(ELContext context, Object base, Object property, Object value) {
         if (context == null) {
             throw new NullPointerException();
         }
@@ -111,8 +108,7 @@ public class ScopedAttributeELResolver e
             context.setPropertyResolved(base, property);
             if (property != null) {
                 String key = property.toString();
-                PageContext page = (PageContext) context
-                        .getContext(JspContext.class);
+                PageContext page = (PageContext) context.getContext(JspContext.class);
                 int scope = page.getAttributesScope(key);
                 if (scope != 0) {
                     page.setAttribute(key, value, scope);
@@ -137,8 +133,7 @@ public class ScopedAttributeELResolver e
     }
 
     @Override
-    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context,
-            Object base) {
+    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object
base) {
 
         PageContext ctxt = (PageContext) context.getContext(JspContext.class);
         List<FeatureDescriptor> list = new ArrayList<>();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message