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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

mrisaliti
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);
                 }