Skip to content

Commit

Permalink
Revert setters chaining because libs require classic setters
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Oct 14, 2023
1 parent 7f8735e commit 6a1f88b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
2 changes: 0 additions & 2 deletions apps/lombok.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
lombok.builder.className=Builder
lombok.addLombokGeneratedAnnotation=true
lombok.accessors.fluent=false
lombok.accessors.chain=true
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ public class SepulkaNewRequestEg {
public static final String NAME = "foo";

public static class Pojos {

public static SepulkaNewRequestMsg sepulkaNewRequestMsg() {
return new SepulkaNewRequestMsg().setName(NAME);
var requestMsg = new SepulkaNewRequestMsg();
requestMsg.setName(NAME);
return requestMsg;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ public class SepulkaNewResponseEg {
public static class Pojos {

public static SepulkaNewResponseMsg sepulkaNewResponseMsg() {
return new SepulkaNewResponseMsg().setId(UUID.randomUUID().toString());
var responseMsg = new SepulkaNewResponseMsg();
responseMsg.setId(UUID.randomUUID().toString());
return responseMsg;
}

public static SepulkaNewResponseMsg sepulkaNewResponseMsg(UUID id) {
return sepulkaNewResponseMsg().setId(id.toString());
var responseMsg = sepulkaNewResponseMsg();
responseMsg.setId(id.toString());
return responseMsg;
}
}
}
2 changes: 0 additions & 2 deletions libs/lombok.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
lombok.builder.className=Builder
lombok.addLombokGeneratedAnnotation=true
lombok.accessors.fluent=false
lombok.accessors.chain=true
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
public class StateMappingPropsEg {
public static class Pojos {
public static StateMappingPropsCfg stateMappingPropsCfg() {
return new StateMappingPropsCfg().setMode(SPRING_DATA.name());
StateMappingPropsCfg propsCfg = new StateMappingPropsCfg();
propsCfg.setMode(SPRING_DATA.name());
return propsCfg;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
public class StoragePropsEg {
public static class Pojos {
public static StoragePropsCfg storagePropsCfg() {
return new StoragePropsCfg().setProtocol(storageProtocolPropsCfg()).setMapping(stateMappingPropsCfg());
StoragePropsCfg propsCfg = new StoragePropsCfg();
propsCfg.setProtocol(storageProtocolPropsCfg());
propsCfg.setMapping(stateMappingPropsCfg());
return propsCfg;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
public class StorageProtocolPropsEg {
public static class Pojos {
public static StorageProtocolPropsCfg storageProtocolPropsCfg() {
return new StorageProtocolPropsCfg().setMode(StorageProtocolMode.H2.name());
StorageProtocolPropsCfg propsCfg = new StorageProtocolPropsCfg();
propsCfg.setMode(StorageProtocolMode.H2.name());
return propsCfg;
}
}

Expand Down

0 comments on commit 6a1f88b

Please sign in to comment.