Repository: incubator-juneau Updated Branches: refs/heads/master e1a505668 -> a3d7cc9af
Add missing ws() and sq() methods to SerializerGroupBuilder. Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/a3d7cc9a Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/a3d7cc9a Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/a3d7cc9a Branch: refs/heads/master Commit: a3d7cc9af5762f94442e8eaf19d1d9370be57ecb Parents: e1a5056 Author: JamesBognar <[email protected]> Authored: Sun May 21 01:28:43 2017 -0400 Committer: JamesBognar <[email protected]> Committed: Sun May 21 01:28:43 2017 -0400 ---------------------------------------------------------------------- .../juneau/serializer/SerializerGroupBuilder.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/a3d7cc9a/juneau-core/src/main/java/org/apache/juneau/serializer/SerializerGroupBuilder.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/serializer/SerializerGroupBuilder.java b/juneau-core/src/main/java/org/apache/juneau/serializer/SerializerGroupBuilder.java index a4fe6e7..f97ed7a 100644 --- a/juneau-core/src/main/java/org/apache/juneau/serializer/SerializerGroupBuilder.java +++ b/juneau-core/src/main/java/org/apache/juneau/serializer/SerializerGroupBuilder.java @@ -263,6 +263,15 @@ public class SerializerGroupBuilder { } /** + * Shortcut for calling <code>useWhitespace(<jk>true</jk>)</code>. + * + * @return This object (for method chaining). + */ + public SerializerGroupBuilder ws() { + return useWhitespace(true); + } + + /** * Sets the {@link SerializerContext#SERIALIZER_addBeanTypeProperties} property on all serializers in this group. * * @param value The new value for this property. @@ -285,6 +294,15 @@ public class SerializerGroupBuilder { } /** + * Shortcut for calling <code>quoteChar(<js>'\''</js>)</code>. + * + * @return This object (for method chaining). + */ + public SerializerGroupBuilder sq() { + return quoteChar('\''); + } + + /** * Sets the {@link SerializerContext#SERIALIZER_trimNullProperties} property on all serializers in this group. * * @param value The new value for this property.
