Skip to content

Commit

Permalink
flighdata-skyalps-gtfs: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jan 23, 2024
1 parent 30dcf36 commit 394cf18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.opendatahub.validation.CheckLocationType;
import com.opendatahub.dto.CalendarValues;
Expand All @@ -24,7 +25,7 @@ public GTFSCheckCalendar(String errorMessage) {
}


public static boolean checkcalendarValues(ArrayList<CalendarValues> calendarvalues) throws GTFSCheckCalendar {
public static boolean checkcalendarValues(List<CalendarValues> calendarvalues) throws GTFSCheckCalendar {
for(int i = 0; i < calendarvalues.size(); i++) {
if(calendarvalues.get(i).getService_id() != null && calendarvalues.get(i).getEnd_date() != null && String.valueOf(calendarvalues.get(i).getMonday()) != null && String.valueOf(calendarvalues.get(i).getTuesday()) != null && String.valueOf(calendarvalues.get(i).getWednesday()) != null && String.valueOf(calendarvalues.get(i).getThursday()) != null && String.valueOf(calendarvalues.get(i).getFriday()) != null && String.valueOf(calendarvalues.get(i).getSaturday()) != null && calendarvalues.get(i).getStart_date() != null) {
if(!calendarvalues.get(i).getService_id().toString().isBlank() && !calendarvalues.get(i).getEnd_date().toString().isBlank() && !String.valueOf(calendarvalues.get(i).getMonday()).isBlank() && !String.valueOf(calendarvalues.get(i).getTuesday()).isBlank() && !String.valueOf(calendarvalues.get(i).getWednesday()).isBlank() && !String.valueOf(calendarvalues.get(i).getThursday()).isBlank() && !String.valueOf(calendarvalues.get(i).getFriday()).isBlank() && !String.valueOf(calendarvalues.get(i).getSaturday()).isBlank() && !String.valueOf(calendarvalues.get(i).getSunday()).isBlank() && !calendarvalues.get(i).getStart_date().isBlank()) {
Expand Down

0 comments on commit 394cf18

Please sign in to comment.