Skip to content

Method addOmittedFields in XStreamMarshaller should access XStream instance via getter. [SWS-437] #580

@gregturn

Description

@gregturn

Robert Novotny opened SWS-437 and commented

XStreamMarshaller consistently accesses to the XStream instance via getters. However the method addOmittedFields() contains the direct access to the XStream instance.
Original code:
public void addOmittedField(Class type, String fieldName) {
xstream.omitField(type, fieldName);
}

This is inconsistent with the rest of the code in the class and prevents the subclasses of XStreamMarshaller to provide their own implementation of XStream.


Referenced from: commits 725ab96

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions