Skip to content

Commit e06493c

Browse files
bjornjonAndrew Or
authored andcommitted
[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 <[email protected]> Closes apache#11695 from bjornjon/master.
1 parent 9f13f0f commit e06493c

File tree

1 file changed

+2
-2
lines changed
  • common/network-common/src/main/java/org/apache/spark/network/util

1 file changed

+2
-2
lines changed

common/network-common/src/main/java/org/apache/spark/network/util/JavaUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ public static long byteStringAs(String str, ByteUnit unit) {
236236
}
237237

238238
} catch (NumberFormatException e) {
239-
String timeError = "Size must be specified as bytes (b), " +
239+
String byteError = "Size must be specified as bytes (b), " +
240240
"kibibytes (k), mebibytes (m), gibibytes (g), tebibytes (t), or pebibytes(p). " +
241241
"E.g. 50b, 100k, or 250m.";
242242

243-
throw new NumberFormatException(timeError + "\n" + e.getMessage());
243+
throw new NumberFormatException(byteError + "\n" + e.getMessage());
244244
}
245245
}
246246

0 commit comments

Comments
 (0)