public ValidationException[] apply(Message msg) { List<ValidationException> exceptions = new ArrayList<ValidationException>(); if (msg instanceof SuperStructure) { checkStructure((SuperStructure)msg, exceptions); } return exceptions.toArray(new ValidationException[exceptions.size()]); }
public ValidationException[] apply(Message msg) { List<ValidationException> exceptions = new ArrayList<ValidationException>(); if (msg instanceof SuperStructure) { checkStructure((SuperStructure)msg, exceptions); } return exceptions.toArray(new ValidationException[exceptions.size()]); }