Repository: spark Updated Branches: refs/heads/master 9f13f0fc1 -> e06493cb7
[MINOR][COMMON] Fix copy-paste oversight in variable naming ## What changes were proposed in this pull request? JavaUtils.java has methods to convert time and byte strings for internal use, this change renames a variable used in byteStringAs(), from timeError to byteError. Author: Bjorn Jonsson <bjorn...@gmail.com> Closes #11695 from bjornjon/master. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e06493cb Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e06493cb Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e06493cb Branch: refs/heads/master Commit: e06493cb7b790623a9106241a8d496ecea703328 Parents: 9f13f0f Author: Bjorn Jonsson <bjorn...@gmail.com> Authored: Mon Mar 14 12:27:49 2016 -0700 Committer: Andrew Or <and...@databricks.com> Committed: Mon Mar 14 12:27:49 2016 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/spark/network/util/JavaUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/e06493cb/common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java ---------------------------------------------------------------------- diff --git a/common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java b/common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java index 8d83ae0..fbed2f0 100644 --- a/common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java +++ b/common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java @@ -236,11 +236,11 @@ public class JavaUtils { } } catch (NumberFormatException e) { - String timeError = "Size must be specified as bytes (b), " + + String byteError = "Size must be specified as bytes (b), " + "kibibytes (k), mebibytes (m), gibibytes (g), tebibytes (t), or pebibytes(p). " + "E.g. 50b, 100k, or 250m."; - throw new NumberFormatException(timeError + "\n" + e.getMessage()); + throw new NumberFormatException(byteError + "\n" + e.getMessage()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org