You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2010/01/15 17:48:28 UTC
svn commit: r899702 -
/commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java
Author: bayard
Date: Fri Jan 15 16:48:28 2010
New Revision: 899702
URL: http://svn.apache.org/viewvc?rev=899702&view=rev
Log:
Removing the System.out from MapUtils.getNumber as reported by Michaell Akerman. COLLECTIONS-350
Modified:
commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java?rev=899702&r1=899701&r2=899702&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/MapUtils.java Fri Jan 15 16:48:28 2010
@@ -204,7 +204,7 @@
String text = (String) answer;
return NumberFormat.getInstance().parse(text);
} catch (ParseException e) {
- logInfo(e);
+ // failure means null is returned
}
}
}
@@ -942,17 +942,6 @@
// Implementation methods
//-------------------------------------------------------------------------
/**
- * Logs the given exception to <code>System.out</code>.
- * <p>
- * This method exists as Jakarta Collections does not depend on logging.
- *
- * @param ex the exception to log
- */
- protected static void logInfo(final Exception ex) {
- System.out.println("INFO: Exception: " + ex);
- }
-
- /**
* Implementation providing functionality for {@link #debugPrint} and for
* {@link #verbosePrint}. This prints the given map with nice line breaks.
* If the debug flag is true, it additionally prints the type of the object