summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJan Matèrne <jhm@apache.org>2014-07-03 22:32:17 +0200
committerJan Matèrne <jhm@apache.org>2014-07-03 22:32:52 +0200
commit71ae87127438b401537ad3ce00a64222fc15fb61 (patch)
treec0a3ea7ccb5195973a51aee41e41441d99318a8e /src/main
parentf13816683ddabdf2378167245d20a334053a3ca2 (diff)
downloadant-71ae87127438b401537ad3ce00a64222fc15fb61.tar.gz
checkstyle
Diffstat (limited to 'src/main')
-rw-r--r--src/main/org/apache/tools/ant/launch/Launcher.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/Constants.java3
-rw-r--r--src/main/org/apache/tools/ant/util/ProcessUtil.java3
-rw-r--r--src/main/org/apache/tools/ant/util/UnicodeUtil.java88
-rw-r--r--src/main/org/apache/tools/ant/util/XmlConstants.java4
5 files changed, 59 insertions, 42 deletions
diff --git a/src/main/org/apache/tools/ant/launch/Launcher.java b/src/main/org/apache/tools/ant/launch/Launcher.java
index 4e9612332..bf10c1577 100644
--- a/src/main/org/apache/tools/ant/launch/Launcher.java
+++ b/src/main/org/apache/tools/ant/launch/Launcher.java
@@ -35,6 +35,9 @@ import java.util.ArrayList;
*/
public class Launcher {
+ private Launcher() {
+ }
+
/**
* The Ant Home (installation) Directory property.
* {@value}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Constants.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Constants.java
index dc891b12a..18ab649f0 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Constants.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Constants.java
@@ -23,6 +23,9 @@ package org.apache.tools.ant.taskdefs.optional.junit;
*/
public class Constants {
+ private Constants() {
+ }
+
static final String METHOD_NAMES = "methods=";
static final String HALT_ON_ERROR = "haltOnError=";
static final String HALT_ON_FAILURE = "haltOnFailure=";
diff --git a/src/main/org/apache/tools/ant/util/ProcessUtil.java b/src/main/org/apache/tools/ant/util/ProcessUtil.java
index 8ca1a7e6b..ee1300672 100644
--- a/src/main/org/apache/tools/ant/util/ProcessUtil.java
+++ b/src/main/org/apache/tools/ant/util/ProcessUtil.java
@@ -25,6 +25,9 @@ import java.lang.management.ManagementFactory;
*/
public class ProcessUtil {
+ private ProcessUtil() {
+ }
+
/**
* provide id of the current process
* @param fallback
diff --git a/src/main/org/apache/tools/ant/util/UnicodeUtil.java b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
index 39ea7b4f1..f4d52aaf5 100644
--- a/src/main/org/apache/tools/ant/util/UnicodeUtil.java
+++ b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
@@ -1,42 +1,46 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.tools.ant.util;
-
-/**
- * Contains one helper method to create a backslash u escape
- *
- * @since Ant 1.8.3
- */
-public class UnicodeUtil {
- /**
- * returns the unicode representation of a char without the leading backslash
- * @param ch
- * @return unicode representation of a char for property files
- */
- public static StringBuffer EscapeUnicode(char ch) {
- StringBuffer unicodeBuf = new StringBuffer("u0000");
- String s = Integer.toHexString(ch);
- //replace the last 0s by the chars contained in s
- for (int i = 0; i < s.length(); i++) {
- unicodeBuf.setCharAt(unicodeBuf.length()
- - s.length() + i,
- s.charAt(i));
- }
- return unicodeBuf;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.tools.ant.util;
+
+/**
+ * Contains one helper method to create a backslash u escape
+ *
+ * @since Ant 1.8.3
+ */
+public class UnicodeUtil {
+
+ private UnicodeUtil() {
+ }
+
+ /**
+ * returns the unicode representation of a char without the leading backslash
+ * @param ch
+ * @return unicode representation of a char for property files
+ */
+ public static StringBuffer EscapeUnicode(char ch) {
+ StringBuffer unicodeBuf = new StringBuffer("u0000");
+ String s = Integer.toHexString(ch);
+ //replace the last 0s by the chars contained in s
+ for (int i = 0; i < s.length(); i++) {
+ unicodeBuf.setCharAt(unicodeBuf.length()
+ - s.length() + i,
+ s.charAt(i));
+ }
+ return unicodeBuf;
+ }
+}
diff --git a/src/main/org/apache/tools/ant/util/XmlConstants.java b/src/main/org/apache/tools/ant/util/XmlConstants.java
index 3fae4d3c2..207089490 100644
--- a/src/main/org/apache/tools/ant/util/XmlConstants.java
+++ b/src/main/org/apache/tools/ant/util/XmlConstants.java
@@ -27,6 +27,10 @@ package org.apache.tools.ant.util;
*/
public class XmlConstants {
+
+ private XmlConstants() {
+ }
+
/** property for location of xml schema */
public static final String PROPERTY_SCHEMA_LOCATION =
"http://apache.org/xml/properties/schema/external-schemaLocation";