You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "info@flyingfischer.ch" <in...@flyingfischer.ch> on 2016/06/08 17:46:14 UTC
Testing httpcore-4.4.5
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
Re: Testing httpcore-4.4.5
Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
Dear Oleg
thanks for your very appreciated work!
Markus
Am 09.06.2016 um 09:56 schrieb Oleg Kalnichevski:
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
Re: Testing httpcore-4.4.5
Posted by Oleg Kalnichevski <ol...@apache.org>.
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