commit | 1c221ade616d3277dfd682336bb826c6c78ff5fe | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Jul 02 10:08:08 2015 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Jul 02 10:43:18 2015 -0700 |
tree | 7da1c524ed70b60afbf9483fe10ff0470f792ecb | |
parent | 5300bb8c37cd5cb96a331e3a6f29aa2c3c209633 [diff] [blame] |
ONOS-2294: Redefine LinkResource as interface LinkResource was defined as an abstract class, but it doesn't define any methods. Maker interface fits this case. Note: This change may break backward compatibility for those defining a sub-class of LinkResource. Change-Id: I53cb7e8eae7057d07c63960c488979a99cd54d52
diff --git a/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResource.java b/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResource.java index bd0ba23..fe21e04 100644 --- a/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResource.java +++ b/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResource.java
@@ -24,7 +24,7 @@ /** * Representation of bandwidth resource in bps. */ -public final class BandwidthResource extends LinkResource { +public final class BandwidthResource implements LinkResource { private final Bandwidth bandwidth;