Skip to content

Commit

Permalink
Remove trailing spaces from files
Browse files Browse the repository at this point in the history
  • Loading branch information
rafabene committed Sep 7, 2015
1 parent 2068441 commit 5601685
Show file tree
Hide file tree
Showing 326 changed files with 2,696 additions and 2,696 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
/**
* A simple EJB client to demonstrate the use of the JBoss application container
* to show that the injection will work for server EJB-beans.
*
*
* @author <a href="mailto:wfink@redhat.com">Wolf-Dieter Fink</a>
*/
public class Main {
private static final Logger LOG = Logger.getLogger(Main.class);

/**
* Use field injection for the EJB reference.<br/>
* <b>Notice that the application-container injection only works for
* <b>Notice that the application-container injection only works for
* static fields within the main class of the application</b><br/>
* See JSR 342 (EE7 platform spec) chapter 5.2.5 .
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Example of an interceptor at client side which can be configures with the {@link EJBClientContext#registerInterceptor(int
* priority, new ClientInterceptor())}.
*
*
* @author <a href="mailto:wfink@redhat.com">Wolf-Dieter Fink</a>
*/
public class ClientInterceptor implements EJBClientInterceptor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public interface StatelessSession {
*/
public abstract void invokeWithClientContext();
/**
*
* @return a greeting string with the jboss.node.name
*
* @return a greeting string with the jboss.node.name
*/
public abstract String getGreeting();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
import org.jboss.logging.Logger;

/**
* Simple implementation to show the behavior of EJB clients which are started in
* Simple implementation to show the behavior of EJB clients which are started in
* the application client environment.
*
*
* @author <a href="mailto:wfink@redhat.com">Wolf-Dieter Fink</a>
*/
@Stateless
public class StatelessSessionBean implements StatelessSession {
private static final Logger LOGGER = Logger.getLogger(StatelessSessionBean.class);
@Resource
SessionContext context;

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

@Override
public String getGreeting() {
return "Hello from StatelessSessionBean@" + System.getProperty("jboss.node.name");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public class JobData {

private String exitStatus;

public JobData(Long jobInstanceId, Long executionId, String jobName,
Date startTime, Date endTime, BatchStatus batchStatus,
public JobData(Long jobInstanceId, Long executionId, String jobName,
Date startTime, Date endTime, BatchStatus batchStatus,
Properties parameters, String exitStatus) {
this.jobInstanceId = jobInstanceId;
this.executionId = executionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed 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,
* 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.
Expand All @@ -25,7 +25,7 @@
public class ChunkCheckpoint implements Serializable {

private static final long serialVersionUID = 1L;

private long lineNumber;

public void increase() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

/**
* This class uses CDI to alias Java EE resources, such as the persistence context, to CDI beans
*
*
* <p>
* Example injection on a managed bean field:
* </p>
*
*
* <pre>
* &#064;Inject
* private EntityManager em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
Class<?>[] groups() default {};

Class<? extends Payload>[] payload() default {};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ 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.
* 3. Pin code in the address should be of atleast 6 characters.
* 1. The address should not be null.
* 2. The address should have all the data values specified.
* 3. Pin code in the address should be of atleast 6 characters.
* 4. The country in the address should be of atleast 4 characters.
*/
public boolean isValid(PersonAddress value, ConstraintValidatorContext context) {
Expand Down Expand Up @@ -56,4 +56,4 @@ public boolean isValid(PersonAddress value, ConstraintValidatorContext context)

return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class Person implements Serializable {

private static final long serialVersionUID = 1L;

@Id
@GeneratedValue
@Column(name="person_id")
Expand All @@ -60,23 +60,23 @@ public class Person implements Serializable {
private PersonAddress personAddress;

public Person() {

}

public Person(String firstName, String lastName, PersonAddress address) {
this.firstName = firstName;
this.lastName = lastName;
this.personAddress = address;
}

public Long getId() {
return personId;
}

public void setId(Long id) {
this.personId = id;
}

public String getFirstName() {
return firstName;
}
Expand All @@ -101,4 +101,4 @@ public void setPersonAddress(PersonAddress personAddress) {
this.personAddress = personAddress;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@Entity
@Table(name = "person_address")
public class PersonAddress implements Serializable{

private static final long serialVersionUID = 1L;

@Id
Expand All @@ -47,13 +47,13 @@ public class PersonAddress implements Serializable{
private String state;
private String country;
private String pinCode;

@OneToOne
@PrimaryKeyJoinColumn
private Person person;

public PersonAddress () {

}

public PersonAddress(String streetAddress, String locality, String city, String state, String country, String pinCode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@
/**
* Simple tests for Bean Validator using custom constraints. Arquillian deploys an WAR archive to the application server, which
* constructs Validator object.
*
*
* This object is injected into the tests so user can verify the validators are working. This example does not touch validation
* on database layer, e.g. it is not validating uniqueness constraint for email field.
*
*
*
*
* @author <a href="https://community.jboss.org/people/giriraj.sharma27">Giriraj Sharma</a>
*
*
*/
@RunWith(Arquillian.class)
public class MyPersonTest {

/**
* Constructs a deployment archive
*
*
* @return the deployment archive
*/
@Deployment
Expand All @@ -74,7 +74,7 @@ public static Archive<?> createTestArchive() {

/**
* Tests an empty member registration, e.g. violation of:
*
*
* <ul>
* <li>@NotNull</li>
* <li>@Size</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@
/**
* Simple tests for Bean Validator. Arquillian deploys an WAR archive to the application server, which constructs Validator
* object.
*
*
* This object is injected into the tests so user can verify the validators are working. This example does not touch validation
* on database layer, e.g. it is not validating uniqueness constraint for email field.
*
*
*
*
* @author <a href="kpiwko@redhat.com>Karel Piwko</a>
*
*
*/
@RunWith(Arquillian.class)
public class MemberValidationTest {

/**
* Constructs a deployment archive
*
*
* @return the deployment archive
*/
@Deployment
Expand All @@ -71,7 +71,7 @@ public static Archive<?> createTestArchive() {

/**
* Tests an empty member registration, e.g. violation of:
*
*
* <ul>
* <li>@NotNull</li>
* <li>@NotNull</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class ManagedComponent {
/**
* Ask the container to inject an Entity Manager (EM). As a consequence the EM will be automatically enlisted into any new
* transactions started by the managed component.
*
*
*/
@PersistenceContext
private EntityManager entityManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class TransactionServlet extends HttpServlet {
* parameter "strategy" is not set to the value "managed" then both the transaction and the EntityManager are controlled
* manually. Otherwise the Entity Manager is controlled by the container and the transaction is controlled by the developer.
* </p>
*
*
* @param req the HTTP request
* @param resp the HTTP response
* @throws ServletException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class UnManagedComponent {
/*
* Inject an entity manager factory. The reason we do not inject an entity manager (as we do in ManagedComponent) is that
* the factory is thread safe whereas the entity manager is not.
*
*
* Specify a persistence unit name (perhaps the application may want to interact with multiple databases).
*/
@PersistenceUnit(unitName = "primary")
Expand Down Expand Up @@ -82,7 +82,7 @@ public String updateKeyValueDatabase(String key, String value) {
/*
* An application cannot handle any of the other exceptions raised by begin and commit so we just catch the generic
* exception. The meaning of the other exceptions is:
*
*
* NotSupportedException - the thread is already associated with a transaction HeuristicRollbackException - should
* not happen since the example is interacting with a single database HeuristicMixedException - should not happen
* since the example is interacting with a single database SystemException - the TM raised an unexpected error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* <p>
* Servlet implementation class Demo
* </p>
*
*
* @author Nevin Zhu
*
*
*/
@WebServlet("/")
public class Demo extends HttpServlet {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed 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.jboss.as.quickstarts.cdi.alternative;

/**
* <p>
* Interface declaration for Tax
* </p>
*
* @author Nevin Zhu
*
*/
public interface Tax {
String getRate();
}
/*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed 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.jboss.as.quickstarts.cdi.alternative;

/**
* <p>
* Interface declaration for Tax
* </p>
*
* @author Nevin Zhu
*
*/
public interface Tax {
String getRate();
}
Loading

0 comments on commit 5601685

Please sign in to comment.