Подскажите, пожалуйста, почему не пропускает валидатор?
package com.javarush.task.task19.task1921;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Date;
/*
Хуан Хуанович
*/
public class Solution {
public static final List<Person> PEOPLE = new ArrayList<Person>();
public static void main(String[] args) throws Exception {
String fileName = args[0];
FileReader fr = new FileReader(fileName);
BufferedReader r = new BufferedReader(fr);
while(r.ready()){
String [] line = r.readLine().split(" ");
if(line.length == 4 ){
Calendar calendar = new GregorianCalendar(Integer.parseInt(line[1]), Integer.parseInt(line[2]), Integer.parseInt(line[3]));
Date date = calendar.getTime();
String name = line[0];
PEOPLE.add(new Person(name, date));
}
if(line.length == 6 ){
Calendar calendar = new GregorianCalendar(Integer.parseInt(line[3]), Integer.parseInt(line[4]), Integer.parseInt(line[5]));
Date date = calendar.getTime();
String name = line[0] + " " + line[1] + " " + line[2];
PEOPLE.add(new Person(name, date));
}
if(line.length == 5 ){
Calendar calendar = new GregorianCalendar(Integer.parseInt(line[2]), Integer.parseInt(line[3]), Integer.parseInt(line[4]));
Date date = calendar.getTime();
String name = line[0] + " " + line[1];
PEOPLE.add(new Person(name, date));
}
}
r.close();
fr.close();
}
}