From 2b38343e4db75aabd3825c766092df75ba44c930 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 5 Jun 2023 16:36:19 +0000 Subject: [PATCH] 8309416: Misstatement in semantics of methods in javax.lang.model.ElementFilter Reviewed-by: prappo --- .../classes/javax/lang/model/util/ElementFilter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java b/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java index 9df7959d8b9..0dfd86caf1a 100644 --- a/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java +++ b/src/java.compiler/share/classes/javax/lang/model/util/ElementFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 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 @@ -45,13 +45,13 @@ import javax.lang.model.element.ModuleElement.UsesDirective; /** * Filters for selecting just the elements of interest from a * collection of elements. The returned sets and lists are new - * collections and do use the argument as a backing store. The + * collections that do not use the argument collection as a backing store. The * methods in this class do not make any attempts to guard against * concurrent modifications of the arguments. The returned sets and - * lists are mutable but unsafe for concurrent access. A returned set - * has the same iteration order as the argument set to a method. + * lists are mutable and unsafe for concurrent access. A returned set + * from a method has the same iteration order as the argument set to the method. * - *

If iterables and sets containing {@code null} are passed as + *

If iterables or sets containing {@code null} are passed as * arguments to methods in this class, a {@code NullPointerException} * will be thrown. *