Permalink
Browse files

Fix checkstyle errors

  • Loading branch information...
1 parent ee40d25 commit 1acdccdcc5f7790cc706a25462838aa291637a13 @stuartwdouglas committed Sep 25, 2011
Showing 578 changed files with 1,743 additions and 868 deletions.
View
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright 2010, Red Hat, Inc., and individual contributors
+ ~ as indicated by the @author tags. See the copyright.txt file in the
+ ~ distribution for a full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.weld</groupId>
+ <artifactId>weld-parent</artifactId>
+ <version>17</version>
+ </parent>
+
+ <groupId>org.jboss.weld</groupId>
+ <artifactId>weld-build-config</artifactId>
+ <version>1.1.3-SNAPSHOT</version>
+ <name>Weld: Build Configuration</name>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav-jackrabbit</artifactId>
+ <version>1.0-beta-7</version>
+ </extension>
+ </extensions>
+ </build>
+
+</project>
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+
+<module name="Checker">
+ <module name="FileTabCharacter">
+ <property name="eachLine" value="true"/>
+ </module>
+
+ <module name="RegexpSingleline">
+ <!-- \s matches whitespace character, $ matches end of line. -->
+ <property name="format" value="\s+$"/>
+ <property name="message" value="Line has trailing spaces."/>
+ </module>
+
+ <module name="TreeWalker">
+
+ <property name="cacheFile" value="${checkstyle.cache.file}"/>
+
+ <!-- Checks for imports -->
+ <module name="AvoidStarImport"/>
+ <module name="RedundantImport"/>
+ <!-- Disabled until checkstyle can recognize imports which are used only by javadoc -->
+ <!--<module name="UnusedImports"/>-->
+
+ <!-- Modifier Checks -->
+ <module name="ModifierOrder"/>
+ <module name="RedundantModifier"/>
+
+ <!-- Checks for blocks. You know, those {}'s -->
+ <module name="LeftCurly"/>
+
+ <!-- Checks for common coding problems -->
+ <!-- Disabled until http://sourceforge.net/tracker/?func=detail&aid=2843447&group_id=29721&atid=397078 is fixed-->
+ <!--<module name="DoubleCheckedLocking"/>-->
+ <module name="EmptyStatement"/>
+ <module name="EqualsHashCode"/>
+ <module name="IllegalInstantiation"/>
+ <module name="RedundantThrows">
+ <property name="allowUnchecked" value="true"/>
+ </module>
+
+ <!-- Miscellaneous other checks. -->
+ <module name="UpperEll"/>
+ <module name="PackageAnnotation"/>
+ <module name="CovariantEquals"/>
+ <module name="ArrayTypeStyle"/>
+
+ </module>
+
+</module>
+
@@ -41,4 +41,4 @@ public ServiceRegistry getServices() {
return serviceRegistry;
}
-}
+}
@@ -41,4 +41,4 @@ public ServiceRegistry getServices() {
}
-}
+}
@@ -9,7 +9,7 @@
* 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,
+ * 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.
@@ -4,4 +4,4 @@
@Dependent
public class Bar extends Foo {
-}
+}
@@ -4,4 +4,4 @@
@RequestScoped
public class Foo {
-}
+}
@@ -66,4 +66,4 @@ public void destroy(Object instance) {
it.dispose(instance);
}
}
-}
+}
@@ -9,7 +9,7 @@
* 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,
+ * 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.
@@ -9,7 +9,7 @@
* 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,
+ * 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.
@@ -9,8 +9,7 @@
public static File getRealFile(ServletContext servletContext, String path) throws MalformedURLException {
String realPath = servletContext.getRealPath(path);
- if (realPath == null) //WebLogic!
- {
+ if (realPath == null) {//WebLogic!
URL resourcePath = servletContext.getResource(path);
if ((resourcePath != null) && (resourcePath.getProtocol().equals("file"))) {
realPath = resourcePath.getPath();
@@ -124,4 +124,4 @@ private static void setAnnotationProcessor(StandardContext stdContext, Annotatio
}
throw new RuntimeException("neither field nor setter found for annotationProcessor");
}
-}
+}
@@ -26,4 +26,4 @@ public Object newInstance(String fqcn) throws IllegalAccessException, Invocation
return delegate().newInstance(fqcn);
}
-}
+}
@@ -132,4 +132,4 @@ private static void setInstanceManager(StandardContext stdContext, InstanceManag
throw new RuntimeException("neither field nor setter found for instanceManager");
}
-}
+}
@@ -28,4 +28,4 @@ public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAc
return null;
}
-}
+}
@@ -24,4 +24,4 @@ int next() {
return nextInt;
}
-}
+}
@@ -4,4 +4,4 @@
public String translate(String sentence) {
throw new UnsupportedOperationException();
}
-}
+}
@@ -22,4 +22,4 @@ public String translate(String text) {
return sb.toString().trim();
}
-}
+}
@@ -3,6 +3,6 @@
public interface Translator {
- public String translate(String sentence);
+ String translate(String sentence);
}
@@ -30,4 +30,4 @@ public void destroy() {
private boolean isSewerNameOk() throws NullPointerException {
return Sewer.NAME.equals(sewer.getName());
}
-}
+}
@@ -72,4 +72,4 @@ private void appendClasses(String name, List<Class<?>> classes, StringBuilder xm
xml.append("<").append(name).append(">").append(clazz.getName()).append("</").append(name).append(">\n");
}
}
-}
+}
@@ -3,17 +3,17 @@
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
- *
+ *
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
- *
+ *
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -28,4 +28,4 @@ public void setPassword(String password) {
this.password = password;
}
-}
+}
@@ -52,4 +52,4 @@ public User getCurrentUser() {
return currentUser;
}
-}
+}
@@ -4,12 +4,12 @@
public interface UserManager {
- public List<User> getUsers() throws Exception;
+ List<User> getUsers() throws Exception;
- public String addUser() throws Exception;
+ String addUser() throws Exception;
- public User getNewUser();
+ User getNewUser();
- public void setNewUser(User newUser);
+ void setNewUser(User newUser);
-}
+}
@@ -3,17 +3,17 @@
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
- *
+ *
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
- *
+ *
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -258,4 +258,4 @@ private void loadCustomLocationStrategies() {
JavaScript strategySource = fromResource("javascript/selenium-location-strategies/jquery-location-strategy.js");
selenium.addLocationStrategy(ElementLocationStrategy.JQUERY, strategySource);
}
-}
+}
@@ -3,17 +3,17 @@
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
- *
+ *
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
- *
+ *
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -29,4 +29,4 @@ int next() {
int getMaxNumber() {
return maxNumber;
}
-}
+}
@@ -3,17 +3,17 @@
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
- *
+ *
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
- *
+ *
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -168,4 +168,4 @@ public void setUser(String user) {
public String toString() {
return "At " + getFriendlyDate() + " by " + getUser();
}
-}
+}
@@ -49,4 +49,4 @@ public String getExtension() {
public String getName() {
return name;
}
-}
+}
Oops, something went wrong.

0 comments on commit 1acdccd

Please sign in to comment.