| 30 | | target.version = Math.max(target.version, other.version); |
| | 30 | // sync versions. target.version = Math.max(target.version, other.version) |
| | 31 | // is not sufficient. Consider a conflict where the user decided to keep his |
| | 32 | // local data. the local primitive ('other' in this case) should have the |
| | 33 | // higher version, too. |
| | 34 | // target other |
| | 35 | // key=value1 key=value2 |
| | 36 | // version=21 version=20 |
| | 37 | int newversion = Math.max(target.version, other.version); |
| | 38 | target.version = newversion; |
| | 39 | other.version = newversion; |