diff -r d055fa8ced62 -r dd513881e71d langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties --- a/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Mon Jul 26 14:18:45 2010 -0700 +++ b/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Mon Jul 26 14:25:56 2010 -0700 @@ -697,25 +697,31 @@ compiler.warn.warning=\ warning:\u0020 +## Warning messages may also include the following prefix to identify a +## lint option +compiler.warn.lintOption=\ + [{0}]\u0020 + compiler.warn.constant.SVUID=\ - [serial] serialVersionUID must be constant in class {0} + serialVersionUID must be constant in class {0} compiler.warn.dir.path.element.not.found=\ - [path] bad path element "{0}": no such directory + bad path element "{0}": no such directory compiler.warn.finally.cannot.complete=\ - [finally] finally clause cannot complete normally + finally clause cannot complete normally compiler.warn.has.been.deprecated=\ - [deprecation] {0} in {1} has been deprecated + {0} in {1} has been deprecated compiler.warn.sun.proprietary=\ {0} is internal proprietary API and may be removed in a future release compiler.warn.illegal.char.for.encoding=\ unmappable character for encoding {0} + compiler.warn.improper.SVUID=\ - [serial] serialVersionUID must be declared static final in class {0} + serialVersionUID must be declared static final in class {0} compiler.warn.inexact.non-varargs.call=\ non-varargs call of varargs method with inexact argument type for last parameter;\n\ @@ -723,10 +729,10 @@ cast to {1} for a non-varargs call and to suppress this warning compiler.warn.long.SVUID=\ - [serial] serialVersionUID must be of type long in class {0} + serialVersionUID must be of type long in class {0} compiler.warn.missing.SVUID=\ - [serial] serializable class {0} has no definition of serialVersionUID + serializable class {0} has no definition of serialVersionUID compiler.warn.override.varargs.missing=\ {0}; overridden method has no ''...'' @@ -737,13 +743,15 @@ compiler.warn.pkg-info.already.seen=\ a package-info.java file has already been seen for package {0} + compiler.warn.path.element.not.found=\ - [path] bad path element "{0}": no such file or directory + bad path element "{0}": no such file or directory + compiler.warn.possible.fall-through.into.case=\ - [fallthrough] possible fall-through into case + possible fall-through into case compiler.warn.redundant.cast=\ - [cast] redundant cast to {0} + redundant cast to {0} compiler.warn.position.overflow=\ Position encoding overflows at line {0} @@ -753,7 +761,7 @@ It is recommended that the compiler be upgraded. compiler.warn.static.not.qualified.by.type=\ - [static] static {0} should be qualified by type name, {1}, instead of by an expression + static {0} should be qualified by type name, {1}, instead of by an expression # Warnings related to annotation processing compiler.warn.proc.package.does.not.exist=\ @@ -808,38 +816,38 @@ compiler.warn.automatic.resource.not.referenced=\ [arm] automatic resource {0} is never referenced in body of corresponding try statement compiler.warn.unchecked.assign=\ - [unchecked] unchecked assignment: {0} to {1} + unchecked assignment: {0} to {1} compiler.warn.unchecked.assign.to.var=\ - [unchecked] unchecked assignment to variable {0} as member of raw type {1} + unchecked assignment to variable {0} as member of raw type {1} compiler.warn.unchecked.call.mbr.of.raw.type=\ - [unchecked] unchecked call to {0} as a member of the raw type {1} + unchecked call to {0} as a member of the raw type {1} compiler.warn.unchecked.cast.to.type=\ - [unchecked] unchecked cast to type {0} + unchecked cast to type {0} compiler.warn.unchecked.meth.invocation.applied=\ - [unchecked] unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ + unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ required: {2}\n\ found: {3} compiler.warn.unchecked.generic.array.creation=\ - [unchecked] unchecked generic array creation for varargs parameter of type {0} + unchecked generic array creation for varargs parameter of type {0} compiler.warn.varargs.non.reifiable.type=\ - [varargs] Possible heap pollution from parameterized vararg type {0} + Possible heap pollution from parameterized vararg type {0} compiler.warn.missing.deprecated.annotation=\ - [dep-ann] deprecated item is not annotated with @Deprecated + deprecated item is not annotated with @Deprecated compiler.warn.invalid.archive.file=\ - [path] Unexpected file on path: {0} + Unexpected file on path: {0} compiler.warn.unexpected.archive.file=\ - [path] Unexpected extension for archive file: {0} + Unexpected extension for archive file: {0} compiler.warn.div.zero=\ - [divzero] division by zero + division by zero compiler.warn.empty.if=\ - [empty] empty statement after if + empty statement after if compiler.warn.annotation.method.not.found=\ Cannot find annotation method ''{1}()'' in type ''{0}'' @@ -848,7 +856,7 @@ Cannot find annotation method ''{1}()'' in type ''{0}'': {2} compiler.warn.raw.class.use=\ - [rawtypes] found raw type: {0}\n\ + found raw type: {0}\n\ missing type parameters for generic class {1} ##### @@ -1006,13 +1014,13 @@ possible loss of precision compiler.misc.unchecked.assign=\ - [unchecked] unchecked conversion + unchecked conversion # compiler.misc.storecheck=\ -# [unchecked] assignment might cause later store checks to fail +# assignment might cause later store checks to fail # compiler.misc.unchecked=\ -# [unchecked] assigned array cannot dynamically check its stores +# assigned array cannot dynamically check its stores compiler.misc.unchecked.cast.to.type=\ - [unchecked] unchecked cast + unchecked cast compiler.misc.assignment.from.super-bound=\ assignment from super-bound type {0} @@ -1182,11 +1190,11 @@ return type {1} is not compatible with {2} compiler.warn.override.unchecked.ret=\ - [unchecked] {0}\n\ + {0}\n\ return type requires unchecked conversion from {1} to {2} compiler.warn.override.unchecked.thrown=\ - [unchecked] {0}\n\ + {0}\n\ overridden method does not throw {1} ## The following are all possible strings for the first argument ({0}) of the