Skip to content

Commit 3896620

Browse files
pzygielomichael-o
authored andcommitted
Use (already) precalculated value
1 parent 667ce0e commit 3896620

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/codehaus/plexus/util/xml/pull/MXSerializer.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,15 @@ public void startDocument( String encoding, Boolean standalone )
460460
if ( encoding != null )
461461
{
462462
out.write( " encoding=" );
463-
out.write( attributeUseApostrophe ? '\'' : '"' );
463+
out.write( apos );
464464
out.write( encoding );
465-
out.write( attributeUseApostrophe ? '\'' : '"' );
465+
out.write( apos );
466466
// out.write('\'');
467467
}
468468
if ( standalone != null )
469469
{
470470
out.write( " standalone=" );
471-
out.write( attributeUseApostrophe ? '\'' : '"' );
471+
out.write( apos );
472472
if ( standalone )
473473
{
474474
out.write( "yes" );
@@ -477,7 +477,7 @@ public void startDocument( String encoding, Boolean standalone )
477477
{
478478
out.write( "no" );
479479
}
480-
out.write( attributeUseApostrophe ? '\'' : '"' );
480+
out.write( apos );
481481
// if(standalone.booleanValue()) {
482482
// out.write(" standalone='yes'");
483483
// } else {

0 commit comments

Comments
 (0)