hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077368 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java
Date Fri, 04 Mar 2011 04:07:54 GMT
Author: omalley
Date: Fri Mar  4 04:07:54 2011
New Revision: 1077368

URL: http://svn.apache.org/viewvc?rev=1077368&view=rev
Log:
commit e13744f23f70855abe7e1e8b93275ada9f9e20f7
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Thu Apr 1 16:35:15 2010 -0700

    Fixing bad host resolution

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java?rev=1077368&r1=1077367&r2=1077368&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/net/NetUtils.java
Fri Mar  4 04:07:54 2011
@@ -414,7 +414,7 @@ public class NetUtils {
    * @return its IP address in the string format
    */
   public static String normalizeHostName(String name) {
-    if (Character.digit(name.charAt(0), 16) != -1) { // it is an IP
+    if (Character.digit(name.charAt(0), 10) != -1) { //FIXME 
       return name;
     } else {
       try {



Mime
View raw message