Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / persisted / EmptyState.java
1 /*
2  * Copyright (c) 2017 Brocade Communications 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.controller.cluster.raft.persisted;
9
10 /**
11  * Empty Snapshot State implementation.
12  *
13  * @author Thomas Pantelis
14  */
15 public final class EmptyState implements Snapshot.State {
16     private static final long serialVersionUID = 1L;
17
18     public static final EmptyState INSTANCE = new EmptyState();
19
20     private EmptyState() {
21     }
22
23     @SuppressWarnings("static-method")
24     private Object readResolve() {
25         return INSTANCE;
26     }
27 }