sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-2388) SQOOP2: Remove duplicate code in ConfigUtils.fromConfigs()
Date Mon, 08 Jun 2015 10:04:00 GMT

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

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

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

SQOOP-2388: SQOOP2: Remove duplicate code in ConfigUtils.fromConfigs() (Fudian via Richard)


> 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
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2388.1.patch
>
>
> 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