Do not pretty-print body class
[yangtools.git] / data / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / NotUpgradableRootApplyStrategy.java
1 /*
2  * Copyright (c) 2014 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 package org.opendaylight.yangtools.yang.data.impl.schema.tree;
9
10 final class NotUpgradableRootApplyStrategy extends RootApplyStrategy {
11     private final ModificationApplyOperation delegate;
12
13     NotUpgradableRootApplyStrategy(final ModificationApplyOperation delegate) {
14         this.delegate = delegate;
15     }
16
17     @Override
18     protected ModificationApplyOperation delegate() {
19         return delegate;
20     }
21
22     @Override
23     void upgradeIfPossible() {
24         // Intentional noop
25     }
26
27     @Override
28     RootApplyStrategy snapshot() {
29         return this;
30     }
31 }