Use new pmd-build plugin, adjust some rule documentation for markdown changes
This commit is contained in:
@ -68,10 +68,10 @@
|
||||
<phase>clean</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<echo>PMD specific tasks: cleaning generated xdocs</echo>
|
||||
<echo>PMD specific tasks: cleaning generated markdown</echo>
|
||||
<delete quiet="true">
|
||||
<fileset dir="${basedir}/src/site/xdoc/rules/" includes="**/*.xml" />
|
||||
<fileset dir="${basedir}/src/site/xdoc/" includes="mergedruleset.xml" />
|
||||
<fileset dir="${basedir}/src/site/markdown/rules/" includes="**/*.md" />
|
||||
<fileset dir="${basedir}/src/site/markdown/" includes="mergedruleset.xml" />
|
||||
<fileset dir="${basedir}/src/site/" includes="site.xml" />
|
||||
</delete>
|
||||
</target>
|
||||
@ -104,20 +104,6 @@
|
||||
<plugin>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd-build</artifactId>
|
||||
<configuration>
|
||||
<rulesetsDirectory>${basedir}/src/main/resources/rulesets</rulesetsDirectory>
|
||||
<siteXml>${basedir}/src/site/site.pre.xml</siteXml>
|
||||
<siteXmlTarget>${basedir}/src/site/site.xml</siteXmlTarget>
|
||||
<target>${basedir}/src/site/xdoc/rules</target>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>pmd-pre-site</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
@ -308,10 +308,10 @@ or MethodDeclaration[@PackagePrivate='true']
|
||||
**Note:** This rule is deprecated as nowadays the JVMs JIT compilers will optimize away the differences.
|
||||
While the bytecode generated by the java compiler is indeed different, at runtime the instructions
|
||||
are optimized to the fastest way automatically.
|
||||
See <https://sourceforge.net/p/pmd/bugs/1277/> for more details.
|
||||
See [#1277](https://sourceforge.net/p/pmd/bugs/1277/) for more details.
|
||||
|
||||
Use bitwise inversion to invert boolean values - it's the fastest way to do this.
|
||||
See <http://www.javaspecialists.eu/archive/Issue042.html> for specific details
|
||||
See [Java Specialists - Issue 042](http://www.javaspecialists.eu/archive/Issue042.html) for specific details.
|
||||
]]>
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
|
Reference in New Issue
Block a user