From d1539a3ec2e49297d358b0690d84e6319c27f93c Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 13 Aug 2012 02:46:35 +0200 Subject: prettying up the pre/post examples for FieldDefaults and ExtensionMethod --- usage_examples/experimental/ExtensionMethodExample_post.jpage | 3 ++- usage_examples/experimental/ExtensionMethodExample_pre.jpage | 3 ++- usage_examples/experimental/FieldDefaultsExample_pre.jpage | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'usage_examples') diff --git a/usage_examples/experimental/ExtensionMethodExample_post.jpage b/usage_examples/experimental/ExtensionMethodExample_post.jpage index 72a838bd..de46d776 100644 --- a/usage_examples/experimental/ExtensionMethodExample_post.jpage +++ b/usage_examples/experimental/ExtensionMethodExample_post.jpage @@ -15,6 +15,7 @@ class Extensions { public static String toTitleCase(String in) { if (in.isEmpty()) return in; - return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase(); + return "" + Character.toTitleCase(in.charAt(0)) + + in.substring(1).toLowerCase(); } } diff --git a/usage_examples/experimental/ExtensionMethodExample_pre.jpage b/usage_examples/experimental/ExtensionMethodExample_pre.jpage index 26d0ee38..b3b9f1fa 100644 --- a/usage_examples/experimental/ExtensionMethodExample_pre.jpage +++ b/usage_examples/experimental/ExtensionMethodExample_pre.jpage @@ -18,6 +18,7 @@ class Extensions { public static String toTitleCase(String in) { if (in.isEmpty()) return in; - return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase(); + return "" + Character.toTitleCase(in.charAt(0)) + + in.substring(1).toLowerCase(); } } diff --git a/usage_examples/experimental/FieldDefaultsExample_pre.jpage b/usage_examples/experimental/FieldDefaultsExample_pre.jpage index a0a38f7a..c8335832 100644 --- a/usage_examples/experimental/FieldDefaultsExample_pre.jpage +++ b/usage_examples/experimental/FieldDefaultsExample_pre.jpage @@ -3,7 +3,7 @@ import lombok.experimental.FieldDefaults; import lombok.experimental.NonFinal; import lombok.experimental.PackagePrivate; -@FieldDefaults(makeFinal = true, level=AccessLevel.PRIVATE) +@FieldDefaults(makeFinal=true, level=AccessLevel.PRIVATE) public class FieldDefaultsExample { public final int a; int b; -- cgit