Skip to content

Commit 51fb485

Browse files
committed
Polishing
(cherry picked from commit 9353332)
1 parent f16e6c4 commit 51fb485

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
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-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)