mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 20:58:35 +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 LayerC {
|
||||
|
||||
public ServiceContext context;
|
||||
public ServiceContext context;
|
||||
|
||||
public LayerC(LayerB layerB) {
|
||||
this.context = layerB.getContext();
|
||||
}
|
||||
public LayerC(LayerB layerB) {
|
||||
this.context = layerB.getContext();
|
||||
}
|
||||
|
||||
public void addSearchInfo(String searchService) {
|
||||
context.setSearchService(searchService);
|
||||
}
|
||||
public void addSearchInfo(String searchService) {
|
||||
context.setSearchService(searchService);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user