Commit 31572d6
Steve Vaughan Jr
Avoid SpotBugs warning
SpotBugs is concerned that getCanonicalHostName() may return null, although the JavaDocs indicate that it will return the IP address as a String if unable to determine the FQDN. The only circumstance I can imagine where it would return null is if the IP address is null, which would mean a reverse lookup wouldn't work either.1 parent e88831b commit 31572d6
File tree
1 file changed
+1
-1
lines changed- hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net
1 file changed
+1
-1
lines changedhadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/DNSDomainNameResolver.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments