Stephan Herrmann | 6dcbb38 | 2011-10-25 16:30:31 +0000 | [diff] [blame] | 1 | ############################################################################### |
Stephan Herrmann | 6cecadb | 2012-02-26 01:08:39 +0100 | [diff] [blame] | 2 | # Copyright (c) 2000, 2012 IBM Corporation and others. |
Stephan Herrmann | 6dcbb38 | 2011-10-25 16:30:31 +0000 | [diff] [blame] | 3 | # All rights reserved. This program and the accompanying materials |
| 4 | # are made available under the terms of the Eclipse Public License v1.0 |
| 5 | # which accompanies this distribution, and is available at |
| 6 | # http://www.eclipse.org/legal/epl-v10.html |
| 7 | # |
| 8 | # Contributors: |
| 9 | # IBM Corporation - initial API and implementation |
| 10 | # Benjamin Muskalla - Contribution for bug 239066 |
| 11 | # Stephan Herrmann - Contributions for |
Stephan Herrmann | 2c38ab4 | 2012-01-28 20:42:28 +0100 | [diff] [blame] | 12 | # bug 236385 - [compiler] Warn for potential programming problem if an object is created but not used |
| 13 | # bug 295551 - Add option to automatically promote all warnings to errors |
| 14 | # bug 359721 - [options] add command line option for new warning token "resource" |
| 15 | # bug 365208 - [compiler][batch] command line options for annotation based null analysis |
Stephan Herrmann | 4f3f3d1 | 2012-04-28 23:46:59 +0200 | [diff] [blame] | 16 | # bug 374605 - Unreasonable warning for enum-based switch statements |
Stephan Herrmann | 6dcbb38 | 2011-10-25 16:30:31 +0000 | [diff] [blame] | 17 | ############################################################################### |
| 18 | ### JavaBatchCompiler messages. |
| 19 | |
| 20 | ### compiler |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 21 | #Format: compiler.name = word1 word2 word3 |
| 22 | compiler.name = Eclipse Compiler for Java(TM) |
| 23 | #Format: compiler.version = 0.XXX[, other words (don't forget the comma if adding other words)] |
Stephan Herrmann | 2feba95 | 2012-05-26 15:02:07 +0200 | [diff] [blame] | 24 | compiler.version = 0.C56, 3.8.0 |
Stephan Herrmann | 4f3f3d1 | 2012-04-28 23:46:59 +0200 | [diff] [blame] | 25 | compiler.copyright = Copyright IBM Corp 2000, 2012. All rights reserved. |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 26 | |
| 27 | ###{ObjectTeams: |
| 28 | otdtc.name = Extension for Object Teams |
Stephan Herrmann | 852ab2e | 2012-05-08 21:34:04 +0200 | [diff] [blame] | 29 | otdtc.version = 2.1.0 M7 |
Stephan Herrmann | 2c38ab4 | 2012-01-28 20:42:28 +0100 | [diff] [blame] | 30 | otdtc.copyright = Copyright by TU Berlin, Fraunhofer FIRST and others, 2004, 2012. |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 31 | ### SH} |
| 32 | ### progress |
| 33 | progress.compiling = Compiling |
| 34 | |
| 35 | ### compile |
| 36 | compile.repetition = [repetition {0}/{1}] |
| 37 | compile.instantTime = [compiled {0} lines in {1} ms: {2} lines/s] |
| 38 | compile.detailedTime = [parse: {0} ms ({1}%), resolve: {2} ms ({3}%), analyze: {4} ms ({5}%), generate: {6} ms ({7}%) ] |
| 39 | compile.ioTime = [i/o: read: {0} ms ({1}%), write: {2} ms ({3}%)] |
| 40 | compile.averageTime = [average, excluding min-max {0} lines in {1} ms: {2} lines/s] |
| 41 | compile.totalTime = [total compilation time: {0}] |
| 42 | compile.oneProblem = 1 problem ({0}) |
| 43 | compile.severalProblemsErrorsOrWarnings = {0} problems ({1}) |
| 44 | compile.severalProblemsErrorsAndWarnings = {0} problems ({1}, {2}) |
| 45 | compile.oneError = 1 error |
| 46 | compile.severalErrors = {0} errors |
| 47 | compile.oneWarning = 1 warning |
| 48 | compile.severalWarnings = {0} warnings |
| 49 | compile.oneClassFileGenerated = [1 .class file generated] |
| 50 | compile.severalClassFilesGenerated = [{0} .class files generated] |
| 51 | |
| 52 | ### configure |
| 53 | configure.requiresJDK1.2orAbove = Need to use a JVM >= 1.2 |
| 54 | configure.duplicateLog = duplicate log specification: {0} |
| 55 | configure.duplicateRepeat = duplicate repeat specification: {0} |
| 56 | configure.duplicateMaxProblems = duplicate max problems specification: {0} |
| 57 | configure.duplicateCompliance = duplicate compliance setting specification: {0} |
| 58 | configure.duplicateSource = duplicate source compliance setting specification: {0} |
| 59 | configure.duplicateTarget = duplicate target compliance setting specification: {0} |
| 60 | configure.source = source level should be comprised in between ''1.3'' and ''1.6'' (or ''5'', ''5.0'', ..., ''7'' or ''7.0''): {0} |
| 61 | configure.duplicateOutputPath = duplicate output path specification: {0} |
| 62 | configure.duplicateBootClasspath = duplicate bootclasspath specification: {0} |
| 63 | configure.duplicateExtDirs = duplicate extdirs specification: {0} |
| 64 | configure.duplicateSourcepath = duplicate sourcepath specification: {0} |
| 65 | configure.invalidDebugOption = invalid debug option: {0} |
| 66 | configure.invalidWarningConfiguration = invalid warning configuration: ''{0}'' |
| 67 | configure.invalidWarning = invalid warning token: ''{0}''. Ignoring warning and compiling |
| 68 | configure.invalidWarningOption = invalid warning option: ''{0}''. Must specify a warning token |
| 69 | configure.targetJDK = target level should be comprised in between ''1.1'' and ''1.7'' (or ''5'', ''5.0'', ..., ''7'' or ''7.0'') or cldc1.1: {0} |
| 70 | configure.incompatibleTargetForSource = Target level ''{0}'' is incompatible with source level ''{1}''. A target level ''{1}'' or better is required |
| 71 | configure.incompatibleTargetForGenericSource = Target level ''{0}'' is incompatible with source level ''{1}''. A source level ''1.5'' or better is required |
| 72 | configure.incompatibleComplianceForSource = Compliance level ''{0}'' is incompatible with source level ''{1}''. A compliance level ''{1}'' or better is required |
| 73 | configure.incompatibleComplianceForTarget = Compliance level ''{0}'' is incompatible with target level ''{1}''. A compliance level ''{1}'' or better is required |
| 74 | configure.repetition = repetition must be a positive integer: {0} |
| 75 | configure.maxProblems = max problems must be a positive integer: {0} |
Stephan Herrmann | b9e1052 | 2012-03-15 21:24:23 +0100 | [diff] [blame] | 76 | configure.invalidNowarnOption = invalid syntax for nowarn option: {0} |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 77 | |
| 78 | configure.invalidErrorConfiguration = invalid error configuration: ''{0}'' |
| 79 | configure.invalidError = invalid error token: ''{0}''. Ignoring this error token and compiling |
| 80 | configure.invalidErrorOption = invalid error option: ''{0}''. Must specify an error token |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 81 | |
| 82 | ## configure.directoryNotExist = directory does not exist: {0} |
| 83 | configure.unrecognizedOption = Unrecognized option : {0} |
| 84 | configure.noClasspath = no classpath defined, using default directory instead |
| 85 | configure.incorrectClasspath = incorrect classpath: {0} |
| 86 | configure.invalidexpansionargumentname = expansion argument file {0} does not exist or cannot be read |
| 87 | configure.cannotOpenLog = cannot open .log file: {0} |
| 88 | configure.cannotOpenLogInvalidEncoding = cannot open .log file: {0}; because UTF-8 is not supported |
| 89 | configure.unexpectedCustomEncoding = unexpected custom encoding specification: {0}[{1}] |
| 90 | configure.unsupportedEncoding = unsupported encoding format: {0} |
| 91 | configure.duplicateDefaultEncoding = duplicate default encoding format specification: {0} |
| 92 | configure.invalidTaskTag ={0} is an invalid task tag |
| 93 | configure.incorrectExtDirsEntry = incorrect ext dir entry; {0} must be a directory |
| 94 | configure.incorrectEndorsedDirsEntry = incorrect endorsed dir entry; {0} must be a directory |
| 95 | configure.duplicateEndorsedDirs = duplicate endorseddirs specification: {0} |
| 96 | configure.incorrectDestinationPathEntry = incorrect destination path entry: {0} |
| 97 | configure.unexpectedBracket = unexpected bracket: {0} |
| 98 | configure.unexpectedDestinationPathEntry = unexpected destination path entry in {0} option |
| 99 | configure.unexpectedDestinationPathEntryFile = unexpected destination path entry for file: {0} |
| 100 | configure.accessRuleAfterDestinationPath = access rules cannot follow destination path entries: {0} |
| 101 | configure.duplicateDestinationPathEntry = duplicate destination path entry in {0} option |
| 102 | configure.invalidClassName = invalid class name: {0} |
| 103 | configure.incorrectVMVersionforAPT = Annotation processing got disabled, since it requires a 1.6 compliant JVM |
| 104 | configure.incompatibleSourceForCldcTarget=Target level ''{0}'' is incompatible with source level ''{1}''. A source level ''1.3'' or lower is required |
| 105 | configure.incompatibleComplianceForCldcTarget=Target level ''{0}'' is incompatible with compliance level ''{1}''. A compliance level ''1.4''or lower is required |
| 106 | configure.invalidClasspathSection = invalid Class-Path header in manifest of jar file: {0} |
| 107 | configure.multipleClasspathSections = multiple Class-Path headers in manifest of jar file: {0} |
Stephan Herrmann | a55c341 | 2010-04-24 14:26:14 +0000 | [diff] [blame] | 108 | configure.missingwarningspropertiesfile=properties file {0} does not exist |
| 109 | configure.ioexceptionwarningspropertiesfile=An IOException occurred while reading the properties file {0} |
Stephan Herrmann | 6c186a4 | 2010-04-27 23:21:41 +0000 | [diff] [blame] | 110 | configure.multipleencodings=Multiple encoding specified: {1}. The default encoding has been set to {0} |
| 111 | configure.differentencodings=Found encoding {0}. Different encodings were specified: {1} |
| 112 | configure.differentencoding=Found encoding {0}. A different encoding was specified: {1} |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 113 | |
Stephan Herrmann | 2c38ab4 | 2012-01-28 20:42:28 +0100 | [diff] [blame] | 114 | ### null annotations |
| 115 | configure.invalidNullAnnot = Token {0} is not in the expected format "nullAnnot(<non null annotation name> | <nullable annotation name> | <non-null by default annotation name>)" |
| 116 | |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 117 | ### requestor |
| 118 | requestor.error = {0}. ERROR in {1} |
| 119 | requestor.warning = {0}. WARNING in {1} |
Stephan Herrmann | 29b019c | 2011-04-26 10:30:44 +0000 | [diff] [blame] | 120 | requestor.extraerror = {0}. Error: |
| 121 | requestor.extrawarning = {0}. Warning: |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 122 | requestor.notRetrieveErrorMessage = Cannot retrieve the error message for {0} |
| 123 | requestor.noFileNameSpecified = (original file name is not available) |
| 124 | |
| 125 | ### EMACS STYLE |
| 126 | output.emacs.error=error |
| 127 | output.emacs.warning=warning |
| 128 | |
| 129 | ### unit |
| 130 | unit.more = File {0} is specified more than once |
| 131 | unit.missing = File {0} is missing |
| 132 | |
| 133 | ### output |
| 134 | output.noClassFileCreated = No .class file created for file {1} in {0} because of an IOException: {2} |
| 135 | |
| 136 | ### miscellaneous |
| 137 | ### {ObjectTeams: one for testing the other for -version command |
| 138 | misc.version.orig = {0} {1}, {2} |
| 139 | misc.version = {0} {1}, {2}\n{3}, {4}, {5} |
| 140 | ### SH} |
| 141 | misc.usage = {1} {2}\n\ |
| 142 | {3}\n\ |
| 143 | \ \n\ |
| 144 | \ Usage: <options> <source files | directories>\n\ |
| 145 | \ If directories are specified, then their source contents are compiled.\n\ |
| 146 | \ Possible options are listed below. Options enabled by default are prefixed\n\ |
| 147 | \ with ''+''.\n\ |
| 148 | \ \n\ |
| 149 | \ Classpath options:\n\ |
| 150 | \ -cp -classpath <directories and ZIP archives separated by {0}>\n\ |
| 151 | \ specify location for application classes and sources.\n\ |
| 152 | \ Each directory or file can specify access rules for\n\ |
| 153 | \ types between ''['' and '']'' (e.g. [-X] to forbid\n\ |
| 154 | \ access to type X, [~X] to discourage access to type X,\n\ |
| 155 | \ [+p/X{0}-p/*] to forbid access to all types in package p\n\ |
| 156 | \ but allow access to p/X)\n\ |
| 157 | \ -bootclasspath <directories and ZIP archives separated by {0}>\n\ |
| 158 | \ specify location for system classes. Each directory or\n\ |
| 159 | \ file can specify access rules for types between ''[''\n\ |
| 160 | \ and '']''\n\ |
| 161 | \ -sourcepath <directories and ZIP archives separated by {0}>\n\ |
| 162 | \ specify location for application sources. Each directory\n\ |
| 163 | \ or file can specify access rules for types between ''[''\n\ |
| 164 | \ and '']''. Each directory can further specify a specific\n\ |
| 165 | \ destination directory using a ''-d'' option between ''[''\n\ |
| 166 | \ and '']''; this overrides the general ''-d'' option.\n\ |
| 167 | \ .class files created from source files contained in a\n\ |
| 168 | \ jar file are put in the user.dir folder in case no\n\ |
| 169 | \ general ''-d'' option is specified. ZIP archives cannot\n\ |
| 170 | \ override the general ''-d'' option\n\ |
| 171 | \ -extdirs <directories separated by {0}>\n\ |
| 172 | \ specify location for extension ZIP archives\n\ |
| 173 | \ -endorseddirs <directories separated by {0}>\n\ |
| 174 | \ specify location for endorsed ZIP archives\n\ |
| 175 | \ -d <dir> destination directory (if omitted, no directory is\n\ |
| 176 | \ created); this option can be overridden per source\n\ |
| 177 | \ directory\n\ |
| 178 | \ -d none generate no .class files\n\ |
Stephan Herrmann | e042d00 | 2010-06-05 13:49:29 +0000 | [diff] [blame] | 179 | \ -encoding <enc> specify default encoding for all source files. Each\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 180 | \ file/directory can override it when suffixed with\n\ |
Stephan Herrmann | 6c186a4 | 2010-04-27 23:21:41 +0000 | [diff] [blame] | 181 | \ ''[''<enc>'']'' (e.g. X.java[utf8]).\n\ |
Stephan Herrmann | e042d00 | 2010-06-05 13:49:29 +0000 | [diff] [blame] | 182 | \ If multiple default encodings are specified, the last\n\ |
| 183 | \ one will be used.\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 184 | \ \n\ |
| 185 | \ Compliance options:\n\ |
| 186 | \ -1.3 use 1.3 compliance (-source 1.3 -target 1.1)\n\ |
| 187 | \ -1.4 + use 1.4 compliance (-source 1.3 -target 1.2)\n\ |
| 188 | \ -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5)\n\ |
| 189 | \ -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6)\n\ |
| 190 | \ -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7)\n\ |
| 191 | \ -source <version> set source level: 1.3 to 1.7 (or 5, 5.0, etc)\n\ |
| 192 | \ -target <version> set classfile target: 1.1 to 1.7 (or 5, 5.0, etc)\n\ |
| 193 | \ cldc1.1 can also be used to generate the StackMap\n\ |
| 194 | \ attribute\n\ |
| 195 | \ \n\ |
| 196 | \ Warning options:\n\ |
| 197 | \ -deprecation + deprecation outside deprecated code (equivalent to\n\ |
| 198 | \ -warn:+deprecation)\n\ |
| 199 | \ -nowarn -warn:none disable all warnings\n\ |
Stephan Herrmann | b9e1052 | 2012-03-15 21:24:23 +0100 | [diff] [blame] | 200 | \ -nowarn:[<directories separated by {0}>]\n\ |
| 201 | \ specify directories from which optional problems should\n\ |
| 202 | \ be ignored\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 203 | \ -?:warn -help:warn display advanced warning options\n\ |
| 204 | \ \n\ |
| 205 | \ Error options:\n\ |
| 206 | \ -err:<warnings separated by ,> convert exactly the listed warnings\n\ |
| 207 | \ to be reported as errors\n\ |
| 208 | \ -err:+<warnings separated by ,> enable additional warnings to be\n\ |
| 209 | \ reported as errors\n\ |
| 210 | \ -err:-<warnings separated by ,> disable specific warnings to be\n\ |
| 211 | \ reported as errors\n\ |
| 212 | \ \n\ |
Stephan Herrmann | a55c341 | 2010-04-24 14:26:14 +0000 | [diff] [blame] | 213 | \ Setting warning or error options using properties file:\n\ |
Stephan Herrmann | 54669f8 | 2012-05-08 19:36:39 +0200 | [diff] [blame] | 214 | \ -properties <file> set warnings/errors option based on the properties\n\ |
Stephan Herrmann | a55c341 | 2010-04-24 14:26:14 +0000 | [diff] [blame] | 215 | \ file contents. This option can be used with -nowarn,\n\ |
| 216 | \ -err:.. or -warn:.. options, but the last one on the\n\ |
| 217 | \ command line sets the options to be used.\n\ |
| 218 | \ \n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 219 | \ Debug options:\n\ |
| 220 | \ -g[:lines,vars,source] custom debug info\n\ |
| 221 | \ -g:lines,source + both lines table and source debug info\n\ |
| 222 | \ -g all debug info\n\ |
| 223 | \ -g:none no debug info\n\ |
| 224 | \ -preserveAllLocals preserve unused local vars for debug purpose\n\ |
| 225 | \ \n\ |
| 226 | \ Annotation processing options:\n\ |
| 227 | \ These options are meaningful only in a 1.6 environment.\n\ |
| 228 | \ -Akey[=value] options that are passed to annotation processors\n\ |
| 229 | \ -processorpath <directories and ZIP archives separated by {0}>\n\ |
| 230 | \ specify locations where to find annotation processors.\n\ |
| 231 | \ If this option is not used, the classpath will be\n\ |
| 232 | \ searched for processors\n\ |
| 233 | \ -processor <class1[,class2,...]>\n\ |
| 234 | \ qualified names of the annotation processors to run.\n\ |
| 235 | \ This bypasses the default annotation discovery process\n\ |
| 236 | \ -proc:only run annotation processors, but do not compile\n\ |
| 237 | \ -proc:none perform compilation but do not run annotation\n\ |
| 238 | \ processors\n\ |
| 239 | \ -s <dir> destination directory for generated source files\n\ |
| 240 | \ -XprintProcessorInfo print information about which annotations and elements\n\ |
| 241 | \ a processor is asked to process\n\ |
| 242 | \ -XprintRounds print information about annotation processing rounds\n\ |
| 243 | \ -classNames <className1[,className2,...]>\n\ |
| 244 | \ qualified names of binary classes to process\n\ |
| 245 | \ \n\ |
| 246 | \ Advanced options:\n\ |
| 247 | \ @<file> read command line arguments from file\n\ |
| 248 | \ -maxProblems <n> max number of problems per compilation unit (100 by\n\ |
| 249 | \ default)\n\ |
| 250 | \ -log <file> log to a file. If the file extension is ''.xml'', then\n\ |
| 251 | \ the log will be a xml file.\n\ |
| 252 | \ -proceedOnError[:Fatal]\n\ |
| 253 | \ do not stop at first error, dumping class files with\n\ |
| 254 | \ problem methods\n\ |
| 255 | \ With ":Fatal", all optional errors are treated as fatal\n\ |
| 256 | \ -verbose enable verbose output\n\ |
| 257 | \ -referenceInfo compute reference info\n\ |
| 258 | \ -progress show progress (only in -log mode)\n\ |
| 259 | \ -time display speed information \n\ |
| 260 | \ -noExit do not call System.exit(n) at end of compilation (n==0\n\ |
| 261 | \ if no error)\n\ |
| 262 | \ -repeat <n> repeat compilation process <n> times for perf analysis\n\ |
| 263 | \ -inlineJSR inline JSR bytecode (implicit if target >= 1.5)\n\ |
| 264 | \ -enableJavadoc consider references in javadoc\n\ |
| 265 | \ -Xemacs used to enable emacs-style output in the console.\n\ |
| 266 | \ It does not affect the xml log output\n\ |
Stephan Herrmann | b9e1052 | 2012-03-15 21:24:23 +0100 | [diff] [blame] | 267 | \ -missingNullDefault report missing default nullness annotation\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 268 | \ \n\ |
| 269 | \ -? -help print this help message\n\ |
| 270 | \ -v -version print compiler version\n\ |
| 271 | \ -showversion print compiler version and continue\n\ |
| 272 | \ \n\ |
| 273 | \ Ignored options:\n\ |
| 274 | \ -J<option> pass option to virtual machine (ignored)\n\ |
| 275 | \ -X<option> specify non-standard option (ignored\n\ |
| 276 | \ except for listed -X options)\n\ |
| 277 | \ -X print non-standard options and exit (ignored)\n\ |
| 278 | \ -O optimize for execution time (ignored)\n |
| 279 | ##{ObjectTeams: OT-warning tokens added |
| 280 | misc.usage.warn = {1} {2}\n\ |
| 281 | {3}\n\ |
| 282 | \ \n\ |
| 283 | \ Warning options:\n\ |
| 284 | \ -deprecation + deprecation outside deprecated code\n\ |
| 285 | \ -nowarn -warn:none disable all warnings\n\ |
Stephan Herrmann | b9e1052 | 2012-03-15 21:24:23 +0100 | [diff] [blame] | 286 | \ -nowarn:[<directories separated by {0}>]\n\ |
| 287 | \ specify directories from which optional problems should\n\ |
| 288 | \ be ignored\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 289 | \ -warn:<warnings separated by ,> enable exactly the listed warnings\n\ |
| 290 | \ -warn:+<warnings separated by ,> enable additional warnings\n\ |
| 291 | \ -warn:-<warnings separated by ,> disable specific warnings\n\ |
| 292 | \ abstractrelevantrole + abstract relevant role (OTJLD 2.5(b))\n\ |
| 293 | \ adaptDeprecated + adapting a deprecated type/method\n\ |
Stephan Herrmann | 6dcbb38 | 2011-10-25 16:30:31 +0000 | [diff] [blame] | 294 | \ all enable all warnings\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 295 | \ allDeadCode dead code including trivial if(DEBUG) check\n\ |
| 296 | \ allDeprecation deprecation including inside deprecated code\n\ |
| 297 | \ allJavadoc invalid or missing javadoc\n\ |
| 298 | \ allOver-ann all missing @Override annotations\n\ |
Stephan Herrmann | bb25a05 | 2011-01-27 11:59:20 +0000 | [diff] [blame] | 299 | \ all-static-method all method can be declared as static warnings\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 300 | \ ambiguousbinding + ambiguous role-base bindings (OTJLD 2.3.4(a))\n\ |
| 301 | \ ambiguouslowering + ambiguous lowering or upcast (OTJLD 2.2(f))\n\ |
| 302 | \ assertIdentifier + ''assert'' used as identifier\n\ |
| 303 | \ basecall + base call not issued exactly once on each path\n\ |
| 304 | \ (OTJLD 4.3(b,c))\n\ |
Stephan Herrmann | 7464c32 | 2010-07-09 16:05:38 +0000 | [diff] [blame] | 305 | \ baseclasscycle + role involved in a baseclass-member cycle\n\ |
| 306 | \ (OTJLD 2.1.2(b)\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 307 | \ bindingconventions + discouraged use of import / import base\n\ |
| 308 | \ (OTJLD 2.1.2(d))\n\ |
| 309 | \ bindingtosystemclass + trying to bind a role to a system class\n\ |
| 310 | \ boxing autoboxing conversion\n\ |
| 311 | \ charConcat + char[] in String concat\n\ |
| 312 | \ compareIdentical + comparing identical expressions\n\ |
| 313 | \ conditionAssign possible accidental boolean assignment\n\ |
| 314 | \ constructorName + method with constructor name\n\ |
| 315 | \ dangerouscallin + dangerous callin binding (hashCode or equals)\n\ |
| 316 | \ deadCode + dead code excluding trivial if (DEBUG) check\n\ |
| 317 | \ decapsulation + overriding access restrictions of a base class\n\ |
| 318 | \ (OTJLD 3.4)\n\ |
| 319 | \ dep-ann missing @Deprecated annotation\n\ |
| 320 | \ deprecation + deprecation outside deprecated code\n\ |
| 321 | \ discouraged + use of types matching a discouraged access rule\n\ |
| 322 | \ emptyBlock undocumented empty block\n\ |
| 323 | \ enumIdentifier ''enum'' used as identifier\n\ |
| 324 | \ enumSwitch incomplete enum switch\n\ |
Stephan Herrmann | 4f3f3d1 | 2012-04-28 23:46:59 +0200 | [diff] [blame] | 325 | \ enumSwitchPedantic + report missing enum switch cases even\n\ |
| 326 | \ in the presence of a default case\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 327 | \ exceptioninguard + guard predicate throwing checked exception\n\ |
| 328 | \ fallthrough possible fall-through case\n\ |
| 329 | \ fieldHiding field hiding another variable\n\ |
| 330 | \ finalBound type parameter with final bound\n\ |
| 331 | \ finally + finally block not completing normally\n\ |
| 332 | \ forbidden + use of types matching a forbidden access rule\n\ |
| 333 | \ fragilecallin + replace callin not providing expected result\n\ |
| 334 | \ (OTJLD 4.3(e))\n\ |
| 335 | \ hashCode missing hashCode() method when overriding equals()\n\ |
Stephan Herrmann | e283d5e | 2011-05-12 15:58:02 +0000 | [diff] [blame] | 336 | \ hiddenLiftingProblem + a lifting that is not directly visible in source\n\ |
| 337 | \ code could fail at runtime (OTJLD 2.3.5)\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 338 | \ hiding macro for fieldHiding, localHiding, typeHiding and\n\ |
| 339 | \ maskedCatchBlock\n\ |
Stephan Herrmann | 016c426 | 2010-10-20 22:02:18 +0000 | [diff] [blame] | 340 | \ includeAssertNull raise null warnings for variables\n\ |
| 341 | \ that got tainted in an assert expression\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 342 | \ indirectStatic indirect reference to static member\n\ |
| 343 | \ inferredcallout + a callout binding has to be inferred (OTJLD 3.1(j))\n\ |
| 344 | \ intfAnnotation + annotation type used as super interface\n\ |
| 345 | \ intfNonInherited + interface non-inherited method compatibility\n\ |
| 346 | \ intfRedundant find redundant superinterfaces\n\ |
| 347 | \ javadoc invalid javadoc\n\ |
| 348 | \ localHiding local variable hiding another variable\n\ |
| 349 | \ maskedCatchBlock + hidden catch block\n\ |
| 350 | \ nls string literal lacking non-nls tag //$NON-NLS-<n>$\n\ |
| 351 | \ noEffectAssign + assignment without effect\n\ |
| 352 | \ null potential missing or redundant null check\n\ |
Stephan Herrmann | 2c38ab4 | 2012-01-28 20:42:28 +0100 | [diff] [blame] | 353 | \ nullAnnot(<annot. names separated by |>) + annotation based null analysis,\n\ |
| 354 | \ nullable|nonnull|nonnullbydefault annotation types\n\ |
| 355 | \ optionally specified using fully qualified names\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 356 | \ nullDereference + missing null check\n\ |
| 357 | \ over-ann missing @Override annotation (superclass)\n\ |
| 358 | \ paramAssign assignment to a parameter\n\ |
| 359 | \ pkgDefaultMethod + attempt to override package-default method\n\ |
| 360 | \ raw + usage of raw type\n\ |
Stephan Herrmann | 6dcbb38 | 2011-10-25 16:30:31 +0000 | [diff] [blame] | 361 | \ resource + (pot.) unsafe usage of resource of type Closeable\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 362 | \ roleinstantiation + unsafe instantiation of a role\n\ |
| 363 | \ (OTJLD 2.4.1(c), 2.4.3)\n\ |
| 364 | \ roletypesyntax + old style syntax for role types (dependent types)\n\ |
| 365 | \ (OTJLD 1.2.2(b))\n\ |
| 366 | \ semicolon unnecessary semicolon, empty statement\n\ |
| 367 | \ serial + missing serialVersionUID\n\ |
| 368 | \ specialParamHiding constructor or setter parameter hiding a field\n\ |
Stephan Herrmann | bb25a05 | 2011-01-27 11:59:20 +0000 | [diff] [blame] | 369 | \ static-method method can be declared as static\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 370 | \ static-access macro for indirectStatic and staticReceiver\n\ |
| 371 | \ staticReceiver + non-static reference to static member\n\ |
| 372 | \ super overriding a method without making a super invocation\n\ |
| 373 | \ suppress + enable @SuppressWarnings\n\ |
Stephan Herrmann | e5d6be8 | 2010-04-02 03:29:32 +0000 | [diff] [blame] | 374 | \ When used with -err:, it can also silent optional\n\ |
| 375 | \ errors and warnings\n\ |
Stephan Herrmann | 4f3f3d1 | 2012-04-28 23:46:59 +0200 | [diff] [blame] | 376 | \ switchDefault + switch statement lacking a default case\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 377 | \ syncOverride missing synchronized in synchr. method override\n\ |
| 378 | \ syntheticAccess synthetic access for innerclass\n\ |
| 379 | \ tasks(<tags separated by |>) tasks identified by tags inside comments\n\ |
| 380 | \ typeHiding + type parameter hiding another type\n\ |
Stephan Herrmann | 0e64ff6 | 2011-03-10 18:42:36 +0000 | [diff] [blame] | 381 | \ unavoidableGenericProblems + ignore unavoidable type safety problems\n\ |
| 382 | \ due to raw APIs\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 383 | \ unchecked + unchecked type operation\n\ |
| 384 | \ unnecessaryElse unnecessary else clause\n\ |
| 385 | \ unqualifiedField unqualified reference to field\n\ |
| 386 | \ unused macro for unusedAllocation, unusedArgument,\n\ |
| 387 | \ unusedImport, unusedLabel, unusedLocal,\n\ |
| 388 | \ unusedPrivate, unusedThrown, and unusedTypeArgs\n\ |
| 389 | \ unusedAllocation allocating an object that is not used\n\ |
| 390 | \ unusedArgument unread method parameter\n\ |
| 391 | \ unusedImport + unused import declaration\n\ |
| 392 | \ unusedLabel + unused label\n\ |
| 393 | \ unusedLocal + unread local variable\n\ |
| 394 | \ unusedPrivate + unused private member declaration\n\ |
| 395 | \ unusedThrown unused declared thrown exception\n\ |
Stephan Herrmann | dd780c6 | 2011-08-13 11:41:32 +0000 | [diff] [blame] | 396 | \ unusedTypeArgs + unused type arguments for method and constructor\n\ |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 397 | \ uselessTypeCheck unnecessary cast/instanceof operation\n\ |
| 398 | \ varargsCast + varargs argument need explicit cast\n\ |
| 399 | \ warningToken + unsupported or unnecessary @SuppressWarnings\n |
| 400 | ## SH} |