Rafael, obrigado pelo feedback, as alterações já estão disponíveis para
revisão


2014-02-06 19:08 GMT-02:00 Rafael Gonzaga Camargo <notifications@github.com>
:

> In BusRoutes/src/com/example/busroutes/provider/RouteProvider.java:
>
> > +			throw new RouteQueryException(e.getMessage());
> > +		}
> > +	}
> > +	
> > +	private class CustomStopsComparator implements Comparator<RouteStop> {
> > +
> > +		@Override
> > +		public int compare(RouteStop arg0, RouteStop arg1) {
> > +			return Integer.valueOf(arg0.getSequence()).compareTo(Integer.valueOf(arg1.getSequence()));
> > +		}	
> > +	}
> > +	
> > +	private class CustomDeparturesComparator implements Comparator<RouteDeparture> {
> > +		@Override
> > +		public int compare(RouteDeparture arg0, RouteDeparture arg1) {
> > +			int calendarCompare = Integer.valueOf(arg0.getCalendar().ordinal()).compareTo(Integer.valueOf(arg1.getCalendar().ordinal()));
>
> Poderia gerar duas variáveis para deixar o código do compareTo() mais
> fácil de ler.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/pedro1412/busroutesapp/pull/2/files#r9518456>
> .
>