Netflix / photon

Photon is a Java implementation of the Interoperable Master Format (IMF) standard. IMF is a SMPTE standard whose core constraints are defined in the specification st2067-2:2013
Apache License 2.0
234 stars 76 forks source link

Ignore synthetic fields during object construction #228

Closed davidt-netflix closed 5 years ago

davidt-netflix commented 5 years ago

Certain testing and code coverage frameworks inject additional fields into classes during tests. These synthetic fields are not handled correctly by the reflection logic in IMFDocumentsObjectFieldsFactory. I added logic to ignore these fields during object construction.

There is also some additional refactoring to remove redundant code, and simplify object construction logic.