commit | e3ea9a4c17e1820d74a7f894dfaec55614f219d0 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Wed Feb 10 17:54:59 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Feb 11 01:56:41 2016 +0000 |
tree | 1ea48f22c28271d49459262f2887d34337fef536 | |
parent | 9c630b211d8b7b301b5618c421d0293c9944399e [diff] |
Fixing javadocs Change-Id: I8e7f6451876c6733bf33667face30b32e5378c99
diff --git a/core/api/src/main/java/org/onosproject/net/AbstractProjectableModel.java b/core/api/src/main/java/org/onosproject/net/AbstractProjectableModel.java index 4c66e91..9444e32 100644 --- a/core/api/src/main/java/org/onosproject/net/AbstractProjectableModel.java +++ b/core/api/src/main/java/org/onosproject/net/AbstractProjectableModel.java
@@ -88,7 +88,7 @@ } /** - * Returns the currently bound driver or null of no driver is bound. + * Returns the currently bound driver or null if no driver is bound. * * @return bound driver; null if none */
diff --git a/core/api/src/main/java/org/onosproject/net/driver/Projectable.java b/core/api/src/main/java/org/onosproject/net/driver/Projectable.java index 9cff6b4..efd6b46 100644 --- a/core/api/src/main/java/org/onosproject/net/driver/Projectable.java +++ b/core/api/src/main/java/org/onosproject/net/driver/Projectable.java
@@ -30,7 +30,9 @@ * * @param projectionClass requested projection class * @param <B> type of behaviour - * @return projection instance or null if requested projection is not supported + * @return projection instance + * @throws IllegalStateException if a driver cannot be found + * @throws IllegalArgumentException if the projection is not supported */ <B extends Behaviour> B as(Class<B> projectionClass);