diff --git a/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java b/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java index c0e04878d63..f5d9ad48b5d 100644 --- a/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java +++ b/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2025, 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 @@ -26,11 +26,11 @@ package javax.swing.event; import java.util.EventObject; -import javax.swing.*; +import javax.swing.ListSelectionModel; /** - * An event that characterizes a change in selection. The change is limited to a + * An event that characterizes a change in selection. The change is limited to * a single inclusive interval. The selection of at least one index within the * range will have changed. A decent {@code ListSelectionModel} implementation * will keep the range as small as possible. {@code ListSelectionListeners} will @@ -64,8 +64,8 @@ public class ListSelectionEvent extends EventObject * have changed. * * @param source the {@code Object} on which the event initially occurred - * @param firstIndex the first index in the range, <= lastIndex - * @param lastIndex the last index in the range, >= firstIndex + * @param firstIndex the first index in the range, <= {@code lastIndex} + * @param lastIndex the last index in the range, >= {@code firstIndex} * @param isAdjusting whether or not this is one in a series of * multiple events, where changes are still being made */ @@ -111,7 +111,7 @@ public ListSelectionEvent(Object source, int firstIndex, int lastIndex, * Returns a {@code String} that displays and identifies this * object's properties. * - * @return a String representation of this object + * @return a string representation of this object */ public String toString() { String properties =