Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-10-07 05:41:09 -0400
committerAlexander Kurtakov2017-10-07 05:41:09 -0400
commitc57f0da20d8de7f1e8d1cbb211ce476a516b3b71 (patch)
tree2a986e6e0e135cf7908b61b3c4c5682bc7386ca9
parentb58fc846d236c3732e8976f5e203c57e0863e2be (diff)
downloadrt.equinox.p2-c57f0da20d8de7f1e8d1cbb211ce476a516b3b71.tar.gz
rt.equinox.p2-c57f0da20d8de7f1e8d1cbb211ce476a516b3b71.tar.xz
rt.equinox.p2-c57f0da20d8de7f1e8d1cbb211ce476a516b3b71.zip
Bug 521839 - Move discovery bundle to Java 8I20171008-2000I20171007-1500
Add missing Override annotation. Change-Id: I10de2831a21f3434ecfb2b38c36213f5094e5c94 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogCategoryComparator.java3
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogItemComparator.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogCategoryComparator.java b/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogCategoryComparator.java
index bf2f1bb3c..381b441ef 100644
--- a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogCategoryComparator.java
+++ b/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogCategoryComparator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2016 Tasktop Technologies and others.
+ * Copyright (c) 2009, 2017 Tasktop Technologies 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
@@ -21,6 +21,7 @@ import org.eclipse.equinox.internal.p2.discovery.model.CatalogCategory;
*/
public class CatalogCategoryComparator implements Comparator<CatalogCategory> {
+ @Override
public int compare(CatalogCategory o1, CatalogCategory o2) {
if (o1 == o2) {
return 0;
diff --git a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogItemComparator.java b/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogItemComparator.java
index e61cc65ea..656e4ca90 100644
--- a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogItemComparator.java
+++ b/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/util/CatalogItemComparator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Tasktop Technologies and others.
+ * Copyright (c) 2009, 2017 Tasktop Technologies 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
@@ -41,6 +41,7 @@ public class CatalogItemComparator implements Comparator<CatalogItem> {
return -1;
}
+ @Override
public int compare(CatalogItem o1, CatalogItem o2) {
if (o1.getCategory() != o2.getCategory()) {
throw new IllegalArgumentException();

Back to the top