Sync with latest bnd code for testing purposes
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1354104 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/bnd/differ/Element.java b/bundleplugin/src/main/java/aQute/bnd/differ/Element.java
index 683c7a8..3d27f62 100644
--- a/bundleplugin/src/main/java/aQute/bnd/differ/Element.java
+++ b/bundleplugin/src/main/java/aQute/bnd/differ/Element.java
@@ -97,8 +97,7 @@
public int compareTo(Tree other) {
if (type == other.getType())
return name.compareTo(other.getName());
- else
- return type.compareTo(other.getType());
+ return type.compareTo(other.getType());
}
public boolean equals(Object other) {
@@ -125,7 +124,7 @@
}
public Diff diff(Tree older) {
- return new DiffImpl(this, (Element) older);
+ return new DiffImpl(this, older);
}
public Element get(String name) {