mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
Java 11 migration: patterns starting with a (#1084)
* Moves abstract-factory pattern to java 11 * Moves abstract-document pattern to java 11 * Moves acyclic-visitor pattern to java 11 * Moves adapter pattern to java 11 * Moves aggregator-microservices pattern to java 11 * Moves api-gateway pattern to java 11
This commit is contained in:
1 parent
3c57bf7078
commit
f04fc3c0dc
26 files changed
+151
-172
No files matched your search
+1
-1
@@ -93,7 +93,7 @@ public class FishingBoatAdapter implements RowingBoat {
|
||||
And now the `Captain` can use the `FishingBoat` to escape the pirates.
|
||||
|
||||
```java
|
||||
Captain captain = new Captain(new FishingBoatAdapter());
|
||||
var captain = new Captain(new FishingBoatAdapter());
|
||||
captain.row();
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user