[
https://issues.apache.org/jira/browse/PDFBOX-4987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213274#comment-17213274
]
Tilman Hausherr commented on PDFBOX-4987:
-----------------------------------------
I don't get it, the code is like this:
{code:java}
map.put(new Key(1), "hstem");{code}
So this isn't a new instance because we don't call {{new String("hstem")}}. Or
has java changed this? I thought all constants of a same text are the same
object.
> CharStringCommand should use referenced string
> ----------------------------------------------
>
> Key: PDFBOX-4987
> URL: https://issues.apache.org/jira/browse/PDFBOX-4987
> Project: PDFBox
> Issue Type: Improvement
> Components: Parsing
> Reporter: Simon Steiner
> Priority: Major
>
> CharStringCommand, Type2CharString and Type1CharString use duplicate string
> instances, could they use enum or final strings so its easier to debug the
> code
> eg
> static final x =new key(1, {color:#008000}"hstem");{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]