File tree 2 files changed +6
-7
lines changed
spring-aop/src/main/java/org/springframework/aop/framework
spring-core/src/main/java/org/springframework/core/io
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2013 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import org .aopalliance .intercept .Interceptor ;
20
20
21
21
import org .springframework .aop .TargetSource ;
22
- import org .springframework .util .Assert ;
23
22
import org .springframework .util .ClassUtils ;
24
23
25
24
/**
@@ -47,9 +46,8 @@ public ProxyFactory() {
47
46
* @param target the target object to be proxied
48
47
*/
49
48
public ProxyFactory (Object target ) {
50
- Assert .notNull (target , "Target object must not be null" );
51
- setInterfaces (ClassUtils .getAllInterfaces (target ));
52
49
setTarget (target );
50
+ setInterfaces (ClassUtils .getAllInterfaces (target ));
53
51
}
54
52
55
53
/**
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public class FileSystemResource extends AbstractResource implements WritableReso
45
45
46
46
47
47
/**
48
- * Create a new FileSystemResource from a File handle.
48
+ * Create a new {@code FileSystemResource} from a {@link File} handle.
49
49
* <p>Note: When building relative resources via {@link #createRelative},
50
50
* the relative path will apply <i>at the same directory level</i>:
51
51
* e.g. new File("C:/dir1"), relative path "dir2" -> "C:/dir2"!
@@ -62,7 +62,7 @@ public FileSystemResource(File file) {
62
62
}
63
63
64
64
/**
65
- * Create a new FileSystemResource from a file path.
65
+ * Create a new {@code FileSystemResource} from a file path.
66
66
* <p>Note: When building relative resources via {@link #createRelative},
67
67
* it makes a difference whether the specified resource base path here
68
68
* ends with a slash or not. In the case of "C:/dir1/", relative paths
@@ -77,6 +77,7 @@ public FileSystemResource(String path) {
77
77
this .path = StringUtils .cleanPath (path );
78
78
}
79
79
80
+
80
81
/**
81
82
* Return the file path for this resource.
82
83
*/
You can’t perform that action at this time.
0 commit comments