Upgraded checkstyle finds a number of issues, fix them up.
Change-Id: I501fe4a7b80efd96cb3904cbb857e1bff9556ae7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
5c8ed0f8cd482fe14b96cab76f79c3d599783166)
import java.util.HashMap;
import java.util.List;
import java.util.HashMap;
import java.util.List;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This Class implements a simple Constrained Shortest Path First path computation algorithm that take into account
* Bandwidth and TE Metric as constraints.
/**
* This Class implements a simple Constrained Shortest Path First path computation algorithm that take into account
* Bandwidth and TE Metric as constraints.
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
*/
public class ConstrainedShortestPathFirst extends AbstractPathComputation {
*/
public class ConstrainedShortestPathFirst extends AbstractPathComputation {
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.graph.ConnectedVertex;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.graph.ConnectedVertex;
* @author Philippe Niger
* @author Olivier Dugeon
* @author Philippe Cadro
* @author Philippe Niger
* @author Olivier Dugeon
* @author Philippe Cadro
public class Samcra extends AbstractPathComputation {
public class Samcra extends AbstractPathComputation {
/*
* This class stores the set of paths which has been computed for a given Connected Vertex:
* - pathCount number of active paths
/*
* This class stores the set of paths which has been computed for a given Connected Vertex:
* - pathCount number of active paths
* Each path is represented by a "CspfPath" class to encompass path predecessor, path status
* and path length information
*/
* Each path is represented by a "CspfPath" class to encompass path predecessor, path status
* and path length information
*/
private static class SamcraPath {
private ConnectedVertex cvertex;
private static class SamcraPath {
private ConnectedVertex cvertex;
import java.util.HashMap;
import java.util.List;
import java.util.HashMap;
import java.util.List;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This Class implements a simple Shortest Path First path computation algorithm based on standard IGP Metric.
*
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
/**
* This Class implements a simple Shortest Path First path computation algorithm based on standard IGP Metric.
*
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
*/
public class ShortestPathFirst extends AbstractPathComputation {
*/
public class ShortestPathFirst extends AbstractPathComputation {
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
import org.opendaylight.protocol.bmp.spi.registry.BmpMessageRegistry;
public final class BmpHandlerFactory {
import org.opendaylight.protocol.bmp.spi.registry.BmpMessageRegistry;
public final class BmpHandlerFactory {
public ChannelHandler[] getDecoders() {
return new ChannelHandler[]{new BmpMessageHeaderDecoder(), new BmpByteToMessageDecoder(this.registry),};
}
public ChannelHandler[] getDecoders() {
return new ChannelHandler[]{new BmpMessageHeaderDecoder(), new BmpByteToMessageDecoder(this.registry),};
}
package org.opendaylight.protocol.pcep.parser.message;
import com.google.common.base.Preconditions;
package org.opendaylight.protocol.pcep.parser.message;
import com.google.common.base.Preconditions;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.opendaylight.protocol.pcep.spi.AbstractMessageParser;
import org.opendaylight.protocol.pcep.spi.MessageUtil;
import org.opendaylight.protocol.pcep.spi.ObjectRegistry;
import org.opendaylight.protocol.pcep.spi.AbstractMessageParser;
import org.opendaylight.protocol.pcep.spi.MessageUtil;
import org.opendaylight.protocol.pcep.spi.ObjectRegistry;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.opendaylight.protocol.pcep.spi.EROSubobjectRegistry;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
import org.opendaylight.protocol.pcep.spi.EROSubobjectRegistry;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
* Parser for {@link Ero}.
*/
public final class PCEPExplicitRouteObjectParser extends AbstractEROWithSubobjectsParser {
* Parser for {@link Ero}.
*/
public final class PCEPExplicitRouteObjectParser extends AbstractEROWithSubobjectsParser {
private static final int CLASS = 7;
private static final int TYPE = 1;
private static final int CLASS = 7;
private static final int TYPE = 1;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
import org.opendaylight.protocol.pcep.spi.RROSubobjectRegistry;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
import org.opendaylight.protocol.pcep.spi.RROSubobjectRegistry;
* Parser for {@link Rro}.
*/
public final class PCEPReportedRouteObjectParser extends AbstractRROWithSubobjectsParser {
* Parser for {@link Rro}.
*/
public final class PCEPReportedRouteObjectParser extends AbstractRROWithSubobjectsParser {
public static final int CLASS = 8;
public static final int CLASS = 8;
public static final int TYPE = 1;
public PCEPReportedRouteObjectParser(final RROSubobjectRegistry subobjReg) {
public static final int TYPE = 1;
public PCEPReportedRouteObjectParser(final RROSubobjectRegistry subobjReg) {
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
import org.opendaylight.protocol.pcep.spi.MessageRegistry;
/**
import org.opendaylight.protocol.pcep.spi.MessageRegistry;
/**
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message;
public interface MessageSerializer {
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message;
public interface MessageSerializer {
/**
* Serializes given message to bytes wrapped in given ByteBuf.
* @param message PCEP message to be serialized
/**
* Serializes given message to bytes wrapped in given ByteBuf.
* @param message PCEP message to be serialized
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.reported.route.object.rro.Subobject;
/**
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.reported.route.object.rro.Subobject;
/**