You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "leesf (Jira)" <ji...@apache.org> on 2019/10/10 01:54:00 UTC

[jira] [Created] (HUDI-299) Refactoring Hoodie#getFileName

leesf created HUDI-299:
--------------------------

             Summary: Refactoring Hoodie#getFileName
                 Key: HUDI-299
                 URL: https://issues.apache.org/jira/browse/HUDI-299
             Project: Apache Hudi (incubating)
          Issue Type: Improvement
          Components: Common Core
            Reporter: leesf
            Assignee: leesf
             Fix For: 0.5.1


Currently, the code style used in HoodieInstance#getFileName is below.

{code:java}
if (xxx) {
    return;
} else if (xxx) {
    return;
} else if (xxx) {
    return;
}
throw new IllegalArgumentException("xxx");
{code}

However, it could be refactored into a simpler and more readable code style.

{code:java}
if (xxx) {
    return;
} 
if (xxx) {
    return;
} 
if (xxx) {
    return;
}
throw new IllegalArgumentException("xxx");
{code}

CC [~vbalaji] [~vinoth]




--
This message was sent by Atlassian Jira
(v8.3.4#803005)