Clean-up in BridgeOperationalState
authorStephen Kitt <skitt@redhat.com>
Thu, 16 Jul 2015 14:37:00 +0000 (16:37 +0200)
committerStephen Kitt <skitt@redhat.com>
Thu, 16 Jul 2015 14:37:00 +0000 (16:37 +0200)
commitd124066071c665e2107efcd4e3115f2bb01f27e6
tree11b39ffb14d83c2c16384ed0984576a8c7bc6e04
parent868fc7f7ef0222e05b06ec383d573695721f0dd1
Clean-up in BridgeOperationalState

The main fix is moving null-checks on iid before their first use.

db and changes are only used in the constructor, they don't need to
be in the instance; since the class isn't serializable removing the
fields doesn't change anything external.

Java 7 improvements: <> operator and merged exceptions.

Use Optional.fromNullable() to simplify some Optional creation code
and avoid double calls to getAugmentation().

Change-Id: Id6b8a13c46d2b38b23f215f200314151b9eb2b0a
Signed-off-by: Stephen Kitt <skitt@redhat.com>