Skip to content

Commit 614011e

Browse files
committed
fix typo in description
typo of -Xlint
1 parent 6ee46d5 commit 614011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/CH17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class SomethingDemo {
100100
Note: SomethingDemo.java uses or overrides a deprecated API.
101101
Note: Recompile with -Xlint:deprecation for details.
102102

103-
想要知道詳細的警訊內容的話,可以在編譯時加上 -Xline:deprecation 引數,編譯器會告訴您是因為您使用了某個被 @Deprecated 標示了的方法而提出警訊,加上 -Xline:deprecation 引數顯示的完整訊息如下:
103+
想要知道詳細的警訊內容的話,可以在編譯時加上 -Xlint:deprecation 引數,編譯器會告訴您是因為您使用了某個被 @Deprecated 標示了的方法而提出警訊,加上 -Xlint:deprecation 引數顯示的完整訊息如下:
104104

105105
javac -Xlint:deprecation -d . SomethingDemo.java
106106
SomethingDemo.java:6: warning: [deprecation] getSomething() in

0 commit comments

Comments
 (0)