FYC : JDK-7197183 : Improve copying behaviour of String.subSequence() (original) (raw)
Ulf Zibis Ulf.Zibis at CoSoCo.de
Tue Feb 19 15:07:15 UTC 2013
- Previous message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Next message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 19.02.2013 06:27, schrieb Mike Duigou:
I think, you should add || (s instanceof AbstractStringBuilder) as third in else if ((s instanceof StringBuilder) || (s instanceof StringBuffer)) { , as someone could use his own subclass of AbstractStringBuilder.
-Ulf
- Previous message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Next message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]