]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged [11571] from 6.2
authorArtur Signell <artur.signell@itmill.com>
Fri, 9 Apr 2010 15:19:56 +0000 (15:19 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 9 Apr 2010 15:19:56 +0000 (15:19 +0000)
svn changeset:12455/svn branch:6.3

src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java

index 54695fd3dbb2b87dd80f115aeea08ca4000babb9..3ac06907579a4d940947c4464b9e3811a9c0b4a8 100644 (file)
@@ -253,7 +253,16 @@ public class JsonPaintTarget implements PaintTarget {
         return result;
     }
 
+    /**
+     * Escapes the given string so it can safely be used as a JSON string.
+     * 
+     * @param s
+     *            The string to escape
+     * @return Escaped version of the string
+     */
     static public String escapeJSON(String s) {
+        // FIXME: Move this method to another class as other classes use it
+        // also.
         if (s == null) {
             return "";
         }
@@ -1030,7 +1039,9 @@ public class JsonPaintTarget implements PaintTarget {
                     class1 = (Class<? extends Paintable>) superclass;
                 } else {
                     System.out
-                            .append("Warning: no superclass of givent has ClientWidget"
+                            .append("Warning: no superclass of "
+                                    + paintable.getClass().getName()
+                                    + " has a @ClientWidget"
                                     + " annotation. Component will not be mapped correctly on client side.");
                     break;
                 }