Skip to content

Commit 9353332

Browse files
committed
Polishing
1 parent c05ab3e commit 9353332

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@
1919
import org.aopalliance.intercept.Interceptor;
2020

2121
import org.springframework.aop.TargetSource;
22-
import org.springframework.util.Assert;
2322
import org.springframework.util.ClassUtils;
2423

2524
/**
@@ -47,9 +46,8 @@ public ProxyFactory() {
4746
* @param target the target object to be proxied
4847
*/
4948
public ProxyFactory(Object target) {
50-
Assert.notNull(target, "Target object must not be null");
51-
setInterfaces(ClassUtils.getAllInterfaces(target));
5249
setTarget(target);
50+
setInterfaces(ClassUtils.getAllInterfaces(target));
5351
}
5452

5553
/**

spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncAnnotationAdvisor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public AsyncAnnotationAdvisor(Executor executor, AsyncUncaughtExceptionHandler e
9191
}
9292
if (exceptionHandler != null) {
9393
this.exceptionHandler = exceptionHandler;
94-
} else {
94+
}
95+
else {
9596
this.exceptionHandler = new SimpleAsyncUncaughtExceptionHandler();
9697
}
9798
this.advice = buildAdvice(executor, this.exceptionHandler);

spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessor.java

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class AsyncAnnotationBeanPostProcessor extends AbstractAdvisingBeanPostPr
6262
private Class<? extends Annotation> asyncAnnotationType;
6363

6464
private Executor executor;
65+
6566
private AsyncUncaughtExceptionHandler exceptionHandler;
6667

6768

@@ -93,6 +94,7 @@ public void setExecutor(Executor executor) {
9394
/**
9495
* Set the {@link AsyncUncaughtExceptionHandler} to use to handle uncaught
9596
* exceptions thrown by asynchronous method executions.
97+
* @since 4.1
9698
*/
9799
public void setExceptionHandler(AsyncUncaughtExceptionHandler exceptionHandler) {
98100
this.exceptionHandler = exceptionHandler;

spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public class FileSystemResource extends AbstractResource implements WritableReso
4545

4646

4747
/**
48-
* Create a new FileSystemResource from a File handle.
48+
* Create a new {@code FileSystemResource} from a {@link File} handle.
4949
* <p>Note: When building relative resources via {@link #createRelative},
5050
* the relative path will apply <i>at the same directory level</i>:
5151
* e.g. new File("C:/dir1"), relative path "dir2" -> "C:/dir2"!
@@ -62,7 +62,7 @@ public FileSystemResource(File file) {
6262
}
6363

6464
/**
65-
* Create a new FileSystemResource from a file path.
65+
* Create a new {@code FileSystemResource} from a file path.
6666
* <p>Note: When building relative resources via {@link #createRelative},
6767
* it makes a difference whether the specified resource base path here
6868
* ends with a slash or not. In the case of "C:/dir1/", relative paths
@@ -77,6 +77,7 @@ public FileSystemResource(String path) {
7777
this.path = StringUtils.cleanPath(path);
7878
}
7979

80+
8081
/**
8182
* Return the file path for this resource.
8283
*/

0 commit comments

Comments
 (0)