sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dian Fu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-2388) SQOOP2: Remove duplicate code in ConfigUtils.fromConfigs()
Date Wed, 03 Jun 2015 02:04:49 GMT
Dian Fu created SQOOP-2388:
------------------------------

             Summary: SQOOP2: Remove duplicate code in ConfigUtils.fromConfigs()
                 Key: SQOOP-2388
                 URL: https://issues.apache.org/jira/browse/SQOOP-2388
             Project: Sqoop
          Issue Type: Bug
            Reporter: Dian Fu
            Assignee: Dian Fu


The following code in {{ConfigUtils.fromConfigs()}} is duplicate with {{getFieldFromName()}}
{code}
Field configField;
      try {
        configField = klass.getDeclaredField(config.getName());
      } catch (NoSuchFieldException e) {
        throw new SqoopException(ModelError.MODEL_006,
          "Missing field " + config.getName() + " on config class " + klass.getCanonicalName(),
e);
      }
{code}



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

Mime
View raw message