Skip to content

Commit b0be21d

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
EndpointPair.java: s/adjacentNode(Object Node)/adjacentNode(N node)/
RELNOTES=`graph`: Make `EndpointPair.adjacentNode` require an `N` instead of accept any `Object`. PiperOrigin-RevId: 371380054
1 parent 4cacc0e commit b0be21d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/guava/src/com/google/common/graph/EndpointPair.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public final N nodeV() {
105105
*
106106
* @throws IllegalArgumentException if this {@link EndpointPair} does not contain {@code node}
107107
*/
108-
public final N adjacentNode(Object node) {
108+
public final N adjacentNode(N node) {
109109
if (node.equals(nodeU)) {
110110
return nodeV;
111111
} else if (node.equals(nodeV)) {

guava/src/com/google/common/graph/EndpointPair.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public final N nodeV() {
105105
*
106106
* @throws IllegalArgumentException if this {@link EndpointPair} does not contain {@code node}
107107
*/
108-
public final N adjacentNode(Object node) {
108+
public final N adjacentNode(N node) {
109109
if (node.equals(nodeU)) {
110110
return nodeV;
111111
} else if (node.equals(nodeV)) {

0 commit comments

Comments
 (0)