From e6678f40e86ae7839b179ac6ce6d05e7d78aa950 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 24 Sep 2019 15:32:26 +0200 Subject: [PATCH] Make DataSize constants final --- .../java/org/springframework/util/unit/DataSize.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/unit/DataSize.java b/spring-core/src/main/java/org/springframework/util/unit/DataSize.java index f781871cc45..52b6cb5f81a 100644 --- a/spring-core/src/main/java/org/springframework/util/unit/DataSize.java +++ b/spring-core/src/main/java/org/springframework/util/unit/DataSize.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,22 +41,22 @@ public final class DataSize implements Comparable { /** * Bytes per Kilobyte. */ - private static long BYTES_PER_KB = 1024; + private static final long BYTES_PER_KB = 1024; /** * Bytes per Megabyte. */ - private static long BYTES_PER_MB = BYTES_PER_KB * 1024; + private static final long BYTES_PER_MB = BYTES_PER_KB * 1024; /** * Bytes per Gigabyte. */ - private static long BYTES_PER_GB = BYTES_PER_MB * 1024; + private static final long BYTES_PER_GB = BYTES_PER_MB * 1024; /** * Bytes per Terabyte. */ - private static long BYTES_PER_TB = BYTES_PER_GB * 1024; + private static final long BYTES_PER_TB = BYTES_PER_GB * 1024; private final long bytes;