Author: rickhall
Date: Fri May 9 11:11:12 2008
New Revision: 654903
URL: http://svn.apache.org/viewvc?rev=654903&view=rev
Log:
Fixed improper synchronization with respect to visibility rules.
Modified:
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
Modified:
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
URL:
http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java?rev=654903&r1=654902&r2=654903&view=diff
==============================================================================
---
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
(original)
+++
felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
Fri May 9 11:11:12 2008
@@ -37,7 +37,7 @@
{
}
- public String getName()
+ public synchronized String getName()
{
return m_name;
}
@@ -47,7 +47,7 @@
m_name = name;
}
- public String getFilter()
+ public synchronized String getFilter()
{
return m_filter.toString();
}
@@ -63,7 +63,7 @@
return m_filter.match(m_dict);
}
- public boolean isExtend()
+ public synchronized boolean isExtend()
{
return m_extend;
}
@@ -73,7 +73,7 @@
m_extend = Boolean.valueOf(s).booleanValue();
}
- public boolean isMultiple()
+ public synchronized boolean isMultiple()
{
return m_multiple;
}
@@ -83,7 +83,7 @@
m_multiple = Boolean.valueOf(s).booleanValue();
}
- public boolean isOptional()
+ public synchronized boolean isOptional()
{
return m_optional;
}
@@ -93,7 +93,7 @@
m_optional = Boolean.valueOf(s).booleanValue();
}
- public String getComment()
+ public synchronized String getComment()
{
return m_comment;
}
@@ -118,7 +118,7 @@
return false;
}
- public int hashCode()
+ public synchronized int hashCode()
{
return m_filter.toString().hashCode();
}