Like mentioned in the previous comment in code, the method should be used in the other project, like authorize-project that require a field to be set as critical.
As discussed with Jesse and Oleg on Oct. 5, I can un-restrict the call to this method by plugins.
@@ -131,7 +131,6 @@ public class XStream2 extends XStream {
* @param clazz a class which we expect to hold a non-{@code transient} field
* @param field a field name in that class
*/
- @Restricted(NoExternalUse.class) // TODO could be opened up later
public void addCriticalField(Class<?> clazz, String field) {
reflectionConverter.addCriticalField(clazz, field);
}
