Revision: 8870
Author: amitman...@google.com
Date: Sun Sep 26 19:46:41 2010
Log: The formatting was showing checkstyle errors in eclipse. Minor fixes
in formatting.
Patch by: amitmanjhi
Review by: cromwell...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=8870
Modified:
/trunk/user/src/com/google/gwt/requestfactory/client/impl/json/ClientJsonUtil.java
=======================================
---
/trunk/user/src/com/google/gwt/requestfactory/client/impl/json/ClientJsonUtil.java
Fri Sep 24 19:41:56 2010
+++
/trunk/user/src/com/google/gwt/requestfactory/client/impl/json/ClientJsonUtil.java
Sun Sep 26 19:46:41 2010
@@ -74,8 +74,8 @@
@Override
public void endVisit(JsArray array, JsonContext ctx) {
if (pretty) {
- indentLevel = indentLevel
- .substring(0, indentLevel.length() - indent.length());
+ indentLevel = indentLevel.substring(0,
+ indentLevel.length() - indent.length());
sb.append('\n');
sb.append(indentLevel);
}
@@ -85,8 +85,8 @@
@Override
public void endVisit(JsonMap object, JsonContext ctx) {
if (pretty) {
- indentLevel = indentLevel
- .substring(0, indentLevel.length() - indent.length());
+ indentLevel = indentLevel.substring(0,
+ indentLevel.length() - indent.length());
sb.append('\n');
sb.append(indentLevel);
}
@@ -229,8 +229,8 @@
* we look to see that the remaining characters are only whitespace
or ']' or
* ',' or ':' or '{' or '}'. If that is so, then the text is safe for
eval.
*/
- String chktext = text
- .replaceAll("\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})", "@");
+ String chktext = text.replaceAll(
+ "\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})", "@");
chktext = chktext.replaceAll(
"\"[^\"\\\\\\n\\r]*\"|true|false|null|
-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?",
"]");
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors