From 503e48e8cde865f5c904170205bfda86d7461af6 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Fri, 19 Jul 2013 19:57:28 +0000 Subject: [PATCH] OPENJPA-2410 : Yet another checkstyle update. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504984 13f79535-47bb-0310-9956-ffa450edef68 --- openjpa-examples/openbooks/pom.xml | 4 ---- openjpa-examples/pom.xml | 4 +++- openjpa-examples/simple/pom.xml | 4 ---- .../org/apache/openjpa/persistence/jest/JESTServlet.java | 4 ++++ openjpa-project/checkstyle.xml | 5 ++--- openjpa-project/suppressions.xml | 9 +++------ pom.xml | 3 ++- 7 files changed, 14 insertions(+), 19 deletions(-) diff --git a/openjpa-examples/openbooks/pom.xml b/openjpa-examples/openbooks/pom.xml index 18a5937da..8f96e6369 100644 --- a/openjpa-examples/openbooks/pom.xml +++ b/openjpa-examples/openbooks/pom.xml @@ -39,10 +39,6 @@ OpenJPA Examples - OpenBooks Apache OpenJPA Examples - OpenBooks - - ${project.basedir}/../../openjpa-project/checkstyle.xml - - org.apache.openjpa diff --git a/openjpa-examples/pom.xml b/openjpa-examples/pom.xml index 671c6e7d0..906703fce 100644 --- a/openjpa-examples/pom.xml +++ b/openjpa-examples/pom.xml @@ -40,7 +40,9 @@ DefaultLevel=WARN - ${project.basedir}/../openjpa-project/checkstyle.xml + + ${project.basedir}\..\..\openjpa-project\checkstyle.xml + ${project.basedir}\..\..\openjpa-project\suppressions.xml diff --git a/openjpa-examples/simple/pom.xml b/openjpa-examples/simple/pom.xml index 633d7a33c..a7961441c 100644 --- a/openjpa-examples/simple/pom.xml +++ b/openjpa-examples/simple/pom.xml @@ -38,10 +38,6 @@ OpenJPA Examples - Simple Apache OpenJPA Examples - Simple - - ${project.basedir}/../../openjpa-project/checkstyle.xml - - org.apache.openjpa diff --git a/openjpa-jest/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java b/openjpa-jest/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java index 22ddedf10..697dcb49e 100644 --- a/openjpa-jest/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java +++ b/openjpa-jest/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java @@ -130,6 +130,7 @@ public class JESTServlet extends HttpServlet { } protected boolean findPersistenceUnit() { + // START - ALLOW PRINT STATEMENTS if (_emf == null) { System.err.println("Discovering auxiliary Persistent Unit " + _unit); BrokerFactory bf = AbstractBrokerFactory.getPooledFactoryForKey(_unit); @@ -138,6 +139,7 @@ public class JESTServlet extends HttpServlet { } System.err.println("Discovered auxiliary Persistent Unit " + _unit + ":" + _emf); } + // STOP - ALLOW PRINT STATEMENTS return _emf != null; } @@ -168,7 +170,9 @@ public class JESTServlet extends HttpServlet { } public void log(String s) { + // START - ALLOW PRINT STATEMENTS System.err.println(s); + // STOP - ALLOW PRINT STATEMENTS super.log(s); } } diff --git a/openjpa-project/checkstyle.xml b/openjpa-project/checkstyle.xml index 414ec9bf6..8eb96f6d7 100644 --- a/openjpa-project/checkstyle.xml +++ b/openjpa-project/checkstyle.xml @@ -34,7 +34,6 @@ - - - + + diff --git a/openjpa-project/suppressions.xml b/openjpa-project/suppressions.xml index 8ae2ca108..9bbaa8750 100644 --- a/openjpa-project/suppressions.xml +++ b/openjpa-project/suppressions.xml @@ -5,11 +5,8 @@ "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> - - - - + - - + + diff --git a/pom.xml b/pom.xml index c222dd95e..c90b5bf04 100644 --- a/pom.xml +++ b/pom.xml @@ -47,6 +47,8 @@ DefaultLevel=INFO UTF-8 ${project.basedir}/../openjpa-project/checkstyle.xml + ${project.basedir}/../openjpa-project/suppressions.xml + scp://people.apache.org/home/${site.deploy.user.name}/public_html/openjpa/${project.version}/staging-site 512m @@ -1086,7 +1088,6 @@ checkstyle - ${checkstyle.config.location} true true true