Browse Source

Polish

pull/1925/head
Stephane Nicoll 7 years ago
parent
commit
30b8d47814
  1. 4
      spring-core/src/main/java/org/springframework/util/unit/DataSize.java

4
spring-core/src/main/java/org/springframework/util/unit/DataSize.java

@ -130,7 +130,7 @@ public final class DataSize implements Comparable<DataSize> { @@ -130,7 +130,7 @@ public final class DataSize implements Comparable<DataSize> {
* Examples:
* <pre>
* "12KB" -- parses as "12 kilobytes"
* "5MB" -- parses as "5 megabytes" (where a minute is 60 seconds)
* "5MB" -- parses as "5 megabytes"
* "20" -- parses as "20 bytes"
* </pre>
* @param text the text to parse
@ -151,7 +151,7 @@ public final class DataSize implements Comparable<DataSize> { @@ -151,7 +151,7 @@ public final class DataSize implements Comparable<DataSize> {
* Examples:
* <pre>
* "12KB" -- parses as "12 kilobytes"
* "5MB" -- parses as "5 megabytes" (where a minute is 60 seconds)
* "5MB" -- parses as "5 megabytes"
* "20" -- parses as "20 kilobytes" (where the {@code defaultUnit} is {@link DataUnit#KILOBYTES})
* </pre>
* @param text the text to parse

Loading…
Cancel
Save