diff --git a/pmd-netbeans/src/pmd/RunPMDAction.java b/pmd-netbeans/src/pmd/RunPMDAction.java index 530a3a3d4e..2c0eaea7ec 100644 --- a/pmd-netbeans/src/pmd/RunPMDAction.java +++ b/pmd-netbeans/src/pmd/RunPMDAction.java @@ -184,6 +184,7 @@ public class RunPMDAction extends CookieAction { List violations = checkCookies( list ); if( violations.isEmpty() ) { TopManager.getDefault().setStatusText( "PMD found no rule violations" ); + TopManager.getDefault().getIO( "PMD output", false ).closeInputOutput(); } else { InputOutput io = TopManager.getDefault().getIO( "PMD output", false );