File tree 3 files changed +3
-7
lines changed
spring-core/src/main/java/org/springframework/core/io 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public Resource createRelative(String relativePath) throws IOException {
173
173
* This implementation always returns <code>null</code>,
174
174
* assuming that this resource type does not have a filename.
175
175
*/
176
- public String getFilename () throws IllegalStateException {
176
+ public String getFilename () {
177
177
return null ;
178
178
}
179
179
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2007 the original author or authors.
2
+ * Copyright 2002-2012 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.
@@ -47,6 +47,7 @@ public interface InputStreamSource {
47
47
* as JavaMail, which needs to be able to read the stream multiple times when
48
48
* creating mail attachments. For such a use case, it is <i>required</i>
49
49
* that each <code>getInputStream()</code> call returns a fresh stream.
50
+ * @return the input stream for the underlying resource (must not be {@code null})
50
51
* @throws IOException if the stream could not be opened
51
52
* @see org.springframework.mail.javamail.MimeMessageHelper#addAttachment(String, InputStreamSource)
52
53
*/
Original file line number Diff line number Diff line change @@ -133,9 +133,4 @@ public interface Resource extends InputStreamSource {
133
133
*/
134
134
String getDescription ();
135
135
136
- /**
137
- * {@inheritDoc}
138
- * @return the input stream for the underlying resource (must not be {@code null}).
139
- */
140
- public InputStream getInputStream () throws IOException ;
141
136
}
You can’t perform that action at this time.
0 commit comments