Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2021-03-25 07:58:51 +0000
committerAlexander Kurtakov2021-03-25 07:58:51 +0000
commitb0fb8cd1077430a896be37e14ef246f0c85ca536 (patch)
tree76bebca20ecad342f6ce69c4c5e146c048c0d5e2
parent49b3c42b94f4d1f7926d1505b06121e336fdcf14 (diff)
downloadrt.equinox.p2-b0fb8cd1077430a896be37e14ef246f0c85ca536.tar.gz
rt.equinox.p2-b0fb8cd1077430a896be37e14ef246f0c85ca536.tar.xz
rt.equinox.p2-b0fb8cd1077430a896be37e14ef246f0c85ca536.zip
Bug 572043 - Deprecate pack200 support for removalI20210325-1800
Hopefully last warnings patch. Change-Id: Ibbbb2f086826d0c19423bfd0de1569edeb0270a8 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/verifier/Verifier.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/jarprocessor/JarProcessorTests.java4
3 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/verifier/Verifier.java b/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/verifier/Verifier.java
index 8121911e7..d21aea9a6 100644
--- a/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/verifier/Verifier.java
+++ b/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/verifier/Verifier.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2017 IBM Corporation and others.
+ * Copyright (c) 2007, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -21,6 +21,7 @@ import org.eclipse.equinox.internal.p2.jarprocessor.UnpackStep;
import org.eclipse.equinox.internal.p2.jarprocessor.Utils;
import org.eclipse.internal.provisional.equinox.p2.jarprocessor.*;
+@SuppressWarnings("removal")
public class Verifier extends JarProcessorExecutor {
private static void printUsage() {
@@ -78,7 +79,6 @@ public class Verifier extends JarProcessorExecutor {
workingDir.deleteOnExit();
}
- @SuppressWarnings("removal")
public void verify(final File workingDirectory, String[] input) {
options = new Options();
options.verbose = false;
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
index c1eaed573..c5706241b 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2007, 2020 compeople AG and others.
+* Copyright (c) 2007, 2021 compeople AG and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -195,7 +195,6 @@ public class ProcessingStepHandlerTest {
assertArrayEquals(new byte[] { 3, 5, 7, 9, 11 }, result.toByteArray());
}
- @SuppressWarnings("removal")
@Test
public void testExecuteOnePack200UnpackerPS() throws IOException {
//this test is only applicable if pack200 is available
@@ -262,7 +261,6 @@ public class ProcessingStepHandlerTest {
assertEquals(Multiplier.class, steps[0].getClass());
}
- @SuppressWarnings("removal")
@Test
public void testCreatePack200UnpackerPS() {
IProcessingStepDescriptor[] descriptors = new IProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true)};
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/jarprocessor/JarProcessorTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/jarprocessor/JarProcessorTests.java
index d0b643013..abc3a1592 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/jarprocessor/JarProcessorTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/jarprocessor/JarProcessorTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2017 IBM Corporation and others.
+ * Copyright (c) 2005, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -27,6 +27,7 @@ import org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessor;
import org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor;
import org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.Options;
+@SuppressWarnings("removal")
public class JarProcessorTests extends AbstractProvisioningTest {
public void testVerifyStep() throws Exception {
@@ -37,7 +38,6 @@ public class JarProcessorTests extends AbstractProvisioningTest {
File workingDir = getTestFolder("testVerifyStep");
Verifier verifier = new Verifier() {
- @SuppressWarnings("removal")
@Override
public void verify(File workingDirectory, String[] input) {
options = new Options();

Back to the top