You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ new doc for "exports", "module" and "preview"
+ fix ordering regarding "removal", "unlikely-arg-type"
+ minor additions and corrections here and there
Copy file name to clipboardExpand all lines: eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm
+58-18Lines changed: 58 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,21 @@ <h1>Excluding Warnings Using @SuppressWarnings</h1>
87
87
<p>to suppress warnings relative to deprecation</p>
88
88
</td>
89
89
<td>
90
-
<p>Deprecated API</p>
90
+
<p>Usage of deprecated API</p>
91
+
</td>
92
+
</tr>
93
+
<tr>
94
+
<td>
95
+
<p><spanclass="token">exports</span></p>
96
+
</td>
97
+
<td>
98
+
<p>to suppress warnings relative to module API leaks</p>
99
+
</td>
100
+
<td>
101
+
<p>Public API exposes a type that is not exported<br/>
102
+
Public API exposes a non-public type<br/>
103
+
Public API exposes a type from another module that is not transitively required
104
+
</p>
91
105
</td>
92
106
</tr>
93
107
<tr>
@@ -145,6 +159,17 @@ <h1>Excluding Warnings Using @SuppressWarnings</h1>
145
159
<p>All options in <ahref="../reference/preferences/java/compiler/ref-preferences-javadoc.htm">Java Compiler Javadoc Preferences</a></p>
146
160
</td>
147
161
</tr>
162
+
<tr>
163
+
<td>
164
+
<p><spanclass="token">module</span></p>
165
+
</td>
166
+
<td>
167
+
<p>to suppress warnings relative to modules</p>
168
+
</td>
169
+
<td>
170
+
<p>An automatic module has an unstable name</p>
171
+
</td>
172
+
</tr>
148
173
<tr>
149
174
<td>
150
175
<p><spanclass="token">nls</span></p>
@@ -167,6 +192,18 @@ <h1>Excluding Warnings Using @SuppressWarnings</h1>
167
192
<p>All options in <ahref="../reference/preferences/java/compiler/ref-preferences-errors-warnings.htm#null_analysis">Java Compile Errors/Warnings Preferences for Null Analysis</a></p>
168
193
</td>
169
194
</tr>
195
+
<tr>
196
+
<td>
197
+
<p><spanclass="token">preview</span></p>
198
+
</td>
199
+
<td>
200
+
<p>to suppress warnings relative to preview features</p>
201
+
</td>
202
+
<td>
203
+
<p>Use of a preview language feature</p>
204
+
<p>Use of a preview API</p>
205
+
</td>
206
+
</tr>
170
207
<tr>
171
208
<td>
172
209
<p><spanclass="token">rawtypes</span></p>
@@ -180,35 +217,35 @@ <h1>Excluding Warnings Using @SuppressWarnings</h1>
180
217
</tr>
181
218
<tr>
182
219
<td>
183
-
<p><spanclass="token">resource</span></p>
220
+
<p><spanclass="token">removal</span></p>
184
221
</td>
185
222
<td>
186
-
<p>to suppress warnings relative to usage of resources of type Closeable</p>
223
+
<p>to suppress warnings relative to usage of terminally deprecated API</p>
187
224
</td>
188
225
<td>
189
-
<p>Resource leak<br/>
190
-
Potential resource leak<br/>
191
-
Resource not managed via try-with-resource</p>
226
+
<p>Usage of terminally deprecated API</p>
192
227
</td>
193
228
</tr>
194
229
<tr>
195
230
<td>
196
-
<p><spanclass="token">restriction</span></p>
231
+
<p><spanclass="token">resource</span></p>
197
232
</td>
198
233
<td>
199
-
<p>to suppress warnings relative to usage of discouraged or forbidden references</p>
234
+
<p>to suppress warnings relative to usage of resources of type Closeable</p>
200
235
</td>
201
236
<td>
202
-
<p>Forbidden reference (access rules)<br/>
203
-
Discouraged reference (access rules)</p>
237
+
<p>Resource leak<br/>
238
+
Potential resource leak<br/>
239
+
Resource not managed via try-with-resource<br/>
240
+
Specification using '@Owning'/'@NotOwning' is insufficient</p>
204
241
</td>
205
242
</tr>
206
243
<tr>
207
244
<td>
208
-
<p><spanclass="token">removal</span></p>
245
+
<p><spanclass="token">restriction</span></p>
209
246
</td>
210
247
<td>
211
-
<p>to suppress warnings relative to usage of terminally deprecated API</p>
248
+
<p>to suppress warnings relative to usage of discouraged or forbidden references</p>
212
249
</td>
213
250
<td>
214
251
<p>Forbidden reference (access rules)<br/>
@@ -294,21 +331,21 @@ <h1>Excluding Warnings Using @SuppressWarnings</h1>
0 commit comments