Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
[MSHARED-610] PrettyPrintXMLWriter internally uses java.io.PrintWrite…
Browse files Browse the repository at this point in the history
…r without checking for any errors.

o Updated to restore JDK compatibility by removing calls to constructors
  only available since Java 7.



git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1777864 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ChristianSchulte committed Jan 8, 2017
1 parent b740f0a commit 6890371
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -385,7 +385,7 @@ public String toString()
catch ( final IOException e )
{
// JDK error in StringWriter.
throw new AssertionError( "Unexpected IOException from StringWriter.", e );
throw (AssertionError) new AssertionError( "Unexpected IOException from StringWriter." ).initCause( e );
}
}

Expand All @@ -403,7 +403,7 @@ public String toUnescapedString()
catch ( final IOException e )
{
// JDK error in StringWriter.
throw new AssertionError( "Unexpected IOException from StringWriter.", e );
throw (AssertionError) new AssertionError( "Unexpected IOException from StringWriter." ).initCause( e );
}
}

Expand Down

0 comments on commit 6890371

Please sign in to comment.