You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "KuiLIU (JIRA)" <ji...@apache.org> on 2018/04/17 12:22:00 UTC
[jira] [Updated] (FOP-2788) Inconsistent method name
"writeToStream"
[ https://issues.apache.org/jira/browse/FOP-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
KuiLIU updated FOP-2788:
------------------------
Affects Version/s: trunk
Description:
The method closes a stream, but its name is "writetoStream". The method name "closeStream" should be better.
{code:java}
/**
* Tells the streamer to write
*
* @throws IOException thrown if an I/O exception of some sort has occurred.
*/
public void writeToStream() throws IOException {
streamer.close();
}
{code}
> Inconsistent method name "writeToStream"
> ----------------------------------------
>
> Key: FOP-2788
> URL: https://issues.apache.org/jira/browse/FOP-2788
> Project: FOP
> Issue Type: Improvement
> Affects Versions: trunk
> Reporter: KuiLIU
> Priority: Major
>
> The method closes a stream, but its name is "writetoStream". The method name "closeStream" should be better.
> {code:java}
> /**
> * Tells the streamer to write
> *
> * @throws IOException thrown if an I/O exception of some sort has occurred.
> */
> public void writeToStream() throws IOException {
> streamer.close();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)