hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Testing httpcore-4.4.5
Date Thu, 09 Jun 2016 07:56:18 GMT
On Wed, 2016-06-08 at 19:46 +0200, info@flyingfischer.ch wrote:
> Testing httpcore-4.4.5
> 
> This example below will not compile anymore. Is it safe to omit 
> @Immutable from import org.apache.http.annotation.Immutable?
> 
> Sorry for bothering, thanks for considering!
> 
> Markus
> 

Hi Markus

Yes, it is safe to remove that annotation. It and all other annotations
from the org.apache.http.annotation package are used for API
documentation only.

Oleg

> import org.apache.http.annotation.Immutable;
> import org.apache.http.cookie.Cookie;
> import org.apache.http.cookie.CookieAttributeHandler;
> import org.apache.http.cookie.CookieOrigin;
> import org.apache.http.cookie.MalformedCookieException;
> 
> /**
>   *
>   * @since 4.0
>   */
> @Immutable
> public abstract class AbstractCookieAttributeHandler implements 
> CookieAttributeHandler {
> 
>      public void validate(final Cookie cookie, final CookieOrigin origin)
>              throws MalformedCookieException {
>          // Do nothing
>      }
> 
>      public boolean match(final Cookie cookie, final CookieOrigin origin) {
>          // Always match
>          return true;
>      }
> 
> }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message