Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ void convertOnlyValueAnnotatedClassWithoutDefaultValuesToRecord() {

@Value
public class A {
String test;
String test;
}
""",
"""
package example;

public record A(
String test) {
String test) {
}
"""
),
Expand Down Expand Up @@ -121,9 +121,9 @@ public class Test {
""",
"""
public record Test(
String field1,
String field1,

String field2) {
String field2) {
@Override
public String toString() {
return "Test(" +
Expand Down Expand Up @@ -166,7 +166,7 @@ public class B {
import lombok.Value;

public record A(
String test) {
String test) {
}

@Value
Expand Down Expand Up @@ -201,7 +201,7 @@ static class B {

public class A {
record B(
String test) {
String test) {
}
}
"""
Expand All @@ -224,7 +224,7 @@ void interfaceIsImplementedThatDoesNotDefineFieldGetter() {

@Value
public class A implements Serializable {
String test;
String test;
}
""",
"""
Expand All @@ -233,7 +233,7 @@ public class A implements Serializable {
import java.io.Serializable;

public record A(
String test) implements Serializable {
String test) implements Serializable {
}
"""
)
Expand All @@ -255,7 +255,7 @@ void plainLombokBuilder() {
@Value
@Builder
public class A implements Serializable {
String test;
String test;
}
""",
"""
Expand All @@ -266,7 +266,7 @@ public class A implements Serializable {

@Builder
public record A(
String test) implements Serializable {
String test) implements Serializable {
}
"""
)
Expand All @@ -284,12 +284,12 @@ void booleanFieldWithIsGetter() {

@Value
public class Foo {
boolean bar;
boolean bar;
}
""",
"""
public record Foo(
boolean bar) {
boolean bar) {
}"""
),
java(
Expand Down Expand Up @@ -322,16 +322,16 @@ void multipleBooleanFields() {

@Value
public class Config {
boolean enabled;
Boolean active;
String name;
boolean enabled;
Boolean active;
String name;
}
""",
"""
public record Config(
boolean enabled,
Boolean active,
String name) {
boolean enabled,
Boolean active,
String name) {
}
"""
),
Expand Down Expand Up @@ -370,7 +370,7 @@ void methodReferences() {

@Value
class A {
String test;
String test;
}

class Using {
Expand All @@ -384,7 +384,7 @@ Supplier<String> usingMethodReference() {
import java.util.function.Supplier;

record A(
String test) {
String test) {
}

class Using {
Expand Down Expand Up @@ -491,7 +491,7 @@ void nonJava17Class() {

@Value
public class A {
String test;
String test;
}
"""
),
Expand Down