HttpResponseStatus equals operator

rajks rajks at hotmail.com
Sun May 23 18:38:48 EDT 2010


Hi,

I tried to do this in the code and the test is always returning false.
Anything wrong with my coding fundamentals.

HttpResponse response = future.get();

if (response.getStatus() == HttpResponseStatus.OK) {
}

The == never matches at all even when status 200.

Is there something wrong in doing ==  operator ???

It works if I do response.getStatus().equals(HttpResponseStatus.OK)

Thanks
Raj



-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HttpResponseStatus-equals-operator-tp5092008p5092008.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list