1.1 --- a/src/share/classes/com/sun/tools/javac/resources/compiler.properties Mon Jul 26 14:18:45 2010 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/resources/compiler.properties Mon Jul 26 14:25:56 2010 -0700 1.3 @@ -697,25 +697,31 @@ 1.4 compiler.warn.warning=\ 1.5 warning:\u0020 1.6 1.7 +## Warning messages may also include the following prefix to identify a 1.8 +## lint option 1.9 +compiler.warn.lintOption=\ 1.10 + [{0}]\u0020 1.11 + 1.12 compiler.warn.constant.SVUID=\ 1.13 - [serial] serialVersionUID must be constant in class {0} 1.14 + serialVersionUID must be constant in class {0} 1.15 1.16 compiler.warn.dir.path.element.not.found=\ 1.17 - [path] bad path element "{0}": no such directory 1.18 + bad path element "{0}": no such directory 1.19 1.20 compiler.warn.finally.cannot.complete=\ 1.21 - [finally] finally clause cannot complete normally 1.22 + finally clause cannot complete normally 1.23 1.24 compiler.warn.has.been.deprecated=\ 1.25 - [deprecation] {0} in {1} has been deprecated 1.26 + {0} in {1} has been deprecated 1.27 1.28 compiler.warn.sun.proprietary=\ 1.29 {0} is internal proprietary API and may be removed in a future release 1.30 1.31 compiler.warn.illegal.char.for.encoding=\ 1.32 unmappable character for encoding {0} 1.33 + 1.34 compiler.warn.improper.SVUID=\ 1.35 - [serial] serialVersionUID must be declared static final in class {0} 1.36 + serialVersionUID must be declared static final in class {0} 1.37 1.38 compiler.warn.inexact.non-varargs.call=\ 1.39 non-varargs call of varargs method with inexact argument type for last parameter;\n\ 1.40 @@ -723,10 +729,10 @@ 1.41 cast to {1} for a non-varargs call and to suppress this warning 1.42 1.43 compiler.warn.long.SVUID=\ 1.44 - [serial] serialVersionUID must be of type long in class {0} 1.45 + serialVersionUID must be of type long in class {0} 1.46 1.47 compiler.warn.missing.SVUID=\ 1.48 - [serial] serializable class {0} has no definition of serialVersionUID 1.49 + serializable class {0} has no definition of serialVersionUID 1.50 1.51 compiler.warn.override.varargs.missing=\ 1.52 {0}; overridden method has no ''...'' 1.53 @@ -737,13 +743,15 @@ 1.54 1.55 compiler.warn.pkg-info.already.seen=\ 1.56 a package-info.java file has already been seen for package {0} 1.57 + 1.58 compiler.warn.path.element.not.found=\ 1.59 - [path] bad path element "{0}": no such file or directory 1.60 + bad path element "{0}": no such file or directory 1.61 + 1.62 compiler.warn.possible.fall-through.into.case=\ 1.63 - [fallthrough] possible fall-through into case 1.64 + possible fall-through into case 1.65 1.66 compiler.warn.redundant.cast=\ 1.67 - [cast] redundant cast to {0} 1.68 + redundant cast to {0} 1.69 1.70 compiler.warn.position.overflow=\ 1.71 Position encoding overflows at line {0} 1.72 @@ -753,7 +761,7 @@ 1.73 It is recommended that the compiler be upgraded. 1.74 1.75 compiler.warn.static.not.qualified.by.type=\ 1.76 - [static] static {0} should be qualified by type name, {1}, instead of by an expression 1.77 + static {0} should be qualified by type name, {1}, instead of by an expression 1.78 1.79 # Warnings related to annotation processing 1.80 compiler.warn.proc.package.does.not.exist=\ 1.81 @@ -808,38 +816,38 @@ 1.82 compiler.warn.automatic.resource.not.referenced=\ 1.83 [arm] automatic resource {0} is never referenced in body of corresponding try statement 1.84 compiler.warn.unchecked.assign=\ 1.85 - [unchecked] unchecked assignment: {0} to {1} 1.86 + unchecked assignment: {0} to {1} 1.87 compiler.warn.unchecked.assign.to.var=\ 1.88 - [unchecked] unchecked assignment to variable {0} as member of raw type {1} 1.89 + unchecked assignment to variable {0} as member of raw type {1} 1.90 compiler.warn.unchecked.call.mbr.of.raw.type=\ 1.91 - [unchecked] unchecked call to {0} as a member of the raw type {1} 1.92 + unchecked call to {0} as a member of the raw type {1} 1.93 compiler.warn.unchecked.cast.to.type=\ 1.94 - [unchecked] unchecked cast to type {0} 1.95 + unchecked cast to type {0} 1.96 compiler.warn.unchecked.meth.invocation.applied=\ 1.97 - [unchecked] unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ 1.98 + unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ 1.99 required: {2}\n\ 1.100 found: {3} 1.101 1.102 compiler.warn.unchecked.generic.array.creation=\ 1.103 - [unchecked] unchecked generic array creation for varargs parameter of type {0} 1.104 + unchecked generic array creation for varargs parameter of type {0} 1.105 1.106 compiler.warn.varargs.non.reifiable.type=\ 1.107 - [varargs] Possible heap pollution from parameterized vararg type {0} 1.108 + Possible heap pollution from parameterized vararg type {0} 1.109 1.110 compiler.warn.missing.deprecated.annotation=\ 1.111 - [dep-ann] deprecated item is not annotated with @Deprecated 1.112 + deprecated item is not annotated with @Deprecated 1.113 1.114 compiler.warn.invalid.archive.file=\ 1.115 - [path] Unexpected file on path: {0} 1.116 + Unexpected file on path: {0} 1.117 1.118 compiler.warn.unexpected.archive.file=\ 1.119 - [path] Unexpected extension for archive file: {0} 1.120 + Unexpected extension for archive file: {0} 1.121 1.122 compiler.warn.div.zero=\ 1.123 - [divzero] division by zero 1.124 + division by zero 1.125 1.126 compiler.warn.empty.if=\ 1.127 - [empty] empty statement after if 1.128 + empty statement after if 1.129 1.130 compiler.warn.annotation.method.not.found=\ 1.131 Cannot find annotation method ''{1}()'' in type ''{0}'' 1.132 @@ -848,7 +856,7 @@ 1.133 Cannot find annotation method ''{1}()'' in type ''{0}'': {2} 1.134 1.135 compiler.warn.raw.class.use=\ 1.136 - [rawtypes] found raw type: {0}\n\ 1.137 + found raw type: {0}\n\ 1.138 missing type parameters for generic class {1} 1.139 1.140 ##### 1.141 @@ -1006,13 +1014,13 @@ 1.142 possible loss of precision 1.143 1.144 compiler.misc.unchecked.assign=\ 1.145 - [unchecked] unchecked conversion 1.146 + unchecked conversion 1.147 # compiler.misc.storecheck=\ 1.148 -# [unchecked] assignment might cause later store checks to fail 1.149 +# assignment might cause later store checks to fail 1.150 # compiler.misc.unchecked=\ 1.151 -# [unchecked] assigned array cannot dynamically check its stores 1.152 +# assigned array cannot dynamically check its stores 1.153 compiler.misc.unchecked.cast.to.type=\ 1.154 - [unchecked] unchecked cast 1.155 + unchecked cast 1.156 1.157 compiler.misc.assignment.from.super-bound=\ 1.158 assignment from super-bound type {0} 1.159 @@ -1182,11 +1190,11 @@ 1.160 return type {1} is not compatible with {2} 1.161 1.162 compiler.warn.override.unchecked.ret=\ 1.163 - [unchecked] {0}\n\ 1.164 + {0}\n\ 1.165 return type requires unchecked conversion from {1} to {2} 1.166 1.167 compiler.warn.override.unchecked.thrown=\ 1.168 - [unchecked] {0}\n\ 1.169 + {0}\n\ 1.170 overridden method does not throw {1} 1.171 1.172 ## The following are all possible strings for the first argument ({0}) of the