From 56e93ff8ad001ae2cbce6311f0c94fc9166b5af9 Mon Sep 17 00:00:00 2001 From: zouzanyan <68853552+zouzanyan@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:08:42 +0800 Subject: [PATCH] Update java9.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 错别字 --- docs/java/new-features/java9.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/java/new-features/java9.md b/docs/java/new-features/java9.md index 39a5af61a37..9f1200804ae 100644 --- a/docs/java/new-features/java9.md +++ b/docs/java/new-features/java9.md @@ -138,7 +138,7 @@ try (scanner;writer) { **什么是 effectively-final 变量?** 简单来说就是没有被 `final` 修饰但是值在初始化后从未更改的变量。 -正如上面的代码所演示的那样,即使 `writer` 变量没有被显示声明为 `final`,但它在第一次被复制后就不会改变了,因此,它就是 effectively-final 变量。 +正如上面的代码所演示的那样,即使 `writer` 变量没有被显示声明为 `final`,但它在第一次被赋值后就不会改变了,因此,它就是 effectively-final 变量。 ## Stream & Optional 增强 @@ -258,4 +258,4 @@ System.out.println(currentProcess.info()); - New Features in Java 9:https://www.baeldung.com/new-java-9 - Java – Try with Resources:https://www.baeldung.com/java-try-with-resources - \ No newline at end of file +