From ff5e83b21d14bc652d5b7f692be6385e47731a08 Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Sat, 1 Sep 2018 20:11:10 +0000 Subject: [PATCH] Update documentation TRAVIS_JOB_NUMBER=2790.1 TRAVIS_COMMIT_RANGE=b9501e5c7791...d0efb3cad751 --- docs/pages/pmd/rules/java/bestpractices.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/pages/pmd/rules/java/bestpractices.md b/docs/pages/pmd/rules/java/bestpractices.md index 56759de176..4c46a7a429 100644 --- a/docs/pages/pmd/rules/java/bestpractices.md +++ b/docs/pages/pmd/rules/java/bestpractices.md @@ -250,7 +250,6 @@ public class Foo { |Name|Default Value|Description|Multivalued| |----|-------------|-----------|-----------| |checkAddressTypes|IPv4 \| IPv6 \| IPv4 mapped IPv6|Check for IP address types.|yes. Delimiter is '\|'.| -|pattern|^"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"$|Regular Expression|no| **Use this rule by referencing it:** ``` xml @@ -874,6 +873,10 @@ can lead to quite messy code. This rule looks for several declarations on the sa //LocalVariableDeclaration [count(VariableDeclarator) > 1] [$strictMode or count(distinct-values(VariableDeclarator/@BeginLine)) != count(VariableDeclarator)] +| +//FieldDeclaration + [count(VariableDeclarator) > 1] + [$strictMode or count(distinct-values(VariableDeclarator/@BeginLine)) != count(VariableDeclarator)] ``` **Example(s):**