Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8353618

Remove deprecated TransitionEvent constructor

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • jfx25
    • javafx
    • None
    • source, binary, behavioral
    • minimal
    • This constructor was not used in JFX, and it is very unlikely that applications would create `TransitionEvent` instances.
    • Java API
    • JDK

      Summary

      Remove the deprecated TransitionEvent(EventType, StyleableProperty, Duration) constructor.

      Problem

      The constructor was deprecated for removal in JFX 24 and scheduled for removal in 25.

      Solution

      Remove the constructor.

      Specification

      --- a/modules/javafx.graphics/src/main/java/javafx/css/TransitionEvent.java
      +++ b/modules/javafx.graphics/src/main/java/javafx/css/TransitionEvent.java
      @@ -95,22 +95,6 @@
            */
           private final Duration elapsedTime;
      
      -    /**
      -     * Creates a new instance of the {@code TransitionEvent} class.
      -     *
      -     * @param eventType the event type
      -     * @param property the {@code StyleableProperty} that is targeted by the transition
      -     * @param elapsedTime the time that has elapsed since the transition has entered its active period
      -     * @throws NullPointerException if {@code eventType}, {@code property} or {@code elapsedTime} is {@code null}
      -     * @deprecated use {@link #TransitionEvent(EventType, StyleableProperty, String, Duration)} instead
      -     */
      -    @Deprecated(since = "24", forRemoval = true)
      -    public TransitionEvent(EventType<? extends Event> eventType,
      -                           StyleableProperty<?> property,
      -                           Duration elapsedTime) {
      -        this(eventType, property, property.getCssMetaData().getProperty(), elapsedTime);
      -    }
      -
           /**
            * Creates a new instance of the {@code TransitionEvent} class.
            *

            mstrauss Michael Strauß
            mstrauss Michael Strauß
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: