[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-dev
Subject: [jira] [Created] (BATIK-1221) Inconsistent method name
From: "KuiLIU (JIRA)" <jira () apache ! org>
Date: 2018-04-21 19:03:00
Message-ID: JIRA.13154246.1524337322000.320577.1524337380047 () Atlassian ! JIRA
[Download RAW message or body]
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)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic