This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push:
new 0737bc3 fix bug where ByteSize from string would override units
0737bc3 is described below
commit 0737bc3bfbdcbc90081b583b463dfcc3b0d354e0
Author: Alex Heneveld <[email protected]>
AuthorDate: Mon Mar 1 13:47:56 2021 +0000
fix bug where ByteSize from string would override units
---
core/src/main/java/org/apache/brooklyn/util/core/units/ByteSize.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/src/main/java/org/apache/brooklyn/util/core/units/ByteSize.java
b/core/src/main/java/org/apache/brooklyn/util/core/units/ByteSize.java
index 5280eec..1b22f7c 100644
--- a/core/src/main/java/org/apache/brooklyn/util/core/units/ByteSize.java
+++ b/core/src/main/java/org/apache/brooklyn/util/core/units/ByteSize.java
@@ -26,7 +26,7 @@ public class ByteSize extends AbstractUnit implements
Comparable<ByteSize> {
/** json constructor */
private ByteSize() {}
- public ByteSize(String s) { super(ByteSizeStrings.parse(s, null,
ByteSizeStrings.metric())); }
+ public ByteSize(String s) { super(ByteSizeStrings.parse(s)); }
public static ByteSize fromString(String s) { return new ByteSize(s); }