diff options
author | Ed Merks | 2020-03-16 09:21:51 +0000 |
---|---|---|
committer | Ed Merks | 2020-03-16 09:21:51 +0000 |
commit | af4a25f1c91c4927fd8fcbd10e081fe782c221a3 (patch) | |
tree | 5988680cb190dda9aa7124f46be61b1dff6a866f | |
parent | 2c24f1d79d518a50b667d557e499085f9c37c22d (diff) | |
download | rt.equinox.p2-af4a25f1c91c4927fd8fcbd10e081fe782c221a3.tar.gz rt.equinox.p2-af4a25f1c91c4927fd8fcbd10e081fe782c221a3.tar.xz rt.equinox.p2-af4a25f1c91c4927fd8fcbd10e081fe782c221a3.zip |
Revert "Bug 561134 - Fix build failure for the used variable in FileReaderTest.testReadStream()"
This reverts commit 2c24f1d79d518a50b667d557e499085f9c37c22d.
Apparently the JDT change to diagnose unused variables has been reverted so this is not needed.
Change-Id: I42b6be1f549ca344a7e26024c9ae2e41b8b4275a
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java index fe9276263..91e03f9aa 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/FileReaderTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2020 Cloudsmith Inc and others. + * Copyright (c) 2009, 2017 Cloudsmith Inc and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -14,16 +14,9 @@ package org.eclipse.equinox.p2.tests.repository; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.ConnectException; -import java.net.URI; -import java.net.URISyntaxException; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.NullProgressMonitor; +import java.io.*; +import java.net.*; +import org.eclipse.core.runtime.*; import org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport; import org.eclipse.equinox.p2.tests.testserver.helper.AbstractTestServerClientCase; @@ -61,9 +54,7 @@ public class FileReaderTest extends AbstractTestServerClientCase { URI toDownload = new URI(getBaseURL() + "/public/index.html"); final NullProgressMonitor monitor = new NullProgressMonitor(); try (InputStream stream = transport.stream(toDownload, monitor)) { - // Avoid unused variable error - // https://bugs.eclipse.org/bugs/show_bug.cgi?id=561134 - stream.toString(); + // } assertFalse("1.0", monitor.isCanceled()); } |