From: <mgu...@us...> - 2012-12-18 13:55:33
|
Revision: 7879 http://sourceforge.net/p/htmlunit/code/7879 Author: mguillem Date: 2012-12-18 13:55:30 +0000 (Tue, 18 Dec 2012) Log Message: ----------- Fixed typo in method names of com.gargoylesoftware.htmlunit.WebConsole.Formatter. Modified Paths: -------------- trunk/htmlunit/src/changes/changes.xml trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebConsole.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Console.java Modified: trunk/htmlunit/src/changes/changes.xml =================================================================== --- trunk/htmlunit/src/changes/changes.xml 2012-12-18 13:42:43 UTC (rev 7878) +++ trunk/htmlunit/src/changes/changes.xml 2012-12-18 13:55:30 UTC (rev 7879) @@ -8,6 +8,9 @@ <body> <release version="2.12" date="???" description="Bugfixes"> + <action type="fix" dev="mguillem"> + Fixed typo in method names of com.gargoylesoftware.htmlunit.WebConsole.Formatter. + </action> <action type="add" dev="asashour"> JavaScript: add document.charset, .characterSet, .defaultCharset and .inputEncoding. </action> Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebConsole.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebConsole.java 2012-12-18 13:42:43 UTC (rev 7878) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebConsole.java 2012-12-18 13:55:30 UTC (rev 7879) @@ -95,7 +95,7 @@ * @param o object to be printed using string format specifiers * @return a string representation of the passed object */ - String paramterAsString(Object o); + String parameterAsString(Object o); /** * Function that is used to print an object as integer using @@ -103,7 +103,7 @@ * @param o object to be printed using integer format specifiers * @return a string representation of the passed object */ - String paramterAsInteger(Object o); + String parameterAsInteger(Object o); /** * Function that is used to print an object as float using @@ -111,7 +111,7 @@ * @param o object to be printed using float format specifiers * @return a string representation of the passed object */ - String paramterAsFloat(Object o); + String parameterAsFloat(Object o); } private Formatter formatter_ = new DefaultFormatter(); @@ -220,14 +220,14 @@ switch (ch) { case 'o': case 's': - replacement = formatter.paramterAsString(pop(args)); + replacement = formatter.parameterAsString(pop(args)); break; case 'd': case 'i': - replacement = formatter.paramterAsInteger(pop(args)); + replacement = formatter.parameterAsInteger(pop(args)); break; case 'f': - replacement = formatter.paramterAsFloat(pop(args)); + replacement = formatter.parameterAsFloat(pop(args)); break; default: replacement = group; @@ -263,11 +263,11 @@ private static class DefaultFormatter implements Formatter { public String printObject(final Object o) { - return paramterAsString(o); + return parameterAsString(o); } @Override - public String paramterAsString(final Object o) { + public String parameterAsString(final Object o) { if (o != null) { return o.toString(); } @@ -275,7 +275,7 @@ } @Override - public String paramterAsInteger(final Object o) { + public String parameterAsInteger(final Object o) { if (o instanceof Number) { return Integer.toString(((Number) o).intValue()); } @@ -291,7 +291,7 @@ } @Override - public String paramterAsFloat(final Object o) { + public String parameterAsFloat(final Object o) { if (o instanceof Number) { return Float.toString(((Number) o).floatValue()); } Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Console.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Console.java 2012-12-18 13:42:43 UTC (rev 7878) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Console.java 2012-12-18 13:55:30 UTC (rev 7879) @@ -458,7 +458,7 @@ } @Override - public String paramterAsString(final Object o) { + public String parameterAsString(final Object o) { if (o instanceof NativeArray) { final StringBuffer sb = new StringBuffer(); for (int i = 0; i < ((NativeArray) o).size(); i++) { @@ -473,7 +473,7 @@ } @Override - public String paramterAsInteger(final Object o) { + public String parameterAsInteger(final Object o) { if (o instanceof Number) { return Integer.toString(((Number) o).intValue()); } @@ -489,7 +489,7 @@ } @Override - public String paramterAsFloat(final Object o) { + public String parameterAsFloat(final Object o) { if (o instanceof Number) { return Float.toString(((Number) o).floatValue()); } |