Optimize find property

This commit is contained in:
Alexander Lobas
2012-11-15 15:42:36 +04:00
parent 8ba96696d1
commit 27fe94af62
@@ -524,6 +524,11 @@ public abstract class PropertyTable extends JBTable {
}
public static int findProperty(List<Property> properties, Property property) {
int index = properties.indexOf(property);
if (index != -1) {
return index;
}
String name = property.getName();
int size = properties.size();