Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-01-30 03:28:42 -0500
committerAlexander Kurtakov2018-01-30 03:28:42 -0500
commit8d990a7a055c3b929818fb4cb3b8cc5525b75b52 (patch)
tree6ba5b137d6db79214308b20f287e6dafbaa46640 /bundles/org.eclipse.equinox.p2.engine/src
parentd8c703314ff500c8933466044d4e90a91001217b (diff)
downloadrt.equinox.p2-8d990a7a055c3b929818fb4cb3b8cc5525b75b52.tar.gz
rt.equinox.p2-8d990a7a055c3b929818fb4cb3b8cc5525b75b52.tar.xz
rt.equinox.p2-8d990a7a055c3b929818fb4cb3b8cc5525b75b52.zip
Bug 530486 - Remove useless thrown exceptions.I20180130-2000
Change-Id: Ieb5178a2eecbeaab88afd5e00bc3806bc615c7ae Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.engine/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileWriter.java5
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java4
2 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileWriter.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileWriter.java
index 7f9e93085..1d68d7498 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileWriter.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileWriter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2017 IBM Corporation and others.
+ * Copyright (c) 2007, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.equinox.internal.p2.engine;
-import java.io.IOException;
import java.io.OutputStream;
import java.util.*;
import org.eclipse.equinox.internal.p2.metadata.repository.io.MetadataWriter;
@@ -20,7 +19,7 @@ import org.eclipse.equinox.p2.query.QueryUtil;
public class ProfileWriter extends MetadataWriter implements ProfileXMLConstants {
- public ProfileWriter(OutputStream output, ProcessingInstruction[] processingInstructions) throws IOException {
+ public ProfileWriter(OutputStream output, ProcessingInstruction[] processingInstructions) {
super(output, processingInstructions);
}
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
index 328991eae..c5539bafc 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2017 IBM Corporation and others. All rights reserved. This
+ * Copyright (c) 2007, 2018 IBM Corporation and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -701,7 +701,7 @@ public class SimpleProfileRegistry implements IProfileRegistry, IAgentService {
static class Writer extends ProfileWriter {
- public Writer(OutputStream output) throws IOException {
+ public Writer(OutputStream output) {
super(output, new ProcessingInstruction[] {ProcessingInstruction.makeTargetVersionInstruction(PROFILE_TARGET, ProfileXMLConstants.CURRENT_VERSION)});
}
}

Back to the top