From 7174f250e66182279b7f929b5abecaa2352da005 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Wed, 28 Oct 2026 13:35:21 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=AE=BE=E8=AE=A1=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20-=20=E8=A7=82=E5=AF=9F=E8=80=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 标注 java.util.Observer 已废弃,以及不属于 JDK 的条目。 --- notes/设计模式 - 观察者.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notes/设计模式 - 观察者.md b/notes/设计模式 - 观察者.md index b5453bf0..7b280998 100644 --- a/notes/设计模式 - 观察者.md +++ b/notes/设计模式 - 观察者.md @@ -124,10 +124,10 @@ StatisticsDisplay.update: 1.0 1.0 1.0 ``` ### JDK 中的应用 -- [java.util.Observer](http://docs.oracle.com/javase/8/docs/api/java/util/Observer.html) +- [java.util.Observer](http://docs.oracle.com/javase/8/docs/api/java/util/Observer.html)(JDK 9 起已废弃) - [java.util.EventListener](http://docs.oracle.com/javase/8/docs/api/java/util/EventListener.html) -- [javax.servlet.http.HttpSessionBindingListener](http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpSessionBindingListener.html) -- [RxJava](https://github.com/ReactiveX/RxJava) +- [javax.servlet.http.HttpSessionBindingListener](http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpSessionBindingListener.html)(Servlet API,不属于 JDK) +- [RxJava](https://github.com/ReactiveX/RxJava)(开源库,不属于 JDK) ## 参考资料