Fix FindBugs violations
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / NeutronL2gatewayRequest.java
1 /*
2  * Copyright (c) 2015 Hewlett-Packard Development Company, L.P. 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.neutron.northbound.api;
10
11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlElement;
14 import org.opendaylight.neutron.spi.NeutronL2gateway;
15
16 @SuppressFBWarnings("URF_UNREAD_FIELD")
17 public final class NeutronL2gatewayRequest implements INeutronRequest<NeutronL2gateway> {
18     @XmlElement(name = "l2_gateway")
19     NeutronL2gateway singleton;
20
21     @XmlElement(name = "l2_gateways")
22     List<NeutronL2gateway> bulkRequest;
23
24     NeutronL2gatewayRequest() {
25     }
26
27     NeutronL2gatewayRequest(NeutronL2gateway l2gateway) {
28         this.singleton = l2gateway;
29     }
30
31     NeutronL2gatewayRequest(List<NeutronL2gateway> bulk) {
32         bulkRequest = bulk;
33     }
34 }