diff --git a/spring-context/src/main/java/org/springframework/cache/Cache.java b/spring-context/src/main/java/org/springframework/cache/Cache.java index 894ffaa8a6e..3e8a7978761 100644 --- a/spring-context/src/main/java/org/springframework/cache/Cache.java +++ b/spring-context/src/main/java/org/springframework/cache/Cache.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ package org.springframework.cache; /** - * Interface that defines the common cache operations. + * Interface that defines common cache operations. * * Note: Due to the generic use of caching, it is recommended that * implementations allow storage of null values (for example to @@ -68,8 +68,8 @@ public interface Cache { * the cache contains no mapping for this key * @throws IllegalStateException if a cache entry has been found * but failed to match the specified type - * @see #get(Object) * @since 4.0 + * @see #get(Object) */ T get(Object key, Class type); diff --git a/spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java b/spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java index f5c7a29f3e6..a01d7894bb6 100644 --- a/spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java +++ b/spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,12 +33,13 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage { */ void setBody(Body body); + /** - * Defines the contract for bodies that can be written directly to a - * {@link OutputStream}. It is useful with HTTP client libraries that provide indirect - * access to an {@link OutputStream} via a callback mechanism. + * Defines the contract for bodies that can be written directly to an {@link OutputStream}. + * It is useful with HTTP client libraries that provide indirect access to an + * {@link OutputStream} via a callback mechanism. */ - public interface Body { + interface Body { /** * Writes this body to the given {@link OutputStream}. @@ -46,7 +47,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage { * @throws IOException in case of errors */ void writeTo(OutputStream outputStream) throws IOException; - } }