sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Elmahrek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-1343) Sqoop2: Provide validation utilities
Date Thu, 26 Jun 2014 18:15:24 GMT
Abraham Elmahrek created SQOOP-1343:

             Summary: Sqoop2: Provide validation utilities
                 Key: SQOOP-1343
                 URL: https://issues.apache.org/jira/browse/SQOOP-1343
             Project: Sqoop
          Issue Type: Bug
            Reporter: Abraham Elmahrek

Instead of:
    if(input.inputDirectory == null || input.inputDirectory.isEmpty()) {
      validation.addMessage(Status.UNACCEPTABLE, "input", "inputDirectory", "Input directory
is empty");

It would be nice to reuse logic:
validation.checkNotNullOrBlank(input.inputDirectory, Status.UNACCEPTABLE, "input", "inputDirectory",
"Input directory is empty");

Or something similar.

This message was sent by Atlassian JIRA

View raw message