commit | 0c484a7072f54189210033a4bc9d63d230c34618 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Wed Sep 27 17:25:45 2017 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Thu Sep 28 17:10:33 2017 +0000 |
tree | 9a7efb071e3b68f790f459b628dee4b80428f024 | |
parent | 82512da39760c88d8b5ba6e43928b0cc1ace45bb [diff] |
Constructor is needed by the serializer Change-Id: I090c082ded1a7f9f2c9d877866b252939d6283ad
diff --git a/core/api/src/main/java/org/onosproject/core/DefaultApplication.java b/core/api/src/main/java/org/onosproject/core/DefaultApplication.java index 1eb83b4..2df2f8f 100644 --- a/core/api/src/main/java/org/onosproject/core/DefaultApplication.java +++ b/core/api/src/main/java/org/onosproject/core/DefaultApplication.java
@@ -55,8 +55,20 @@ * Default constructor is hidden to prevent calls to new. */ private DefaultApplication() { - // should never happen - throw new UnsupportedOperationException(); + appId = null; + version = null; + title = null; + description = null; + category = null; + url = null; + readme = null; + icon = null; + origin = null; + role = null; + permissions = null; + featuresRepo = Optional.empty(); + features = ImmutableList.of(); + requiredApps = ImmutableList.of(); } /**
diff --git a/core/api/src/main/java/org/onosproject/net/behaviour/MirroringStatistics.java b/core/api/src/main/java/org/onosproject/net/behaviour/MirroringStatistics.java index 633995f..b9aae84 100644 --- a/core/api/src/main/java/org/onosproject/net/behaviour/MirroringStatistics.java +++ b/core/api/src/main/java/org/onosproject/net/behaviour/MirroringStatistics.java
@@ -34,8 +34,9 @@ * Hide private constructor to prevent calls to new(). */ private MirroringStatistics() { - // This should never happen - throw new UnsupportedOperationException(); + mirroringName = null; + txBytes = 0; + txPackets = 0; } /**