diff --git a/notes/设计模式 - 享元.md b/notes/设计模式 - 享元.md index cf31710d..30bd90e4 100644 --- a/notes/设计模式 - 享元.md +++ b/notes/设计模式 - 享元.md @@ -35,6 +35,8 @@ public class ConcreteFlyweight implements Flyweight { ``` ```java +import java.util.HashMap; + public class FlyweightFactory { private HashMap flyweights = new HashMap<>();