hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "info@flyingfischer.ch" <i...@flyingfischer.ch>
Subject Testing httpcore-4.4.5
Date Wed, 08 Jun 2016 17:46:14 GMT
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

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


Mime
View raw message