aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-12-03 21:17:05 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-12-11 22:40:48 +0100
commit9639bc2ff466e94f629d81ff00d8cab654f3ab19 (patch)
tree99cfe2f729e49d06642774c55b500452f2b9992b /test/transform/resource/before
parent54c30d98c06277f42d2098d4f0731580b9f095e9 (diff)
downloadlombok-9639bc2ff466e94f629d81ff00d8cab654f3ab19.tar.gz
lombok-9639bc2ff466e94f629d81ff00d8cab654f3ab19.tar.bz2
lombok-9639bc2ff466e94f629d81ff00d8cab654f3ab19.zip
[pretty] Make the tests work with the new delombok formatting options.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/ConstructorsWithAccessors.java8
-rw-r--r--test/transform/resource/before/ExtensionMethodPlain.java36
2 files changed, 22 insertions, 22 deletions
diff --git a/test/transform/resource/before/ConstructorsWithAccessors.java b/test/transform/resource/before/ConstructorsWithAccessors.java
index d242317d..e5d2939f 100644
--- a/test/transform/resource/before/ConstructorsWithAccessors.java
+++ b/test/transform/resource/before/ConstructorsWithAccessors.java
@@ -1,6 +1,6 @@
@lombok.AllArgsConstructor @lombok.experimental.Accessors(prefix={"p", "_"}) class ConstructorsWithAccessors {
- int plower;
- int pUpper;
- int _huh;
- int __huh2;
+ int plower;
+ int pUpper;
+ int _huh;
+ int __huh2;
}
diff --git a/test/transform/resource/before/ExtensionMethodPlain.java b/test/transform/resource/before/ExtensionMethodPlain.java
index 8c2f369d..f954d01f 100644
--- a/test/transform/resource/before/ExtensionMethodPlain.java
+++ b/test/transform/resource/before/ExtensionMethodPlain.java
@@ -2,22 +2,22 @@ import lombok.experimental.ExtensionMethod;
@ExtensionMethod({java.util.Arrays.class, ExtensionMethodPlain.Extensions.class})
class ExtensionMethodPlain {
- public String test() {
- int[] intArray = {5, 3, 8, 2};
- intArray.sort();
-
- String iAmNull = null;
- return iAmNull.or("hELlO, WORlD!".toTitleCase());
- }
-
- static class Extensions {
- public static <T> T or(T obj, T ifNull) {
- return obj != null ? obj : ifNull;
- }
-
- public static String toTitleCase(String in) {
- if (in.isEmpty()) return in;
- return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase();
- }
- }
+ public String test() {
+ int[] intArray = {5, 3, 8, 2};
+ intArray.sort();
+
+ String iAmNull = null;
+ return iAmNull.or("hELlO, WORlD!".toTitleCase());
+ }
+
+ static class Extensions {
+ public static <T> T or(T obj, T ifNull) {
+ return obj != null ? obj : ifNull;
+ }
+
+ public static String toTitleCase(String in) {
+ if (in.isEmpty()) return in;
+ return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase();
+ }
+ }
}