sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Chagarlamudi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-2347) Typo in sqoop documentation
Date Wed, 06 May 2015 14:56:00 GMT
Prasanth Chagarlamudi created SQOOP-2347:
--------------------------------------------

             Summary: Typo 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


There is a typo in code snippet. http://sqoop.apache.org/docs/1.99.4/ClientAPI.html

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:red}.getValidationMessages()) {
        System.out.println("Config Input Validation Warning: " + message.getMessage());
      }
    }
    else if (minput.getValidationStatus() == Status.ERROR) {
      for(Message message : {color:red}config{color:red}.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)

Mime
View raw message