Skip to content

Commit

Permalink
Fix formatting and removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rafabene committed Sep 7, 2015
1 parent 5601685 commit 1e65865
Show file tree
Hide file tree
Showing 582 changed files with 3,735 additions and 3,758 deletions.
2 changes: 1 addition & 1 deletion app-client/client-simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
</archive>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ private Main() {
*/
public static void main(String args[]) {
// Show that the client is started with arguments at command line
LOG.info("Main started " + ( args.length != 0 ? "with" : "without") + " arguments");
if(args.length > 0) LOG.info(" " + Arrays.asList(args));
LOG.info("Main started " + (args.length != 0 ? "with" : "without") + " arguments");
if (args.length > 0)
LOG.info(" " + Arrays.asList(args));

// add an client side interceptor to provide the client machine name to the server application
EJBClientContext.getCurrent().registerInterceptor(0, new ClientInterceptor());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<application-client version="6" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<application-client version="6" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_6.xsd">
<display-name>SimpleApplicationClient</display-name>
</application-client>
8 changes: 4 additions & 4 deletions app-client/ejb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
-->
<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.quickstarts.eap</groupId>
<artifactId>jboss-app-client</artifactId>
<version>7.0.0-SNAPSHOT</version>
</parent>

<artifactId>jboss-app-client-ejb</artifactId>
<packaging>ejb</packaging>
<name>JBoss EAP Quickstart: app-client - ejb</name>
<url>http://maven.apache.org</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public interface StatelessSession {
* Show the provided client context data via INFO logging.
*/
public abstract void invokeWithClientContext();

/**
*
* @return a greeting string with the jboss.node.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class StatelessSessionBean implements StatelessSession {

@Override
public void invokeWithClientContext() {
LOGGER.info("ClientContext is here = "+context.getContextData());
LOGGER.info("ClientContext is here = " + context.getContextData());
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions app-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<name>JBoss EAP Quickstart: app-client</name>
<description>app-client: An example that demonstrates how to package and use an EE application client.
This POM defines common properties to specify the used versions and plug-ins.
The subprojects are built in the appropriate sequence.
The subprojects are built in the appropriate sequence.
</description>
<url>http://www.jboss.org/products/eap</url>

Expand All @@ -44,7 +44,7 @@
see the section entitled 'Use the Maven Repository'
in the Development Guide for Red Hat JBoss Enterprise Application Platform located here:
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
-->
<repositories>
<repository>
Expand Down
44 changes: 22 additions & 22 deletions batch-processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
see the section entitled 'Use the Maven Repository'
in the Development Guide for Red Hat JBoss Enterprise Application Platform located here:
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
-->
<repositories>
<repository>
Expand Down Expand Up @@ -90,16 +90,16 @@
</pluginRepositories>

<properties>
<!-- Explicitly declaring the source encoding eliminates the following
<!-- Explicitly declaring the source encoding eliminates the following
message: -->
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent! -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- JBoss dependency versions -->
<version.wildfly.maven.plugin>1.0.2.Final</version.wildfly.maven.plugin>

<!-- Define the version of the JBoss BOMs we want to import to specify
<!-- Define the version of the JBoss BOMs we want to import to specify
tested stacks. -->
<version.jboss.bom.eap>7.0.0-build-7</version.jboss.bom.eap>

Expand All @@ -116,8 +116,8 @@
<dependencyManagement>
<dependencies>
<!-- JBoss distributes a complete set of Java EE APIs including a Bill
of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection)
of artifacts. We use this here so that we always get the correct versions
of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection)
of artifacts. We use this here so that we always get the correct versions
of artifacts. Here we use the jboss-javaee-7.0-eap-with-tools stack (you can
read this as the JBoss stack of the Java EE APIs, with some extras tools
for your project, such as Arquillian for testing) -->
Expand All @@ -139,7 +139,7 @@

<dependencies>

<!-- First declare the APIs we depend on and need for compilation. All
<!-- First declare the APIs we depend on and need for compilation. All
of them are provided by JBoss EAP -->

<!-- Import the Batch API, we use provided scope as the API is included in
Expand All @@ -149,39 +149,39 @@
<artifactId>jboss-batch-api_1.0_spec</artifactId>
</dependency>

<!-- Import the CDI API, we use provided scope as the API is included in
<!-- Import the CDI API, we use provided scope as the API is included in
JBoss EAP -->
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>

<!-- Import the Common Annotations API (JSR-250), we use provided scope
<!-- Import the Common Annotations API (JSR-250), we use provided scope
as the API is included in JBoss EAP -->
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.2_spec</artifactId>
<scope>provided</scope>
</dependency>

<!-- Import the JAX-RS API, we use provided scope as the API is included
<!-- Import the JAX-RS API, we use provided scope as the API is included
in JBoss EAP -->
<dependency>
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
<scope>provided</scope>
</dependency>

<!-- Import the JPA API, we use provided scope as the API is included in
<!-- Import the JPA API, we use provided scope as the API is included in
JBoss EAP -->
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<scope>provided</scope>
</dependency>

<!-- Import the EJB API, we use provided scope as the API is included in
<!-- Import the EJB API, we use provided scope as the API is included in
JBoss EAP -->
<dependency>
<groupId>org.jboss.spec.javax.ejb</groupId>
Expand All @@ -204,7 +204,7 @@
</exclusions>
</dependency>

<!-- Import the JSF API, we use provided scope as the API is included in
<!-- Import the JSF API, we use provided scope as the API is included in
JBoss EAP -->
<dependency>
<groupId>org.jboss.spec.javax.faces</groupId>
Expand All @@ -220,15 +220,15 @@
<artifactId>commons-lang</artifactId>
</dependency>

<!-- Annotation processor to generate the JPA metamodel classes for
<!-- Annotation processor to generate the JPA metamodel classes for
typesafe criteria queries -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<scope>provided</scope>
</dependency>

<!-- Annotation processor that raising compilation errors whenever constraint
<!-- Annotation processor that raising compilation errors whenever constraint
annotations are incorrectly used. -->
<dependency>
<groupId>org.hibernate</groupId>
Expand All @@ -244,7 +244,7 @@
</dependency>

<!-- Optional, but highly recommended -->
<!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA)
<!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA)
JPA from JUnit/TestNG -->
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
Expand All @@ -261,7 +261,7 @@
</dependencies>

<build>
<!-- Maven will append the version to the finalName (which is the name
<!-- Maven will append the version to the finalName (which is the name
given to the generated WAR, and hence the context root) -->
<finalName>${project.artifactId}</finalName>
<plugins>
Expand All @@ -285,9 +285,9 @@

<profiles>
<profile>
<!-- The default profile skips all tests, though you can tune it to run
<!-- The default profile skips all tests, though you can tune it to run
just unit tests based on a custom pattern -->
<!-- Separate profiles are provided for running all tests, including Arquillian
<!-- Separate profiles are provided for running all tests, including Arquillian
tests that execute in the specified container -->
<id>default</id>
<activation>
Expand Down Expand Up @@ -338,11 +338,11 @@
</profile>

<profile>
<!-- When built in OpenShift the 'openshift' profile will be used when
<!-- When built in OpenShift the 'openshift' profile will be used when
invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app
<!-- Use this profile for any OpenShift specific customization your app
will need. -->
<!-- By default that is to put the resulting archive into the 'deployments'
<!-- By default that is to put the resulting archive into the 'deployments'
folder. -->
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
<id>openshift</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Date getStartTime() {
}

public Date getEndTime() {
endTime = new Date();
endTime = new Date();
return endTime.getTime() == 0 ? null : endTime;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void afterJob() throws Exception {
JobOperator jobOperator = BatchRuntime.getJobOperator();
Properties jobParameters = jobOperator.getParameters(jobContext.getExecutionId());
//If the JOB was already restarted once, mark it as abandoned
if (jobParameters.get("restartedOnce") != null && jobContext.getBatchStatus().equals(BatchStatus.FAILED)){
if (jobParameters.get("restartedOnce") != null && jobContext.getBatchStatus().equals(BatchStatus.FAILED)) {
log.info("Job already restarted once! Abandoning it forever");
jobOperator.abandon(jobContext.getExecutionId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
<batchlet ref="reportBatchelet" />
<end on="END" />
</step>
</job>
</job>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="primary" transaction-type="JTA">
<!-- If you are running in a production environment, add a managed
<!-- If you are running in a production environment, add a managed
data source, this example data source is just for development and testing! -->
<!-- The datasource is deployed as WEB-INF/jboss-batch-processing-ds.xml, you
can find it in the source at src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
limitations under the License.
-->

<!-- This is an unmanaged datasource. It should be used for proofs of concept
or testing only. It uses H2, an in memory database that ships with JBoss
<!-- This is an unmanaged datasource. It should be used for proofs of concept
or testing only. It uses H2, an in memory database that ships with JBoss
AS. -->
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<!-- The datasource is bound into JNDI at this location. We reference
<!-- The datasource is bound into JNDI at this location. We reference
this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/jboss-batch-processingDS"
pool-name="jboss-batch-processing" enabled="true"
Expand All @@ -35,4 +35,4 @@
</security>
</datasource>
</datasources>

8 changes: 4 additions & 4 deletions bean-validation-custom-constraint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
see the section entitled 'Use the Maven Repository'
in the Development Guide for Red Hat JBoss Enterprise Application Platform located here:
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/
-->
<repositories>
<repository>
Expand Down Expand Up @@ -180,14 +180,14 @@
<artifactId>hibernate-jpamodelgen</artifactId>
<scope>provided</scope>
</dependency>

<!-- Needed for Hibernate Annotations -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<scope>provided</scope>
</dependency>

<!-- Needed for running tests (you may also use TestNG) -->
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -254,7 +254,7 @@
<!-- Separate profiles are provided for running all tests, including
Arquillian tests that execute in the specified container -->
<id>default</id>

<activation>
<activeByDefault>true</activeByDefault>
</activation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class AddressValidator implements ConstraintValidator<Address, PersonAddr

public void initialize(Address constraintAnnotation) {
}

/**
* 1. The address should not be null.
* 2. The address should have all the data values specified.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Person implements Serializable {

@Id
@GeneratedValue
@Column(name="person_id")
@Column(name = "person_id")
private Long personId;

/* Asserts that the annotated string, collection, map or array is not null or empty. */
Expand All @@ -56,7 +56,7 @@ public class Person implements Serializable {

// Custom Constraint @Address for bean validation
@Address
@OneToOne(mappedBy="person", cascade=CascadeType.ALL)
@OneToOne(mappedBy = "person", cascade = CascadeType.ALL)
private PersonAddress personAddress;

public Person() {
Expand Down
Loading

0 comments on commit 1e65865

Please sign in to comment.