From b5ea140dff0ba0b1ce22063e2b4af10a3b2086f3 Mon Sep 17 00:00:00 2001 From: Tingjun Yuan Date: Thu, 6 Apr 2023 06:35:19 +0000 Subject: [PATCH] 8269843: typo in LinkedHashMap::removeEldestEntry spec Reviewed-by: martin --- src/java.base/share/classes/java/util/LinkedHashMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/util/LinkedHashMap.java b/src/java.base/share/classes/java/util/LinkedHashMap.java index 4b517ae8c3d..1984043f0d0 100644 --- a/src/java.base/share/classes/java/util/LinkedHashMap.java +++ b/src/java.base/share/classes/java/util/LinkedHashMap.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -505,7 +505,7 @@ public class LinkedHashMap * * @param eldest The least recently inserted entry in the map, or if * this is an access-ordered map, the least recently accessed - * entry. This is the entry that will be removed it this + * entry. This is the entry that will be removed if this * method returns {@code true}. If the map was empty prior * to the {@code put} or {@code putAll} invocation resulting * in this invocation, this will be the entry that was just