File tree Expand file tree Collapse file tree
spring-core/src/main/java/org/springframework/util/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2018 the original author or authors.
2+ * Copyright 2002-2019 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -41,22 +41,22 @@ public final class DataSize implements Comparable<DataSize> {
4141 /**
4242 * Bytes per Kilobyte.
4343 */
44- private static long BYTES_PER_KB = 1024 ;
44+ private static final long BYTES_PER_KB = 1024 ;
4545
4646 /**
4747 * Bytes per Megabyte.
4848 */
49- private static long BYTES_PER_MB = BYTES_PER_KB * 1024 ;
49+ private static final long BYTES_PER_MB = BYTES_PER_KB * 1024 ;
5050
5151 /**
5252 * Bytes per Gigabyte.
5353 */
54- private static long BYTES_PER_GB = BYTES_PER_MB * 1024 ;
54+ private static final long BYTES_PER_GB = BYTES_PER_MB * 1024 ;
5555
5656 /**
5757 * Bytes per Terabyte.
5858 */
59- private static long BYTES_PER_TB = BYTES_PER_GB * 1024 ;
59+ private static final long BYTES_PER_TB = BYTES_PER_GB * 1024 ;
6060
6161
6262 private final long bytes ;
You can’t perform that action at this time.
0 commit comments