Fixed javadoc warnings

Issue: SPR-10373
This commit is contained in:
Juergen Hoeller
2013-05-07 21:26:01 +02:00
parent fcb0cf27d7
commit 1ca943c681
5 changed files with 34 additions and 33 deletions

View File

@@ -269,16 +269,15 @@ public class MockServletContext implements ServletContext {
}
/**
* This method uses the Java Activation framework, which returns
* "application/octet-stream" when the mime type is unknown (i.e. it never returns
* {@code null}). In order to maintain the {@link ServletContext#getMimeType(String)
* contract, as of version 3.2.2, this method returns null if the mimeType is
* "application/octet-stream".
* This method uses the Java Activation framework, which returns "application/octet-stream"
* when the mime type is unknown (i.e. it never returns {@code null}). In order to maintain
* the {@link ServletContext#getMimeType(String)} contract, this method returns {@code null}
* if the mimeType is "application/octet-stream", as of Spring 3.2.2.
*/
@Override
public String getMimeType(String filePath) {
String mimeType = MimeTypeResolver.getMimeType(filePath);
return ("application/octet-stream".equals(mimeType)) ? null : mimeType;
return ("application/octet-stream".equals(mimeType) ? null : mimeType);
}
@Override