Update 设计模式 - 享元.md

示例代码补上 import。
This commit is contained in:
CyC2018
2026-11-07 17:10:32 +08:00
parent 86c187f815
commit 3bd24d4322
+2
View File
@@ -35,6 +35,8 @@ public class ConcreteFlyweight implements Flyweight {
```
```java
import java.util.HashMap;
public class FlyweightFactory {
private HashMap<String, Flyweight> flyweights = new HashMap<>();