Skip to content

Commit

Permalink
Make DataSize serializable
Browse files Browse the repository at this point in the history
Closes gh-25675
  • Loading branch information
snicoll committed Sep 2, 2020
1 parent cdfdc34 commit c2363a6
Showing 1 changed file with 4 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 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.
Expand All @@ -16,6 +16,7 @@

package org.springframework.util.unit;

import java.io.Serializable;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -48,7 +49,8 @@
* @since 5.1
* @see DataUnit
*/
public final class DataSize implements Comparable<DataSize> {
@SuppressWarnings("serial")
public final class DataSize implements Comparable<DataSize>, Serializable {

/**
* The pattern for parsing.
Expand Down

0 comments on commit c2363a6

Please sign in to comment.