1402 |
|
=================================================================== --> |
1403 |
|
<property name="errorprone.jar" location="${lib.dir}/error_prone_ant-2.2.0.jar"/> |
1404 |
|
<property name="errorprone.jsr166.flags" |
1405 |
< |
value="-Xep:BoxedPrimitiveConstructor:OFF |
1406 |
< |
-Xep:HashtableContains:OFF |
1405 |
> |
value="-Xep:HashtableContains:OFF |
1406 |
|
-Xep:JdkObsolete:OFF |
1408 |
– |
-Xep:ModifyingCollectionWithItself:OFF |
1407 |
|
-Xep:MissingOverride:OFF |
1408 |
|
-Xep:MissingFail:OFF |
1411 |
– |
-Xep:IdentityBinaryExpression:WARN |
1412 |
– |
-Xep:MethodCanBeStatic:WARN"/> |
1413 |
– |
<!-- -Xep:WildcardImport:ERROR --> |
1414 |
– |
<property name="errorprone.jsr166.test.flags" |
1415 |
– |
value="-Xep:MissingOverride:OFF |
1416 |
– |
-Xep:StringSplitter:OFF |
1409 |
|
-Xep:MixedArrayDimensions:ERROR |
1410 |
|
-Xep:RemoveUnusedImports:ERROR |
1419 |
– |
-Xep:LongLiteralLowerCaseSuffix:ERROR |
1420 |
– |
-Xep:RedundantThrows:ERROR |
1411 |
|
-Xep:EmptyIf:ERROR |
1412 |
|
-Xep:MultipleTopLevelClasses:ERROR |
1413 |
< |
-Xep:ClassName:ERROR"/> |
1413 |
> |
-Xep:ClassName:ERROR |
1414 |
> |
-Xep:LongLiteralLowerCaseSuffix:ERROR |
1415 |
> |
-Xep:RedundantThrows:ERROR |
1416 |
> |
-Xep:IdentityBinaryExpression:WARN |
1417 |
> |
-Xep:MethodCanBeStatic:WARN"/> |
1418 |
> |
<!-- -Xep:WildcardImport:ERROR --> |
1419 |
> |
<property name="errorprone.jsr166.test.flags" |
1420 |
> |
value="-Xep:StringSplitter:OFF |
1421 |
> |
-Xep:BoxedPrimitiveConstructor:OFF |
1422 |
> |
-Xep:ModifyingCollectionWithItself:OFF"/> |
1423 |
|
<!-- ant -emacs errorprone |& grep -EA1 '(warning|error):|warnings' --> |
1424 |
|
<target name="errorprone" |
1425 |
|
depends="clean, configure-compiler" |
1473 |
|
</target> |
1474 |
|
|
1475 |
|
<!-- ant -emacs errorprone-jtreg |& grep -EA1 '(warning|error):' --> |
1476 |
< |
<!-- -XDcompilePolicy=simple or by-file avoids confusing UnusedImports --> |
1476 |
> |
<!-- -XDcompilePolicy=simple or byfile avoids confusing UnusedImports --> |
1477 |
|
<target name="errorprone-jtreg" |
1478 |
|
depends="jar" |
1479 |
|
description="Run errorprone over jtreg tests (experimental)"> |
1484 |
|
classes="${product.jar}" |
1485 |
|
verbose="all"> |
1486 |
|
<jtreg-elements> |
1487 |
< |
<arg value="-javacoption:-XDcompilePolicy=simple"/> |
1487 |
> |
<arg value="-javacoption:-XDcompilePolicy=byfile"/> |
1488 |
|
<arg value="-javacoption:-processorpath"/> |
1489 |
|
<arg value="-javacoption:${errorprone.jar}"/> |
1490 |
|
<arg value="-javacoption:-Xplugin:ErrorProne |