diff --git a/spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistory.java b/spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistory.java index caf8ed3c46e..fb54d20ce03 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistory.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 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. @@ -49,12 +49,14 @@ * @author Mark Fisher * @author Artem Bilan * @author Gary Russell + * @author Chris Bono * * @since 2.0 */ -@SuppressWarnings("serial") public final class MessageHistory implements List, Serializable { + private static final long serialVersionUID = -2340400235574314134L; + private static final Log LOGGER = LogFactory.getLog(MessageHistory.class); private static final UnsupportedOperationException UNSUPPORTED_OPERATION_EXCEPTION_IMMUTABLE = @@ -303,12 +305,13 @@ private static Properties extractMetadata(NamedComponent component) { return entry; } - /** * Inner class for each Entry in the history. */ public static class Entry extends Properties { + private static final long serialVersionUID = -8225834391885601079L; + public String getName() { return this.getProperty(NAME_PROPERTY); }