From: Arne Vajhøj on
On 19-05-2010 11:16, Stefan Ram wrote:
> Tom Anderson<twic(a)urchin.earth.li> writes:
>> private static String header = "" +
>> "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
>> "<initech:tps-report><initech:coversheet> etc";
>
> (After having read this, and also having read some of the
> responses:) All of the code I see in the OP is well within
> the range of what I do /not/ deem to require any criticism
> from me. I myself might not have written it like this, but
> it is perfectly readable to me, and there are good reasons
> to hard-code XML as string literal sometimes. And every
> Java programmer understands the intention of writing
> �( "" + 2 )�, you might even think of �""+� as the
> �three-character toString operator�.

But as you said: you would not write it this way.

And my guess is that is because someone many years
ago told that is was not good style.

Arne