[Lombok] Fix style of FILE directive in testdata

This commit is contained in:
Dmitriy Novozhilov
2022-05-24 11:04:17 +03:00
committed by teamcity
parent dcd96932aa
commit c9c24d27d7
30 changed files with 70 additions and 70 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: AccessorsTest.java
// FILE: AccessorsTest.java
import lombok.*;
import lombok.experimental.*;
@@ -44,7 +44,7 @@ public class AccessorsTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = AccessorsTest()
@@ -1,6 +1,6 @@
//KT-46529
//FILE: PrefixJava.java
// FILE: PrefixJava.java
import lombok.*;
import lombok.experimental.*;
@@ -13,7 +13,7 @@ public class PrefixJava {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
//not generated because doesn't have prefix from class level @Accessors
@@ -24,5 +24,5 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
lombok.accessors.prefix += pxa
@@ -1,4 +1,4 @@
//FILE: AccessorsTest.java
// FILE: AccessorsTest.java
import lombok.*;
import lombok.experimental.*;
@@ -41,7 +41,7 @@ public class AccessorsTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = AccessorsTest()
@@ -66,6 +66,6 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
lombok.accessors.prefix += f
lombok.accessors.prefix+=field
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -17,7 +17,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val generated = ConstructorExample(12, "sdf", true)
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -22,7 +22,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val existing: ConstructorExample = ConstructorExample("existing")
+4 -4
View File
@@ -1,4 +1,4 @@
//FILE: SuperClass.java
// FILE: SuperClass.java
import lombok.*;
import java.util.*;
@@ -11,7 +11,7 @@ public class SuperClass {
}
//FILE: ClashTest.java
// FILE: ClashTest.java
import lombok.*;
import java.util.*;
@@ -56,7 +56,7 @@ public class ClashTest extends SuperClass {
}
//FILE: ChildClass.java
// FILE: ChildClass.java
import lombok.*;
import java.util.*;
@@ -71,7 +71,7 @@ public class ChildClass extends ClashTest{
}
//FILE: test.kt
// FILE: test.kt
class KotlinChildClass : ClashTest() {
+3 -3
View File
@@ -1,4 +1,4 @@
//FILE: GetterTest.java
// FILE: GetterTest.java
import lombok.*;
@@ -17,7 +17,7 @@ public class GetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterTest()
@@ -27,6 +27,6 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
lombok.accessors.fluent=true
//lombok.accessors.chain=false
+3 -3
View File
@@ -1,4 +1,4 @@
//FILE: GetterTest.java
// FILE: GetterTest.java
import lombok.*;
import lombok.experimental.*;
@@ -20,7 +20,7 @@ public class GetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterTest()
@@ -30,6 +30,6 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
lombok.accessors.fluent=true
lombok.accessors.chain=false
+3 -3
View File
@@ -1,4 +1,4 @@
//FILE: GetterTest.java
// FILE: GetterTest.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -13,7 +13,7 @@ public class GetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterTest()
@@ -23,6 +23,6 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
#lombok config keys are case insensitive
lombok.getter.noisprefix=true
+3 -3
View File
@@ -1,4 +1,4 @@
//FILE: GetterTest.java
// FILE: GetterTest.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -13,7 +13,7 @@ public class GetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterTest()
@@ -23,5 +23,5 @@ fun box(): String {
return "OK"
}
//FILE: lombok.config
// FILE: lombok.config
lombok.getter.noIsPrefix=true
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: DataExample.java
// FILE: DataExample.java
import lombok.*;
@@ -25,7 +25,7 @@ import lombok.*;
}
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = DataExample("name")
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: GenericsTest.java
// FILE: GenericsTest.java
import lombok.*;
import java.util.*;
@@ -24,7 +24,7 @@ public class GenericsTest<A, B> {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GenericsTest<String, Boolean>()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -19,7 +19,7 @@ public class ConstructorExample<A, B> {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val generated = ConstructorExample<Long, Boolean>(12, 42L, true)
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -19,7 +19,7 @@ public class ConstructorExample<A, B> {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val generated: ConstructorExample<Long, Boolean> = ConstructorExample.of(12, 42L, true)
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: GetterTest.java
// FILE: GetterTest.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -23,7 +23,7 @@ public class GetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ClassLevelGetterTest.java
// FILE: ClassLevelGetterTest.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -21,7 +21,7 @@ public class ClassLevelGetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = ClassLevelGetterTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: FluentTest.java
// FILE: FluentTest.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -25,7 +25,7 @@ public class FluentTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = FluentTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -20,7 +20,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val existing = ConstructorExample("existing")
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -20,7 +20,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val existing: ConstructorExample = ConstructorExample("existing")
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: GetterSetterExample.java
// FILE: GetterSetterExample.java
import lombok.*;
import org.jetbrains.annotations.*;
@@ -12,7 +12,7 @@ public class GetterSetterExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterSetterExample()
@@ -1,4 +1,4 @@
//FILE: Anno.java
// FILE: Anno.java
import java.lang.*;
import java.lang.annotation.*;
@@ -9,7 +9,7 @@ public @interface Anno {
String value() default "sdf";
}
//FILE: Foo.java
// FILE: Foo.java
import lombok.*;
import org.jetbrains.annotations.*;
@@ -20,7 +20,7 @@ public class Foo {
}
//FILE: test.kt
// FILE: test.kt
@Anno
fun box(): String {
+3 -3
View File
@@ -1,18 +1,18 @@
//KT-47455
//FILE: ParentClass.java
// FILE: ParentClass.java
public abstract class ParentClass {
int id;
}
//FILE: ChildClass.java
// FILE: ChildClass.java
import lombok.*;
@RequiredArgsConstructor
public class ChildClass extends ParentClass {}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
ChildClass::class
return "OK"
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -31,7 +31,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val generated = ConstructorExample("foo", true)
@@ -1,4 +1,4 @@
//FILE: ConstructorExample.java
// FILE: ConstructorExample.java
import lombok.*;
@@ -33,7 +33,7 @@ public class ConstructorExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val generated = ConstructorExample.build("foo", true, 12)
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: SetterTest.java
// FILE: SetterTest.java
import lombok.AccessLevel;
import lombok.Setter;
@@ -18,7 +18,7 @@ public class SetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = SetterTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: SetterTest.java
// FILE: SetterTest.java
import lombok.AccessLevel;
import lombok.Setter;
@@ -21,7 +21,7 @@ public class SetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = SetterTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: SetterTest.java
// FILE: SetterTest.java
import lombok.AccessLevel;
import lombok.Setter;
@@ -23,7 +23,7 @@ public class SetterTest {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = SetterTest()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: GetterSetterExample.java
// FILE: GetterSetterExample.java
import lombok.AccessLevel;
import lombok.Getter;
@@ -11,7 +11,7 @@ public class GetterSetterExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = GetterSetterExample()
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: ValueExample.java
// FILE: ValueExample.java
import lombok.*;
@@ -26,7 +26,7 @@ import lombok.*;
}
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj = ValueExample("name", 12, 4.5)
+2 -2
View File
@@ -1,4 +1,4 @@
//FILE: WithExample.java
// FILE: WithExample.java
import lombok.*;
@@ -16,7 +16,7 @@ public class WithExample {
}
//FILE: test.kt
// FILE: test.kt
fun box(): String {
val obj: WithExample = WithExample().withAge(16).withName("fooo")