Fix various typos in the code & docs

This commit is contained in:
René Scheibe
2022-06-08 16:11:45 +02:00
committed by GitHub
parent cf742d3b86
commit 9f4428153c
29 changed files with 40 additions and 43 deletions

View File

@@ -75,7 +75,7 @@ public final class EmailParserUtils {
final List<EmailFragment> emailFragments) {
Assert.notNull(mailMessage, "The mail message to be parsed must not be null.");
Assert.notNull(emailFragments, "The collection of emailfragments must not be null.");
Assert.notNull(emailFragments, "The collection of email fragments must not be null.");
final Object content;
final String subject;
@@ -135,7 +135,7 @@ public final class EmailParserUtils {
Assert.notNull(directory, "The directory must not be null.");
Assert.notNull(multipart, "The multipart object to be parsed must not be null.");
Assert.notNull(mailMessage, "The mail message to be parsed must not be null.");
Assert.notNull(emailFragments, "The collection of emailfragments must not be null.");
Assert.notNull(emailFragments, "The collection of email fragments must not be null.");
final int count;
@@ -189,7 +189,7 @@ public final class EmailParserUtils {
}
if (Part.ATTACHMENT.equalsIgnoreCase(disposition)) {
LOGGER.info(String.format("Handdling attachment '%s', type: '%s'", filename, contentType));
LOGGER.info(String.format("Handling attachment '%s', type: '%s'", filename, contentType));
}
final Object content;
@@ -208,7 +208,7 @@ public final class EmailParserUtils {
if (Part.ATTACHMENT.equalsIgnoreCase(disposition)) {
emailFragments.add(new EmailFragment(directory, i + "-" + filename, content));
LOGGER.info(String.format("Handdling attachment '%s', type: '%s'", filename, contentType));
LOGGER.info(String.format("Handling attachment '%s', type: '%s'", filename, contentType));
}
else {

View File

@@ -19,7 +19,7 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* This class demonstrates the use a Spring Integration jmx adadpers to receive
* This class demonstrates the use a Spring Integration jmx adapters to receive
* notifications, poll attributes, and invoke operations on a Remote JMX MBeanServer.
*
* @author Gary Russell

View File

@@ -83,7 +83,7 @@ public class EmployeeSearchService {
}
catch (Exception e) {
setReturnStatusAndMessage("1", "System Error", employeeList, responseHeaderMap);
logger.error("System error occured :" + e);
logger.error("System error occurred :" + e);
}
Message<EmployeeList> message = new GenericMessage<EmployeeList>(employeeList, responseHeaderMap);
return message;
@@ -109,5 +109,3 @@ public class EmployeeSearchService {
}
}

View File

@@ -48,7 +48,7 @@ You can observe the function of the advice by entering a number of messages over
`FileTransferRenameAfterFailureDemo`
These classes show how to configure expressions to be evaluated after either succes, or failure; the application context is defined in expression-advice-context-xml.
These classes show how to configure expressions to be evaluated after either success, or failure; the application context is defined in expression-advice-context-xml.
It is a simulation of an application with a file inbound adapter -> ftp outbound adapter.
@@ -63,4 +63,4 @@ In both cases simply add a file ending with .txt in ${java.io.tmpdir}/adviceDemo
## Running the Demos
In each case, run the main method in each of the demonstration classes.
In each case, run the main method in each of the demonstration classes.

View File

@@ -87,7 +87,7 @@ public final class Main {
String coffeeDescription = service.findCoffeeBeverage(Integer.valueOf(input));
System.out.println(String.format("Searched for '%s' - Found: '%s'.", input, coffeeDescription));
System.out.print("To try again, please enter another coffee beaverage and press <enter>:\n\n");
System.out.print("To try again, please enter another coffee beverage and press <enter>:\n\n");
}
}

View File

@@ -26,7 +26,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
public class CoffeeServiceStartupTest {
@Test
public void testStartupOfSpringInegrationContext() throws Exception{
public void testStartupOfSpringIntegrationContext() throws Exception{
final ApplicationContext context
= new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
CoffeeServiceStartupTest.class);

View File

@@ -75,7 +75,7 @@ public final class Main {
while (!scanner.hasNext("q")) {
String input = scanner.nextLine();
System.out.println("Converting String to Uppcase using Stored Procedure...");
System.out.println("Converting String to Uppercase using Stored Procedure...");
String inputUpperCase = service.convertToUpperCase(input);
System.out.println("Retrieving Numeric value via Sql Function...");

View File

@@ -30,7 +30,7 @@ import org.springframework.integration.service.StringConversionService;
public class StringConversionServiceTest {
@Test
public void testStartupOfSpringInegrationContext() throws Exception{
public void testStartupOfSpringIntegrationContext() throws Exception{
new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
StringConversionServiceTest.class);
Thread.sleep(2000);

View File

@@ -135,7 +135,7 @@ You should see the following output:
2. Execute Sample 2 (Coffee Service)
q. Quit the application
Select **Opion 1**.
Select **Option 1**.
=========================================================
@@ -230,7 +230,7 @@ You should see the following output:
2. Execute Sample 2 (Coffee Service)
q. Quit the application
Select **Opion 2**.
Select **Option 2**.
This should result in the following output:

View File

@@ -112,7 +112,7 @@ public final class Main {
while (!scanner.hasNext("q")) {
String input = scanner.nextLine();
System.out.println("Converting String to Uppcase using Stored Procedure...");
System.out.println("Converting String to Uppercase using Stored Procedure...");
String inputUpperCase = service.convertToUpperCase(input);
System.out.println("Retrieving Numeric value via Sql Function...");

View File

@@ -30,7 +30,7 @@ import org.springframework.integration.service.StringConversionService;
public class StringConversionServiceTest {
@Test
public void testStartupOfSpringInegrationContext() throws Exception{
public void testStartupOfSpringIntegrationContext() throws Exception{
final ApplicationContext context
= new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
StringConversionServiceTest.class);

View File

@@ -32,7 +32,7 @@
<int:transaction-synchronization-factory id="syncFactory">
<int:after-commit expression="payload.renameTo(payload.absolutePath + '.SUCCEEDED') ? payload + ' renamed after success' : payload + 'failed to rename after success'"
channel="infoLogger" />
<int:after-rollback expression="payload.renameTo(payload.absolutePath + '.FAILED') ? payload + ' renamed after faiure' : payload + 'failed to rename after failure'"
<int:after-rollback expression="payload.renameTo(payload.absolutePath + '.FAILED') ? payload + ' renamed after failure' : payload + 'failed to rename after failure'"
channel="errorLogger" />
</int:transaction-synchronization-factory>