Commit 3eb48b17 authored by Cristina Cocho's avatar Cristina Cocho
Browse files

changed name of method

parent 1429391d
......@@ -682,18 +682,22 @@ public class PropertyManager {
}
public boolean isAnAutogeneratedSpy(String controllerName) {
public boolean spyHasContent(String controllerName) {
Set<SpyPropertyDescriptor> setOfDescriptors = getListOfpropertyDescriptorForSpy(controllerName);
if (setOfDescriptors != null && setOfDescriptors.size() == 1) {
// Verify the only property loaded is not a commandStatus property (maybe this situation never takes place)
Iterator<SpyPropertyDescriptor> it = setOfDescriptors.iterator();
SpyPropertyDescriptor spyDescriptor = it.next();
int actualPropertyID = spyDescriptor.getActualID();
String actualPropertyName = PropertyDatabase.getInstance().getPropertyName(actualPropertyID);
if (actualPropertyName.equals("commandStatus")) {
return false;
if (setOfDescriptors != null && setOfDescriptors.size() > 0) {
if (setOfDescriptors.size() == 1) {
// Verify the only property loaded is not a commandStatus property
Iterator<SpyPropertyDescriptor> it = setOfDescriptors.iterator();
SpyPropertyDescriptor spyDescriptor = it.next();
int actualPropertyID = spyDescriptor.getActualID();
String actualPropertyName = PropertyDatabase.getInstance().getPropertyName(actualPropertyID);
if (actualPropertyName.equals("commandStatus")) {
return false;
}
return true; //can this case happen? (that is: only one property & property != commandStatus)
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment