Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-04-18 17:13:19 -0400
committerJean Michel-Lemieux2002-04-18 17:13:19 -0400
commite367b577e40cbb90d2470eba8167659cdab51545 (patch)
tree8109dfd7eacc13eaffa942eb5d254e7ed9b64529
parent421d545c69e25143dafcd0cea6ee6d9ac8181fc7 (diff)
downloadeclipse.platform.team-e367b577e40cbb90d2470eba8167659cdab51545.tar.gz
eclipse.platform.team-e367b577e40cbb90d2470eba8167659cdab51545.tar.xz
eclipse.platform.team-e367b577e40cbb90d2470eba8167659cdab51545.zip
Refactored a method from other places in the plugin that compare two tags even if null.
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
index c7de7e32b..7b667286c 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
@@ -59,6 +59,12 @@ public class CVSTag {
return getName().compareTo(other.getName());
}
+ public static boolean equalTags(CVSTag tag1, CVSTag tag2) {
+ if (tag1 == null) tag1 = CVSTag.DEFAULT;
+ if (tag2 == null) tag2 = CVSTag.DEFAULT;
+ return tag1.equals(tag2);
+ }
+
public static IStatus validateTagName(String tagName) {
if (tagName == null)
return new CVSStatus(CVSStatus.ERROR, Policy.bind("CVSTag.nullName")); //$NON-NLS-1$

Back to the top