Fix checkstyle issues in module sal-dom-broker
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / legacy / sharded / adapter / LegacyShardedDOMDataBrokerAdapterUtils.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.md.sal.dom.broker.impl.legacy.sharded.adapter;
10
11 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
12
13 final class LegacyShardedDOMDataBrokerAdapterUtils {
14
15     private LegacyShardedDOMDataBrokerAdapterUtils() {
16         throw new AssertionError("Util class should not be instantiated");
17     }
18
19     public static org.opendaylight.mdsal.common.api.LogicalDatastoreType translateDataStoreType(
20             final LogicalDatastoreType store) {
21         return store
22                 .equals(LogicalDatastoreType.CONFIGURATION) ? org.opendaylight.mdsal.common.api.LogicalDatastoreType
23                 .CONFIGURATION : org.opendaylight.mdsal.common.api.LogicalDatastoreType.OPERATIONAL;
24     }
25 }