for (Field field : fields)
{
field.setAccessible(true);
- changeValue(vs1, field);
+ if (!copyConstructorIgnores(field.getName()))
+ {
+ changeValue(vs1, field);
+ }
}
ViewStyle vs2 = new ViewStyle(vs1);
}
/**
+ * Add any field names in here that we expect to be ignored by the copy
+ * constructor
+ *
+ * @param name
+ * @return
+ */
+ private boolean copyConstructorIgnores(String name)
+ {
+ /*
+ * currently none!
+ */
+ return false;
+ }
+
+ /**
* Change the value of one field in a ViewStyle object
*
* @param vs