diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index c0cf93b2e1..dd5f22c486 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -64,6 +64,7 @@ This is a {{ site.pmd.release_type }} release. * [#2834](https://github.com/pmd/pmd/pull/2834): \[vf] Allow attributes with dot in Visualforce - [rmohan20](https://github.com/rmohan20) * [#2842](https://github.com/pmd/pmd/pull/2842): \[core] Bump antlr4 from 4.7 to 4.7.2 - [Adrien Lecharpentier](https://github.com/alecharp) * [#2865](https://github.com/pmd/pmd/pull/2865): \[java] (doc) Update ExcessiveImports example code for clarity - [Gustavo Krieger](https://github.com/gustavopcassol) +* [#2866](https://github.com/pmd/pmd/pull/2866): \[java] (doc) Fix example for CouplingBetweenObjects - [Gustavo Krieger](https://github.com/gustavopcassol) {% endtocmaker %} diff --git a/pmd-java/src/main/resources/category/java/design.xml b/pmd-java/src/main/resources/category/java/design.xml index 42fa46211d..de6b56cedb 100644 --- a/pmd-java/src/main/resources/category/java/design.xml +++ b/pmd-java/src/main/resources/category/java/design.xml @@ -422,11 +422,11 @@ public class Foo { private Bar var2; //followed by many imports of unique objects - void ObjectC doWork() { + ObjectC doWork() { Bardo var55; ObjectA var44; ObjectZ var93; - return something; + return something(); } } ]]>