This method does not touch shared state, hence it should not be
synchronized. It really is a private detail, visible for testing only.
Change-Id: I41a765a7f7aa8b5dcda6e9d57fc4f065f760fbf3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return PlainPatchDataTransactionUtil.patchData(payload, strategy, iid.getSchemaContext());
}
- // FIXME: why is this synchronized?
- public synchronized RestconfStrategy getRestconfStrategy(final DOMMountPoint mountPoint) {
+ @VisibleForTesting
+ final RestconfStrategy getRestconfStrategy(final DOMMountPoint mountPoint) {
if (mountPoint == null) {
return restconfStrategy;
}