Author: davidb Date: Mon Apr 11 15:56:28 2016 New Revision: 1738594 URL: http://svn.apache.org/viewvc?rev=1738594&view=rev Log: FELIX-5170 - Missing toString in FelixRequirementAdapter
Missing toString in FelixRequirementAdapter makes missing dep error impossible to solve. Patch applied on behalf of Alexandre Roman with many thanks! This closes #64 Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixCapabilityAdapter.java felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixRequirementAdapter.java Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixCapabilityAdapter.java URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixCapabilityAdapter.java?rev=1738594&r1=1738593&r2=1738594&view=diff ============================================================================== --- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixCapabilityAdapter.java (original) +++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixCapabilityAdapter.java Mon Apr 11 15:56:28 2016 @@ -126,4 +126,9 @@ public class FelixCapabilityAdapter impl result = 31 * result + getResource().hashCode(); return result; } + + public String toString() + { + return resource + ":" + capability; + } } Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixRequirementAdapter.java URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixRequirementAdapter.java?rev=1738594&r1=1738593&r2=1738594&view=diff ============================================================================== --- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixRequirementAdapter.java (original) +++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/FelixRequirementAdapter.java Mon Apr 11 15:56:28 2016 @@ -121,4 +121,9 @@ public class FelixRequirementAdapter imp result = 31 * result + (getResource() == null ? 0 : getResource().hashCode()); return result; } + + public String toString() + { + return resource + ":" + requirement; + } }