[ 
https://issues.apache.org/jira/browse/SQOOP-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abraham Fine updated SQOOP-1343:
--------------------------------
    Fix Version/s: no-release

> Sqoop2: Provide validation utilities
> ------------------------------------
>
>                 Key: SQOOP-1343
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1343
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Abraham Elmahrek
>             Fix For: no-release
>
>
> Instead of:
> {code}
>     if(input.inputDirectory == null || input.inputDirectory.isEmpty()) {
>       validation.addMessage(Status.UNACCEPTABLE, "input", "inputDirectory", 
> "Input directory is empty");
>     }
> {code}
> It would be nice to reuse logic:
> {code}
> validation.checkNotNullOrBlank(input.inputDirectory, Status.UNACCEPTABLE, 
> "input", "inputDirectory", "Input directory is empty");
> {code}
> Or something similar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to