You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/03/04 23:21:56 UTC

svn commit: r1078177 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java

Author: mrisaliti
Date: Fri Mar  4 22:21:55 2011
New Revision: 1078177

URL: http://svn.apache.org/viewvc?rev=1078177&view=rev
Log:
Remove some warning in ModelScreenWidget (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java?rev=1078177&r1=1078176&r2=1078177&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java Fri Mar  4 22:21:55 2011
@@ -484,7 +484,7 @@ public abstract class ModelScreenWidget 
             // if we are not sharing the scope, protect it using the MapStack
             boolean protectScope = !shareScope(context);
             if (protectScope) {
-                if (!(context instanceof MapStack)) {
+                if (!(context instanceof MapStack<?>)) {
                     context = MapStack.create(context);
                 }
 
@@ -726,7 +726,7 @@ public abstract class ModelScreenWidget 
         public void renderWidgetString(Appendable writer, Map<String, Object> context, ScreenStringRenderer screenStringRenderer) {
             boolean protectScope = !shareScope(context);
             if (protectScope) {
-                if (!(context instanceof MapStack)) {
+                if (!(context instanceof MapStack<?>)) {
                     context = MapStack.create(context);
                 }
                 UtilGenerics.<MapStack<String>>cast(context).push();
@@ -814,7 +814,7 @@ public abstract class ModelScreenWidget 
         public void renderWidgetString(Appendable writer, Map<String, Object> context, ScreenStringRenderer screenStringRenderer) throws GeneralException, IOException {
             boolean protectScope = !shareScope(context);
             if (protectScope) {
-                if (!(context instanceof MapStack)) {
+                if (!(context instanceof MapStack<?>)) {
                     context = MapStack.create(context);
                 }
                 UtilGenerics.<MapStack<String>>cast(context).push();
@@ -968,7 +968,7 @@ public abstract class ModelScreenWidget 
                 GenericValue content = null;
                 String expandedDataResourceId = getDataResourceId(context);
                 String expandedContentId = getContentId(context);
-                if (!(context instanceof MapStack)) {
+                if (!(context instanceof MapStack<?>)) {
                     context = MapStack.create(context);
                 }