mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 22:59:43 +00:00
fix: Fix context object (#2415)
* fix pr builder goals * update links * add context-object to build * add autogenerated content * fix checkstyle findings
This commit is contained in:
@@ -5,13 +5,13 @@ import lombok.Getter;
|
||||
@Getter
|
||||
public class LayerA {
|
||||
|
||||
private ServiceContext context;
|
||||
private ServiceContext context;
|
||||
|
||||
public LayerA() {
|
||||
context = ServiceContextFactory.createContext();
|
||||
}
|
||||
public LayerA() {
|
||||
context = ServiceContextFactory.createContext();
|
||||
}
|
||||
|
||||
public void addAccountInfo(String accountService) {
|
||||
context.setAccountService(accountService);
|
||||
}
|
||||
public void addAccountInfo(String accountService) {
|
||||
context.setAccountService(accountService);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user