File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 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.
1919import org .aopalliance .intercept .Interceptor ;
2020
2121import org .springframework .aop .TargetSource ;
22- import org .springframework .util .Assert ;
2322import 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 /**
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments