From fe507ed87b3bfc8c0fd177eb6168e292e08e64f8 Mon Sep 17 00:00:00 2001 From: Dennis Lundberg Date: Sun, 22 Jun 2008 22:03:12 +0000 Subject: [PATCH] o Refactor by using "Extract Method" to make renderBody() shorter. Fixes error reported by Checkstyle. git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@670420 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/plugin/plugin/PluginReport.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java index 8a085bc..5394b33 100644 --- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java +++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java @@ -420,6 +420,16 @@ public class PluginReport endSection(); + renderUsageSection( hasMavenReport ); + } + + /** + * Render the section about the usage of the plugin. + * + * @param hasMavenReport If the plugin has a report or not + */ + private void renderUsageSection( boolean hasMavenReport ) + { startSection( getBundle( locale ).getString( "report.plugin.usage" ) ); // Configuration