Revision: 1370
          http://stripes.svn.sourceforge.net/stripes/?rev=1370&view=rev
Author:   bengunter
Date:     2010-12-28 19:05:04 +0000 (Tue, 28 Dec 2010)

Log Message:
-----------
Fixed STS-786: Release 1.5.4 won't compile with Java 5

Modified Paths:
--------------
    branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java
===================================================================
--- 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java    
    2010-12-05 05:28:14 UTC (rev 1369)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java    
    2010-12-28 19:05:04 UTC (rev 1370)
@@ -43,7 +43,8 @@
      * instance of {...@link LayoutRenderTag}.
      */
     public boolean isChildOfRender() {
-        return getLayoutParent() instanceof LayoutRenderTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutRenderTag;
     }
 
     /**
@@ -51,7 +52,8 @@
      * instance of {...@link LayoutDefinitionTag}.
      */
     public boolean isChildOfDefinition() {
-        return getLayoutParent() instanceof LayoutDefinitionTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutDefinitionTag;
     }
 
     /**
@@ -59,7 +61,8 @@
      * instance of {...@link LayoutComponentTag}.
      */
     public boolean isChildOfComponent() {
-        return getLayoutParent() instanceof LayoutComponentTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutComponentTag;
     }
 
     /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to