-
Notifications
You must be signed in to change notification settings - Fork 66
/
jdt_api_options.htm
7591 lines (7076 loc) · 336 KB
/
jdt_api_options.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="copyright" content=
"Copyright (c) IBM Corporation and others 2000, 2020. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css" />
<title>JDT Core options</title>
</head>
<body>
<h2>JDT Core options</h2>
<p>JDT Core options control the behavior of core features such as the Java compiler, code
formatter, code assist, and other core behaviors. The APIs for accessing the options are
defined in <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html"><b>JavaCore</b></a>.
Options can be accessed as a group as follows:</p>
<ul>
<li><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#getDefaultOptions()">JavaCore.getDefaultOptions()</a></b>
- Answers the default value of the options.</li>
<li><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#getOptions()">JavaCore.getOptions()</a></b> -
Answers the current values of the options.</li>
<li><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#setOptions(java.util.Hashtable)">JavaCore.setOptions(Hashtable
newOptions)</a></b> - Replaces the options values by new values.</li>
</ul>
<p>Options can also be accessed individually by a string name.</p>
<ul>
<li><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#getOption(java.lang.String)">JavaCore.getOption(String
optionName)</a></b> - Answers the value of a specific option.</li>
</ul>
<p>Options that can configure the severity of a problem can also be found.</p>
<ul>
<li><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#getOptionForConfigurableSeverity(int)">JavaCore.getOptionForConfigurableSeverity(int
problemID)</a></b> - Answers the option to use to configure the severity of the problem
identified by <code>problemID</code>.</li>
</ul>
<p>Options are stored as a hash table of all known configurable options with their values. Helper
constants have been defined on <a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html"><b>JavaCore</b></a> for each option ID and
its possible constant values.</p>
<p>The following code fragment restores the value of all core options to their defaults except for
one (<code>COMPILER_PB_DEPRECATION</code>), which is set specifically.</p>
<pre class="color1">
// Get the default options
Hashtable options = JavaCore.getDefaultOptions();
// Change the value of an option
options.put(JavaCore.COMPILER_PB_DEPRECATION, JavaCore.ERROR);
// Set the new options
JavaCore.setOptions(options);
</pre>
<p>The following code fragment keeps the value of the current options and modifies only one
(<code>COMPILER_PB_DEPRECATION</code>):</p>
<pre class="color1">
// Get the current options
Hashtable options = JavaCore.getOptions();
// Change the value of an option
options.put(JavaCore.COMPILER_PB_DEPRECATION, JavaCore.ERROR);
// Set the new options
JavaCore.setOptions(options);
</pre>
<h3>Project specific options</h3>
<p>The values of options can be overridden per project using protocol in <a href=
"../reference/api/org/eclipse/jdt/core/IJavaProject.html"><b>IJavaProject</b></a>.</p>
<p>The following code fragment retrieves the value of an option
(<code>COMPILER_PB_DEPRECATION</code>) for a specific project in two different ways. The
boolean parameter controls whether only the project-specific options should be returned in a query
or whether the project's option values should be merged with the values in JavaCore.</p>
<pre>
<span class="c2">
// Get the project
IJavaProject project = ...;
// See if the value of an option has been set in this project
String value = project.getOption(JavaCore.COMPILER_PB_DEPRECATION, <b>false</b>);
if (value == null) {
// no specific option was set on the project
...
}
// Get the value of an option from this project. Use the value from
// JavaCore value if none is specified for the project
String value = project.getOption(JavaCore.COMPILER_PB_DEPRECATION, <b>true</b>);</span>
</pre>
<h3>JDT Core options descriptions</h3>
<p>The following tables describe the available JDT Core options. The option id is shown in
parentheses and the default value is shown in bold italics.</p>
<h4>Options categories</h4>
<ul>
<li><b><a href="#compiler">Compiler options</a></b></li>
<li><b><a href="#builder">Builder options</a></b></li>
<li><b><a href="#javacore">JavaCore options</a></b></li>
<li><b><a href="#formatter">Formatter options</a></b></li>
<li><b><a href="#codeassist">CodeAssist options</a></b></li>
</ul>
<h4><a name="compiler" id="compiler">Compiler options</a></h4>
<table border="1" cellspacing="2" cellpadding="2" width="100%">
<tr>
<th>Description</th>
<th width="140">Values</th>
</tr>
<tr>
<td colspan="2"><b>Annotation Based Null Analysis</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">This option controls whether the compiler will use null annotations for
improved analysis of (potential) null references.
<p>When enabled, the compiler will interpret the annotation types defined using
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_NAME">COMPILER_NONNULL_ANNOTATION_NAME</a>
and <a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_NAME">COMPILER_NULLABLE_ANNOTATION_NAME</a>
as specifying whether or not a given type includes the value <code>null</code>.</p>
<p>The effect of these analyses is further controlled by the options
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_SPECIFICATION_VIOLATION">COMPILER_PB_NULL_SPECIFICATION_VIOLATION</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT">COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_UNCHECKED_CONVERSION">COMPILER_PB_NULL_UNCHECKED_CONVERSION</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_REDUNDANT_NULL_ANNOTATION">COMPILER_PB_REDUNDANT_NULL_ANNOTATION</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION">COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_SYNTACTIC_NULL_ANALYSIS_FOR_FIELDS">COMPILER_PB_SYNTACTIC_NULL_ANALYSIS_FOR_FIELDS</a>,
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED">COMPILER_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED</a>, and
<a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_INHERIT_NULL_ANNOTATIONS">COMPILER_INHERIT_NULL_ANNOTATIONS</a>.</p></td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Inline JSR Bytecode Instruction</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_CODEGEN_INLINE_JSR_BYTECODE">COMPILER_CODEGEN_INLINE_JSR_BYTECODE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled in conjunction with a Java target platform lesser than or equal to
"1.4", the compiler will no longer generate JSR instructions, but rather inline corresponding
subroutine code sequences (mostly corresponding to try finally blocks). The generated code will
thus get bigger, but will load faster on virtual machines since the verification process is then
much simpler. This mode is adding support for the Java Specification Request 202 to pre-"1.5" Java
target platforms.<br />
For a Java target platform greater than or equal to "1.5", the inlining of the JSR bytecode
instruction is mandatory and this option is ignored.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Generating Method Parameters Attribute</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_CODEGEN_METHOD_PARAMETERS_ATTR">COMPILER_CODEGEN_METHOD_PARAMETERS_ATTR</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When generated, this attribute will enable information about the formal parameters
of a method (such as their names) to be accessed from reflection libraries, annotation processing,
code weaving, and in the debugger, from platform target level 1.8 and later.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#GENERATE">GENERATE</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DO_NOT_GENERATE">DO_NOT_GENERATE</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Setting Target Java Platform</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_CODEGEN_TARGET_PLATFORM">COMPILER_CODEGEN_TARGET_PLATFORM</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="16">For binary compatibility reason, .class files are tagged with VM versions that are
defined for each level of the reference specification. The target Java platform specifies the
minimum runtime level required to execute the generated class files.<br />
The compliance, source and target levels must satisfy a set of constraints summarized in a <a href=
"#compatibility"><b>compatibility table</b></a> below.</td>
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_1">VERSION_1_1</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_2">VERSION_1_2</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_3">VERSION_1_3</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_4">VERSION_1_4</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_5">VERSION_1_5</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_6">VERSION_1_6</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_7">VERSION_1_7</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_8">VERSION_1_8</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_9">VERSION_9</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_10">VERSION_10</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_11">VERSION_11</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_12">VERSION_12</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_13">VERSION_13</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_14">VERSION_14</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_15">VERSION_15</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_CLDC_1_1">VERSION_CLDC_1_1</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Preserving Unused Local Variables</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_CODEGEN_UNUSED_LOCAL">COMPILER_CODEGEN_UNUSED_LOCAL</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">Unless requested to preserve unused local variables (i.e. never read), the compiler
will optimize them out, potentially altering debugging.</td>
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#PRESERVE">PRESERVE</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#OPTIMIZE_OUT">OPTIMIZE_OUT</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Setting Compliance Level</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_COMPLIANCE">COMPILER_COMPLIANCE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="13">Select the compliance level for the compiler, which will then behave according to
the said level of the reference specification.<br />
The compliance, source and target levels must satisfy a set of constraints summarized in a <a href=
"#compatibility"><b>compatibility table</b></a> below.</td>
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_3">VERSION_1_3</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_4">VERSION_1_4</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_5">VERSION_1_5</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_6">VERSION_1_6</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_7">VERSION_1_7</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_1_8">VERSION_1_8</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_9">VERSION_9</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_10">VERSION_10</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_11">VERSION_11</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_12">VERSION_12</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_13">VERSION_13</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_14">VERSION_14</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#VERSION_15">VERSION_15</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Javadoc Comment Support</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_DOC_COMMENT_SUPPORT">COMPILER_DOC_COMMENT_SUPPORT</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When this support is disabled, the compiler will ignore all javadoc problems
options settings and will not report any javadoc problem. It will also not find any reference in
javadoc comment and DOM AST Javadoc node will be only a flat text instead of having structured tag
elements.</td>
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></b></td>
</tr>
<tr>
<td colspan="2"><a name="COMPILER_INHERIT_NULL_ANNOTATIONS" id="COMPILER_INHERIT_NULL_ANNOTATIONS"></a><b>Inheritance of Null Annotations</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_INHERIT_NULL_ANNOTATIONS">COMPILER_INHERIT_NULL_ANNOTATIONS</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled, the compiler will check for each method without any explicit null annotations
(see <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a>):
If it overrides a method which has null annotations, it will treat the
current method as if it had the same annotations as the overridden method.
<p>Annotation inheritance will use the <em>effective</em> nullness of the overridden method
after transitively applying inheritance and after applying any default nullness
(see <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME">COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME</a>)
at the site of the overridden method.</p>
<p>If different implicit null annotations (from a nonnull default and/or overridden methods) are applicable
to the same type in a method signature, this is flagged as an error
and an explicit null annotation must be used to disambiguate.</p></td>
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Generating Line Number Debug Attribute</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_LINE_NUMBER_ATTR">COMPILER_LINE_NUMBER_ATTR</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When generated, this attribute will enable source code highlighting in the debugger
(.class file is then bigger).</td>
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#GENERATE">GENERATE</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DO_NOT_GENERATE">DO_NOT_GENERATE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Generating Local Variable Debug Attribute</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_LOCAL_VARIABLE_ATTR">COMPILER_LOCAL_VARIABLE_ATTR</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When generated, this attribute will enable local variable names to be displayed in
the debugger, only in places where variables are definitely assigned (.class file is then
bigger).</td>
<td><i><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#GENERATE">GENERATE</a></b></i></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DO_NOT_GENERATE">DO_NOT_GENERATE</a></b></td>
</tr>
<tr>
<td colspan="2"><a name="COMPILER_NONNULL_ANNOTATION_NAME" id="COMPILER_NONNULL_ANNOTATION_NAME"></a><b>Name of Annotation Type for Non-Null Types</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_NAME">COMPILER_NONNULL_ANNOTATION_NAME</a></b>)</td>
</tr>
<tr valign="top">
<td>This option defines a fully qualified Java type name that the compiler may use
to perform special null analysis.
<p>If the annotation specified by this option is applied to a type in a method
signature or variable declaration, this will be interpreted as a specification
that <code>null</code> is <b>not</b> a legal value in that position. Currently
supported positions are: method parameters, method return type and local variables.</p>
<p>For values declared with this annotation, the compiler will never trigger a null
reference diagnostic (as controlled by <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_POTENTIAL_NULL_REFERENCE">COMPILER_PB_POTENTIAL_NULL_REFERENCE</a>
and <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_REFERENCE">COMPILER_PB_NULL_REFERENCE</a>), because the assumption is made that null
will never occur at runtime in these positions.</p>
<p>The compiler may furthermore check adherence to the null specification as
further controlled by <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_SPECIFICATION_VIOLATION">COMPILER_PB_NULL_SPECIFICATION_VIOLATION</a>,
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT">COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT</a> and
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_UNCHECKED_CONVERSION">COMPILER_PB_NULL_UNCHECKED_CONVERSION</a>.</p>
<p>This option only has an effect if the option <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotation type<br/>
<b>Default is: <code>org.eclipse.jdt.annotation.NonNull</code></b></td>
</tr>
<tr>
<td colspan="2"><a name="COMPILER_NONNULL_ANNOTATION_SECONDARY_NAMES" id="COMPILER_NONNULL_ANNOTATION_SECONDARY_NAMES"></a>
<b>Names of Secondary Annotation Types for Non-Null Types</b>
(<b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_SECONDARY_NAMES">COMPILER_NONNULL_ANNOTATION_SECONDARY_NAMES</a></b>)
</td>
</tr>
<tr valign="top">
<td>This option defines a comma-separated list of fully qualified Java type names
that the compiler may use to perform special null analysis.
<p>The annotation types identified by the names in this list are interpreted in the same way
as the annotation identified by {@link #COMPILER_NONNULL_ANNOTATION_NAME}.
The intention is to support libraries using different sets of null annotations,
in addition to those used by the current project. Secondary null annotations should not be
used in the project's own source code.</p>
<p>JDT will never actively use any secondary annotation names from this list,
i.e., inferred null annotations and content assist proposals mentioning null annotations
are always rendered using the primary name from
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_NAME">COMPILER_NONNULL_ANNOTATION_NAME</a>.</p>
<p>This option only has an effect if the option
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotation type<br/>
<b>Default is: <code>""</code></b></td>
</tr>
<tr>
<td colspan="2"><b>Name of Annotation Type for Nullable Types</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_NAME">COMPILER_NULLABLE_ANNOTATION_NAME</a></b>)</td>
</tr>
<tr valign="top">
<td>This option defines a fully qualified Java type name that the compiler may use
to perform special null analysis.
<p>If the annotation specified by this option is applied to a type in a method
signature or variable declaration, this will be interpreted as a specification
that <code>null</code> is a legal value in that position. Currently supported
positions are: method parameters, method return type and local variables.</p>
<p>If a value whose type
is annotated with this annotation is dereferenced without checking for null,
the compiler will trigger a diagnostic as further controlled by
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_POTENTIAL_NULL_REFERENCE">COMPILER_PB_POTENTIAL_NULL_REFERENCE</a>.</p>
<p>The compiler may furthermore check adherence to the null specification as
further controlled by <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_SPECIFICATION_VIOLATION">COMPILER_PB_NULL_SPECIFICATION_VIOLATION</a>,
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT">COMPILER_PB_NULL_ANNOTATION_INFERENCE_CONFLICT</a> and
<a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_NULL_UNCHECKED_CONVERSION">COMPILER_PB_NULL_UNCHECKED_CONVERSION</a>.</p>
<p>This option only has an effect if the option <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotation type<br/>
<b>Default is: <code>org.eclipse.jdt.annotation.Nullable</code></b></td>
</tr>
<tr>
<td colspan="2"><b>Names of Secondary Annotation Types for Nullable Types</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_SECONDARY_NAMES">COMPILER_NULLABLE_ANNOTATION_SECONDARY_NAMES</a></b>)</td>
</tr>
<tr valign="top">
<td>This option defines a comma-separated list of fully qualified Java type names
that the compiler may use to perform special null analysis.
<p>The annotation types identified by the names in this list are interpreted in the same way
as the annotation identified by <a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_NAME">COMPILER_NULLABLE_ANNOTATION_NAME</a>.
The intention is to support libraries using different sets of null annotations,
in addition to those used by the current project. Secondary null annotations should not be
used in the project's own source code.</p>
<p>JDT will never actively use any secondary annotation names from this list,
i.e., inferred null annotations and content assist proposals mentioning null annotations
are always rendered using the primary name from <a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_NAME">COMPILER_NULLABLE_ANNOTATION_NAME</a>.</p>
<p>This option only has an effect if the option <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotation type<br/>
<b>Default is: <code>""</code></b></td>
</tr>
<tr>
<td colspan="2"><a name="COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME" id="COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME"></a><b>Name of Annotation Type to specify a nullness default for unannotated types.</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME">COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME</a></b>)</td>
</tr>
<tr valign="top">
<td>This option defines a fully qualified Java type name that the compiler may use
to perform special null analysis.
<p>If the annotation is applied without an argument, all unannotated types in method signatures
within the annotated element will be treated as if they were specified with the non-null annotation
(see <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_NAME">COMPILER_NONNULL_ANNOTATION_NAME</a>).</p>
<p>If the annotation is applied with the constant <code>false</code> as its argument,
all corresponding defaults specified using this annotation at outer scopes will be canceled for the annotated element.</p>
<p>This option only has an effect if the option <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotatin type<br/>
<b>Default is: <code>org.eclipse.jdt.annotation.NonNullByDefault</code></b></td>
</tr>
<tr>
<td colspan="2"><a name="COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_SECONDARY_NAMES" id="COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_SECONDARY_NAMES"></a>
<b>Names of Secondary Annotation Types to specify a nullness default for unannotated types</b>
(<b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_SECONDARY_NAMES">COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_SECONDARY_NAMES</a></b>)</td>
</tr>
<tr valign="top">
<td>This option defines a comma-separated list of fully qualified Java type names
that the compiler may use to perform special null analysis.
<p>The annotation types identified by the names in this list are interpreted in the same way
as the annotation identified by <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME">COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME</a>.
The intention is to support libraries using different sets of null annotations,
in addition to those used by the current project. Secondary null annotations should not be
used in the project's own source code.</p>
<p>This option only has an effect if the option <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_ANNOTATION_NULL_ANALYSIS">COMPILER_ANNOTATION_NULL_ANALYSIS</a> is enabled.</p>
</td>
<td>The qualified name of a Java annotatin type<br/>
<b>Default is: <code>""</code></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Use of Annotation Type as Super Interface</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_ANNOTATION_SUPER_INTERFACE">COMPILER_PB_ANNOTATION_SUPER_INTERFACE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever an annotation
type is used as a super-interface. Though legal, this is discouraged.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Usage of 'assert' Identifier</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_ASSERT_IDENTIFIER">COMPILER_PB_ASSERT_IDENTIFIER</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever 'assert' is
used as an identifier (reserved keyword in 1.4)</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Boxing/Unboxing Conversion</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_AUTOBOXING">COMPILER_PB_AUTOBOXING</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever a boxing or an
unboxing conversion is performed.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Usage of char[] Expressions in String Concatenations</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_CHAR_ARRAY_IN_STRING_CONCATENATION">COMPILER_PB_CHAR_ARRAY_IN_STRING_CONCATENATION</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever a char[]
expression is used in String concatenations (e.g. "hello" + new char[]{'w','o','r','l','d'}).</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Deprecation</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_DEPRECATION">COMPILER_PB_DEPRECATION</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will signal use of deprecated API either as an error or
a warning.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Terminal Deprecation</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_TERMINAL_DEPRECATION">COMPILER_PB_TERMINAL_DEPRECATION</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will signal use of terminally deprecated API either as an
error or a warning.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Deprecation Inside Deprecated Code</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_DEPRECATION_IN_DEPRECATED_CODE">COMPILER_PB_DEPRECATION_IN_DEPRECATED_CODE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled, the compiler will signal use of deprecated API inside deprecated code
either as an error or a warning.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Deprecation When Overriding Deprecated Method</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_DEPRECATION_WHEN_OVERRIDING_DEPRECATED_METHOD">COMPILER_PB_DEPRECATION_WHEN_OVERRIDING_DEPRECATED_METHOD</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled, the compiler will signal the declaration of a method overriding a
deprecated one.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Discouraged Reference to Type with Restricted Access</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_DISCOURAGED_REFERENCE">COMPILER_PB_DISCOURAGED_REFERENCE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning when referring to a
type with discouraged access, as defined according to the access rule specifications.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Empty Statements and Unnecessary Semicolons</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_EMPTY_STATEMENT">COMPILER_PB_EMPTY_STATEMENT</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning if an empty statement
or a unnecessary semicolon is encountered.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Usage of 'enum' Identifier</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_ENUM_IDENTIFIER">COMPILER_PB_ENUM_IDENTIFIER</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever 'enum' is used
as an identifier (reserved keyword in 1.5).</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Switch Fall-Through Case</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FALLTHROUGH_CASE">COMPILER_PB_FALLTHROUGH_CASE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning when a case may be
entered by falling through a preceding, non empty case.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Treating Optional Errors as Fatal</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FATAL_OPTIONAL_ERROR">COMPILER_PB_FATAL_OPTIONAL_ERROR</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled, optional errors (i.e. optional problems which severity has been set
to "error") will be treated as standard compile errors, that is as fatal errors. When detecting a
fatal error in source code, the compiler generates problem methods/types into the corresponding
class files, in effect preventing the offending code from running until all issues get
resolved.<br />
When disabled, optional errors are only considered as warnings for code generation purposes, but
they still carry an error indicator to make them more severe than regular warnings.</td>
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Field Declaration Hiding another Variable</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FIELD_HIDING">COMPILER_PB_FIELD_HIDING</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever a field
declaration is hiding some field or local variable (either locally, inherited or defined in
enclosing type).</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Final Bound for Type Parameter</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FINAL_PARAMETER_BOUND">COMPILER_PB_FINAL_PARAMETER_BOUND</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever a generic type
parameter is associated with a bound corresponding to a final type; since final types cannot be
further extended, the parameter is pretty useless.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Finally Blocks Not Completing Normally</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING">COMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning when a finally block
does not complete normally.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Forbidden Reference to Type with Restricted Access</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_FORBIDDEN_REFERENCE">COMPILER_PB_FORBIDDEN_REFERENCE</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning when referring to a
type that is non accessible, as defined according to the access rule specifications.</td>
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR"><i>ERROR</i></a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Missing HashCode Method</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_MISSING_HASHCODE_METHOD">COMPILER_PB_MISSING_HASHCODE_METHOD</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning if a type overrides
Object.equals(Object) but does not override hashCode().</td>
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR"><i>ERROR</i></a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Hidden Catch Block</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_HIDDEN_CATCH_BLOCK">COMPILER_PB_HIDDEN_CATCH_BLOCK</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">Local to a try statement, some catch blocks may hide others , e.g.
<pre>
try {
throw new java.io.CharConversionException();
} catch (java.io.CharConversionException e) {
} catch (java.io.IOException e) {}.
</pre>
When enabling this option, the compiler will issue an error or a warning for hidden catch blocks
corresponding to checked exceptions.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><a name="INCLUDE_ASSERTS_IN_NULL_ANALYSIS" id=
"INCLUDE_ASSERTS_IN_NULL_ANALYSIS"></a><b>Reporting Null related problems as a consequnce of assert
statements</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_INCLUDE_ASSERTS_IN_NULL_ANALYSIS">COMPILER_PB_INCLUDE_ASSERTS_IN_NULL_ANALYSIS</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="2">When enabled, the compiler will raise null related errors or warnings for a
variable that got marked as potentially or definitely <code>null</code> or not <code>null</code>
inside an assert statement, and whose null state has not been modified by any other statement
following the assert.<br />
This option has an effect only when the compiler compliance is 1.4 or greater.<br />
Note that this option is only relevant in the context of the warnings raised by the options
<a href="#REDUNDANT_NULL_CHECK">COMPILER_PB_REDUNDANT_NULL_CHECK</a>, <a href=
"#NULL_REFERENCE">COMPILER_PB_NULL_REFERENCE</a>, and <a href=
"#POTENTIAL_NULL_REFERENCE">COMPILER_PB_POTENTIAL_NULL_REFERENCE</a> as a consequence of an assert
statement.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ENABLED">ENABLED</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#DISABLED">DISABLED</a></i></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Interface Method not Compatible with non-Inherited Methods</b>
(<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD">COMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever an interface
defines a method incompatible with a non-inherited Object one.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Incomplete Enum Switch</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_INCOMPLETE_ENUM_SWITCH">COMPILER_PB_INCOMPLETE_ENUM_SWITCH</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever an enum switch
statement lacks a default case. If no default case is given, additionally one error or warning is issued
regarding each enum constant for which a corresponding case label is lacking.</td>
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#ERROR">ERROR</a></b></td>
</tr>
<tr valign="top">
<td><b><i><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#WARNING">WARNING</a></i></b></td>
</tr>
<tr valign="top">
<td><b><a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#INFO">INFO</a></b></td>
</tr>
<tr valign="top">
<td><b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#IGNORE">IGNORE</a></b></td>
</tr>
<tr>
<td colspan="2"><b>Reporting Indirect Reference to a Static Member</b> (<b><a href=
"../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_PB_INDIRECT_STATIC_ACCESS">COMPILER_PB_INDIRECT_STATIC_ACCESS</a></b>)</td>
</tr>
<tr valign="top">
<td rowspan="4">When enabled, the compiler will issue an error or a warning whenever a static field