From 5c98cb9512d2bbdbeeb9f8b4392c7df349a5696d Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sun, 7 Jun 2020 05:41:49 -0400 Subject: [PATCH] fix deprecated methods and warnings --- .../org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java | 1 - .../maven/shared/utils/xml/PrettyPrintXmlWriterTest.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java index 596e127d..8242208b 100644 --- a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java +++ b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java @@ -103,7 +103,6 @@ public static Xpp3Dom build( @WillClose Reader reader, boolean trim ) { DocHandler docHandler = parseSax( new InputSource( reader ), trim ); reader.close(); - reader = null; return docHandler.result; } catch ( final IOException e ) diff --git a/src/test/java/org/apache/maven/shared/utils/xml/PrettyPrintXmlWriterTest.java b/src/test/java/org/apache/maven/shared/utils/xml/PrettyPrintXmlWriterTest.java index 4145cd04..70f078c5 100644 --- a/src/test/java/org/apache/maven/shared/utils/xml/PrettyPrintXmlWriterTest.java +++ b/src/test/java/org/apache/maven/shared/utils/xml/PrettyPrintXmlWriterTest.java @@ -1,10 +1,5 @@ package org.apache.maven.shared.utils.xml; -import static org.junit.Assert.fail; - -import java.io.File; -import java.io.FileOutputStream; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file