You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/05/11 21:51:00 UTC

[jira] [Commented] (SQOOP-2347) Sqoop2: Typo in code snippet in sqoop documentation

    [ https://issues.apache.org/jira/browse/SQOOP-2347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538534#comment-14538534 ] 

ASF subversion and git services commented on SQOOP-2347:
--------------------------------------------------------

Commit b1c742b638a818bd3e0c158972329c4a9606aa64 in sqoop's branch refs/heads/sqoop2 from [~abec]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=b1c742b ]

SQOOP-2347: Sqoop2: Typo in code snippet in sqoop documentation

(Prasanth Chagarlamudi via Abraham Elmahrek)


> Sqoop2: Typo in code snippet in sqoop documentation
> ---------------------------------------------------
>
>                 Key: SQOOP-2347
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2347
>             Project: Sqoop
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 1.99.4
>            Reporter: Prasanth Chagarlamudi
>            Priority: Minor
>              Labels: documentation
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2347.diff
>
>
> There is a typo in code snippet on page url http://sqoop.apache.org/docs/1.99.4/ClientAPI.html in the "View Error or Warning valdiation message" section
> private static void printMessage(List<MConfig> configs) {
>   for(MConfig config : configs) {
>     List<MInput<?>> inputlist = config.getInputs();
>     if (config.getValidationMessages() != null) {
>      // print every validation message
>      for(Message message : config.getValidationMessages()) {
>       System.out.println("Config validation message: " + message.getMessage());
>      }
>     }
>     for (MInput minput : inputlist) {
>       if (minput.getValidationStatus() == Status.WARNING) {
>        for(Message message : {color:red}config{color}.getValidationMessages()) {
>         System.out.println("Config Input Validation Warning: " + message.getMessage());
>       }
>     }
>     else if (minput.getValidationStatus() == Status.ERROR) {
>       for(Message message : {color:red}config{color}.getValidationMessages()) {
>        System.out.println("Config Input Validation Error: " + message.getMessage());
>       }
>      }
>     }
>   }
> The text in the red needs to replaced by minput.



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