OK, I just did the getCode() bit.

Gary

On Sat, Dec 19, 2015 at 9:18 AM, Oleg Kalnichevski <[email protected]> wrote:

> On Sat, 2015-12-19 at 09:08 -0800, Gary Gregory wrote:
> > On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski <[email protected]>
> wrote:
> >
> > > On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote:
> > > > Hi All,
> > > >
> > > > There are a lot of places where we say:
> > > >
> > > > response.getStatusLine().getStatusCode()
> > > >
> > > > Should we have a short cut
> > > >
> > > > response.getStatusCode()
> > >
> > > HttpResponse#getCode might do as well.
> > >
> >
> > Sounds good.
> >
> > This:
> >
> > > response.getStatusLine().getStatusCode()
> >
> > could also be:
> >
> > > response.getStatusLine().getCode()
> >
> > Since there is only one kind of code in a status line.
> >
> > But I am not sure that's worth it.
> >
>
> Probably not.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to