mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[lombok] IDEA-254198 added more tests
GitOrigin-RevId: 6a842d278ae1ff28cdca504d82e299f0b68fd990
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1eb543969b
commit
2e235259f6
@@ -39,3 +39,120 @@ public class BuilderWithXArgsConstructor {
|
||||
}
|
||||
}
|
||||
}
|
||||
class BuilderWithAllArgsConstructorPrivate {
|
||||
private int someProperty;
|
||||
|
||||
@Generated
|
||||
public static BuilderWithAllArgsConstructorPrivate.BuilderWithAllArgsConstructorPrivateBuilder builder() {
|
||||
return new BuilderWithAllArgsConstructorPrivateBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
private BuilderWithAllArgsConstructorPrivate(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class BuilderWithAllArgsConstructorPrivateBuilder {
|
||||
@Generated
|
||||
private int someProperty;
|
||||
|
||||
@Generated
|
||||
BuilderWithAllArgsConstructorPrivateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithAllArgsConstructorPrivate.BuilderWithAllArgsConstructorPrivateBuilder someProperty(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithAllArgsConstructorPrivate build() {
|
||||
return new BuilderWithAllArgsConstructorPrivate(someProperty);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "BuilderWithAllArgsConstructorPrivate.BuilderWithAllArgsConstructorPrivateBuilder(someProperty=" + this.someProperty + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
class BuilderWithReqArgsConstructor {
|
||||
private final int someProperty;
|
||||
|
||||
@Generated
|
||||
public static BuilderWithReqArgsConstructor.BuilderWithReqArgsConstructorBuilder builder() {
|
||||
return new BuilderWithReqArgsConstructorBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithReqArgsConstructor(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class BuilderWithReqArgsConstructorBuilder {
|
||||
@Generated
|
||||
private int someProperty;
|
||||
|
||||
@Generated
|
||||
BuilderWithReqArgsConstructorBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithReqArgsConstructor.BuilderWithReqArgsConstructorBuilder someProperty(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithReqArgsConstructor build() {
|
||||
return new BuilderWithReqArgsConstructor(someProperty);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "BuilderWithReqArgsConstructor.BuilderWithReqArgsConstructorBuilder(someProperty=" + this.someProperty + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
class BuilderWithReqArgsConstructorPrivate {
|
||||
private final int someProperty;
|
||||
|
||||
@Generated
|
||||
public static BuilderWithReqArgsConstructorPrivate.BuilderWithReqArgsConstructorPrivateBuilder builder() {
|
||||
return new BuilderWithReqArgsConstructorPrivateBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
private BuilderWithReqArgsConstructorPrivate(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class BuilderWithReqArgsConstructorPrivateBuilder {
|
||||
@Generated
|
||||
private int someProperty;
|
||||
|
||||
@Generated
|
||||
BuilderWithReqArgsConstructorPrivateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithReqArgsConstructorPrivate.BuilderWithReqArgsConstructorPrivateBuilder someProperty(int someProperty) {
|
||||
this.someProperty = someProperty;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public BuilderWithReqArgsConstructorPrivate build() {
|
||||
return new BuilderWithReqArgsConstructorPrivate(someProperty);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "BuilderWithReqArgsConstructorPrivate.BuilderWithReqArgsConstructorPrivateBuilder(someProperty=" + this.someProperty + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
||||
@AllArgsConstructor(access = AccessLevel.PUBLIC)
|
||||
@@ -7,3 +8,21 @@ import lombok.Builder;
|
||||
public class BuilderWithXArgsConstructor {
|
||||
private int someProperty;
|
||||
}
|
||||
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
@Builder
|
||||
class BuilderWithAllArgsConstructorPrivate {
|
||||
private int someProperty;
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor(access = AccessLevel.PUBLIC)
|
||||
@Builder
|
||||
class BuilderWithReqArgsConstructor {
|
||||
private final int someProperty;
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
@Builder
|
||||
class BuilderWithReqArgsConstructorPrivate {
|
||||
private final int someProperty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user