[jira] [Created] (BATIK-1221) Inconsistent method name

"KuiLIU (JIRA)" <[email protected]>
Newsgroups gmane.text.xml.batik.devel
Message-ID <[email protected]>
KuiLIU created BATIK-1221:
-----------------------------

             Summary: Inconsistent method name
                 Key: BATIK-1221
                 URL: https://issues.apache.org/jira/browse/BATIK-1221
             Project: Batik
          Issue Type: Improvement
            Reporter: KuiLIU


The following method is names as "convertOverflow", but the method does convert any 'Overflow' but just checks whether the element 'e' is overflow or not.
Thus, the method name should be "isOverflow".

{code:java}
 public static boolean convertOverflow(Element e) {
        Value v = getComputedStyle(e, SVGCSSEngine.OVERFLOW_INDEX);
        String s = v.getStringValue();
        return (s.charAt(0) == 'h') || (s.charAt(0) == 's');
    }
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.