Reduce visibility of LENGTH_FIELD_LENGTH 91/1791/2
authorRobert Varga <rovarga@cisco.com>
Wed, 9 Oct 2013 21:23:53 +0000 (23:23 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 10 Oct 2013 08:17:16 +0000 (10:17 +0200)
commite92c05d93931ede7730f041a3b9df4425bafa400
tree0b0d2ed37b78227a45ea0334f512f8f11242499d
parent726a889d433173e6b7e8f57a294a82786644505f
Reduce visibility of LENGTH_FIELD_LENGTH

Limit visibility of BGPMessageFactoryImpl.LENGTH_FIELD_LENGTH
to default, so tests can pick it up. Also create a dedicated
BGPDocumentedException constructor for BAD_MSG_LENGTH case,
unifying the length data handling.

Change-Id: I8ca40d31557b7573ffd86a93de91c2a3470c4f51
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/parser-api/src/main/java/org/opendaylight/protocol/bgp/parser/BGPDocumentedException.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPMessageFactoryImpl.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPKeepAliveMessageParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPNotificationMessageParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPOpenMessageParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPUpdateMessageParser.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/MessageParser.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/ParserTest.java