Skip to content

Commit

Permalink
chore: drop lombok.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdethier committed Jul 8, 2024
1 parent 9af52bf commit d05fd2c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
10 changes: 2 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.pousse-cafe-framework</groupId>
<artifactId>pousse-cafe</artifactId>
<version>0.29.0</version>
<version>0.29.1-SNAPSHOT</version>
</parent>

<scm>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>org.pousse-cafe-framework</groupId>
<artifactId>pousse-cafe-core</artifactId>
<version>0.29.0</version>
<version>0.29.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.pousse-cafe-framework</groupId>
Expand All @@ -34,12 +34,6 @@
<artifactId>pousse-cafe-spring-mongo</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
43 changes: 36 additions & 7 deletions src/main/java/poussecafe/source/Conflict.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
package poussecafe.source;

import lombok.Builder;
import lombok.Value;
import lombok.experimental.Accessors;
import java.util.Objects;

import poussecafe.source.analysis.ClassName;

@Builder
@Value
@Accessors(fluent = true)
public class Conflict {

public ClassName outerModuleClass() {
return outerModuleClass;
}

private ClassName outerModuleClass;


public ClassName innerModuleClass() {
return innerModuleClass;
}

private ClassName innerModuleClass;

public static Builder builder() {
return new Builder();
}

public static class Builder {

private Conflict conflict = new Conflict();

public Conflict build() {
Objects.requireNonNull(conflict.outerModuleClass);
Objects.requireNonNull(conflict.innerModuleClass);
return conflict;
}

public Builder outerModuleClass(ClassName outerModuleClass) {
conflict.outerModuleClass = outerModuleClass;
return this;
}

public Builder innerModuleClass(ClassName innerModuleClass) {
conflict.innerModuleClass = innerModuleClass;
return this;
}
}
}

0 comments on commit d05fd2c

Please sign in to comment.