View | Details | Raw Unified | Return to bug 359727
Collapse All | Expand All

(-)guide/jdt_api_options.htm (-1 / +62 lines)
Lines 1442-1448 Link Here
1442
<tr>
1442
<tr>
1443
<td colspan="2"><b>Reporting Unchecked Type Operation</b> (<b><a href=
1443
<td colspan="2"><b>Reporting Unchecked Type Operation</b> (<b><a href=
1444
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_UNCHECKED_TYPE_OPERATION">COMPILER_PB_UNCHECKED_TYPE_OPERATION</a></b>)</td>
1444
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_UNCHECKED_TYPE_OPERATION">COMPILER_PB_UNCHECKED_TYPE_OPERATION</a></b>)</td>
1445
1446
</tr>
1445
</tr>
1447
<tr valign="top">
1446
<tr valign="top">
1448
<td rowspan="3">When enabled, the compiler will issue an error or a warning whenever an operation
1447
<td rowspan="3">When enabled, the compiler will issue an error or a warning whenever an operation
Lines 1458-1463 Link Here
1458
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
1457
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
1459
</tr>
1458
</tr>
1460
1459
1460
<!-- -->
1461
1462
<tr>
1463
<td colspan="2"><b>Reporting Unclosed Closeable</b> (<b><a href=
1464
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_UNCLOSED_CLOSEABLE">COMPILER_PB_UNCLOSED_CLOSEABLE</a></b>)</td>
1465
</tr>
1466
<tr valign="top">
1467
<td rowspan="3">When enabled, the compiler will issue an error or a warning if
1468
	 a local variable holds a value of type <code>java.lang.AutoCloseable</code> (compliance>=1.7) 
1469
	 or a value of type <code>java.io.Closeable</code> (compliance<=1.6) and if
1470
	 flow analysis shows that the method <code>close()</code> is not invoked locally on that value.</td>
1471
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
1472
</tr>
1473
<tr valign="top">
1474
<td><b><a href=
1475
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING"><i>WARNING</i></a></b></td>
1476
</tr>
1477
<tr valign="top">
1478
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
1479
</tr>
1480
1481
<tr>
1482
<td colspan="2"><b>Reporting Potentially Unclosed Closeable</b> (<b><a href=
1483
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE">COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE</a></b>)</td>
1484
</tr>
1485
<tr valign="top">
1486
<td rowspan="3">When enabled, the compiler will issue an error or a warning if
1487
	 a local variable holds a value of type <code>java.lang.AutoCloseable</code> (compliance>=1.7) 
1488
	 or a value of type <code>java.io.Closeable</code> (compliance<=1.6) and if
1489
	 flow analysis shows that the method <code>close()</code> is 
1490
	 not invoked locally on that value for all execution paths.</td>
1491
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
1492
</tr>
1493
<tr valign="top">
1494
<td><b><a href=
1495
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
1496
</tr>
1497
<tr valign="top">
1498
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE"><i>IGNORE</i></a></b></td>
1499
</tr>
1500
1501
<tr>
1502
<td colspan="2"><b>Reporting Explicitly Closed Closeable</b> (<b><a href=
1503
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_EXPLICITLY_CLOSED_AUTOCLOSEABLE">COMPILER_PB_EXPLICITLY_CLOSED_AUTOCLOSEABLE</a></b>)</td>
1504
</tr>
1505
<tr valign="top">
1506
<td rowspan="3">When enabled, the compiler will issue an error or a warning if a local variable 
1507
	 holds a value of type <code>java.lang.AutoCloseable</code>, and if the method
1508
	 <code>close()</code> is explicitly invoked on that resource, but the resource is
1509
	 not managed by a try-with-resources block.</td>
1510
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
1511
</tr>
1512
<tr valign="top">
1513
<td><b><a href=
1514
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
1515
</tr>
1516
<tr valign="top">
1517
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE"><i>IGNORE</i></a></b></td>
1518
</tr>
1519
1520
<!---->
1521
1461
<tr>
1522
<tr>
1462
<td colspan="2"><b>Reporting Undocumented Empty Block</b> (<b><a href=
1523
<td colspan="2"><b>Reporting Undocumented Empty Block</b> (<b><a href=
1463
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK">COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK</a></b>)</td>
1524
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK">COMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK</a></b>)</td>

Return to bug 359727