mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
Explanatory comment on test
This commit is contained in:
parent
2173228b27
commit
6d5ccfaeac
@ -115,9 +115,15 @@ public class JavaEvolutionTests {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
We want to force the evolution serializer factory to check that the property types of the local and
|
||||||
|
remote types match up, which only happens if both types have the same set of property names (i.e.
|
||||||
|
this might be a spurious evolution candidate). We do this by adding a marker interface to the type,
|
||||||
|
which will change its fingerprint but have no effect on its serialisation behaviour.
|
||||||
|
*/
|
||||||
public interface ForceEvolution { }
|
public interface ForceEvolution { }
|
||||||
|
|
||||||
// Class as it exists now with the newly added element
|
// Class as it exists now with the newly added interface
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
static class POJOWithInteger implements ForceEvolution {
|
static class POJOWithInteger implements ForceEvolution {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
Loading…
Reference in New Issue
Block a user