@ -1991,7 +1991,7 @@ proceed with the method call: the presence of this parameter is an indication th
@@ -1991,7 +1991,7 @@ proceed with the method call: the presence of this parameter is an indication th
public class SimpleProfiler {
public Object profile(ProceedingJoinPoint call, String name, int age) throws Throwable {
StopWatch clock = new StopWatch("Profiling for ''" + name + "'' and ''" + age + "''");
StopWatch clock = new StopWatch("Profiling for '" + name + "' and '" + age + "'");
@ -7499,7 +7499,7 @@ hierarchy of property sources. To explain fully, consider the following:
@@ -7499,7 +7499,7 @@ hierarchy of property sources. To explain fully, consider the following:
ApplicationContext ctx = new GenericApplicationContext();
@ -1778,7 +1778,7 @@ a transaction. You then pass an instance of your custom `TransactionCallback` to
@@ -1778,7 +1778,7 @@ a transaction. You then pass an instance of your custom `TransactionCallback` to
// use constructor-injection to supply the PlatformTransactionManager
public SimpleService(PlatformTransactionManager transactionManager) {
Assert.notNull(transactionManager, "The ''transactionManager'' argument must not be null.");
Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null.");
this.transactionTemplate = new TransactionTemplate(transactionManager);
}
@ -1845,7 +1845,7 @@ a specific `TransactionTemplate:`
@@ -1845,7 +1845,7 @@ a specific `TransactionTemplate:`
private final TransactionTemplate transactionTemplate;
public SimpleService(PlatformTransactionManager transactionManager) {
Assert.notNull(transactionManager, "The ''transactionManager'' argument must not be null.");
Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null.");
this.transactionTemplate = new TransactionTemplate(transactionManager);
// the transaction settings can be set here explicitly if so desired
// let's include the infamous windows Sample file (this time copied to c:/)
FileSystemResource res = new FileSystemResource(new File("c:/Sample.jpg"));
@ -7366,7 +7366,7 @@ message is surrounded by quotes. Below are the changes that I (the author) make
@@ -7366,7 +7366,7 @@ message is surrounded by quotes. Below are the changes that I (the author) make
public String getMessage() {
// change the implementation to surround the message in quotes
return "''" + this.message + "''"
return "'" + this.message + "'"
}
public void setMessage(String message) {
@ -7773,7 +7773,7 @@ will want to do with this callback, and you can see an example of doing that bel
@@ -7773,7 +7773,7 @@ will want to do with this callback, and you can see an example of doing that bel
DelegatingMetaClass metaClass = new DelegatingMetaClass(goo.getMetaClass()) {
public Object invokeMethod(Object object, String methodName, Object[] arguments) {
The above example relies on the `mvcUrl` JSP function declared in the Spring tag library
@ -3574,9 +3574,9 @@ defined in the previous example to customize the look and feel:
@@ -3574,9 +3574,9 @@ defined in the previous example to customize the look and feel: