[ 
https://issues.apache.org/jira/browse/GROOVY-8038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sinuhé updated GROOVY-8038:
---------------------------
    Description: *groovy.text.markup.BaseTemplate* is a good candidate for 
extending it with custom methods. The problem is that common methods such as 
*createWriter()*, *forkModel()*, *writeIndent()* should be accessible by 
extended class. For simplicity, I suggest to change all current private methods 
to protected. Fields should be accessible too.  (was: 
*groovy.text.markup.BaseTemplate* is a good candidate for extending it with 
custom methods. The problem is that common methods such as *createWriter()*, 
*forkModel()*, *writeIndent()* should be accessible by extended class. For 
simplicity, I suggest to change all current private methods to protected.)

> Change BaseTemplate private methods to protected
> ------------------------------------------------
>
>                 Key: GROOVY-8038
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8038
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Templating
>    Affects Versions: 2.4.7
>            Reporter: Sinuhé
>            Priority: Minor
>
> *groovy.text.markup.BaseTemplate* is a good candidate for extending it with 
> custom methods. The problem is that common methods such as *createWriter()*, 
> *forkModel()*, *writeIndent()* should be accessible by extended class. For 
> simplicity, I suggest to change all current private methods to protected. 
> Fields should be accessible too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to