[forge-issues] [JBoss JIRA] (FORGE-127) Change Strings to take CharacterSequence in classes building java source files

Jason Porter (JIRA) issues at jboss.org
Thu Mar 6 18:16:34 EST 2014


    [ https://issues.jboss.org/browse/FORGE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12950934#comment-12950934 ] 

Jason Porter commented on FORGE-127:
------------------------------------

I have no idea if this applies to the forge 2 code anymore. However, a String is a CharacterSequence (http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/CharSequence.html) Yes, it would change the method signature, but it wouldn't break compat.
                
> Change Strings to take CharacterSequence in classes building java source files
> ------------------------------------------------------------------------------
>
>                 Key: FORGE-127
>                 URL: https://issues.jboss.org/browse/FORGE-127
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Parsers / File Manipulation
>    Affects Versions: 1.0.0.Alpha4
>            Reporter: Jason Porter
>            Priority: Minor
>
> I'm using org.jboss.forge.parser.java.Method right now and noticing everything takes a string. A nice enhancement would be to accept CharacterSequence (http://download.oracle.com/javase/6/docs/api/java/lang/CharSequence.html) instead of String. This has the added bonus of being able to pass a StringBuilder without having to call toString() on it. Other CharacterSequences may also find ease of use with this change.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list