diff --git a/guava/src/com/google/common/graph/BaseGraph.java b/guava/src/com/google/common/graph/BaseGraph.java index 83ca9da72f02..1749c73034e7 100644 --- a/guava/src/com/google/common/graph/BaseGraph.java +++ b/guava/src/com/google/common/graph/BaseGraph.java @@ -51,7 +51,7 @@ interface BaseGraph extends SuccessorGraph, PredecessorGraph { /** * Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting * to add a self-loop to a graph that does not allow them will throw an {@link - * UnsupportedOperationException}. + * IllegalArgumentException}. */ boolean allowsSelfLoops(); diff --git a/guava/src/com/google/common/graph/Network.java b/guava/src/com/google/common/graph/Network.java index 391e2e30fa90..e32ad6164fea 100644 --- a/guava/src/com/google/common/graph/Network.java +++ b/guava/src/com/google/common/graph/Network.java @@ -139,14 +139,14 @@ public interface Network extends SuccessorGraph, PredecessorGraph { /** * Returns true if this network allows parallel edges. Attempting to add a parallel edge to a - * network that does not allow them will throw an {@link UnsupportedOperationException}. + * network that does not allow them will throw an {@link IllegalArgumentException}. */ boolean allowsParallelEdges(); /** * Returns true if this network allows self-loops (edges that connect a node to itself). * Attempting to add a self-loop to a network that does not allow them will throw an {@link - * UnsupportedOperationException}. + * IllegalArgumentException}. */ boolean allowsSelfLoops();