Java: Move method StringUtil.toIndentedString to model

Closes #1701
This commit is contained in:
xhh
2015-12-29 12:09:54 +08:00
parent 3a2447634c
commit 3d4b5ff1c7
45 changed files with 658 additions and 440 deletions

View File

@@ -39,13 +39,4 @@ public class StringUtil {
}
return out.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
public static String toIndentedString(Object o) {
if (o == null) return "null";
return o.toString().replace("\n", "\n ");
}
}