Skip to content
Permalink
Browse files
8249647: Many classes in package javafx.beans.binding in module javaf…
…x.base have implicit no-arg constructors

Reviewed-by: nlisker, kcr
  • Loading branch information
aghaisas committed Jul 28, 2020
1 parent 6b00892 commit fc38ce64ecd104625273a1950fe0a2e9b4db1e56
Showing with 116 additions and 2 deletions.
  1. +1 −1 modules/javafx.base/src/main/java/javafx/beans/binding/BooleanBinding.java
  2. +1 −1 modules/javafx.base/src/main/java/javafx/beans/binding/BooleanExpression.java
  3. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/DoubleBinding.java
  4. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/DoubleExpression.java
  5. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/FloatBinding.java
  6. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/FloatExpression.java
  7. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/IntegerBinding.java
  8. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/IntegerExpression.java
  9. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/ListBinding.java
  10. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/ListExpression.java
  11. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/LongBinding.java
  12. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/LongExpression.java
  13. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/MapBinding.java
  14. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/MapExpression.java
  15. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/NumberExpressionBase.java
  16. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/ObjectBinding.java
  17. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/ObjectExpression.java
  18. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/SetBinding.java
  19. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/SetExpression.java
  20. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/StringBinding.java
  21. +6 −0 modules/javafx.base/src/main/java/javafx/beans/binding/StringExpression.java
@@ -60,7 +60,7 @@
Binding<Boolean> {

/**
* Sole constructor
* Creates a default {@code BooleanBinding}.
*/
public BooleanBinding() {
}
@@ -45,7 +45,7 @@
public abstract class BooleanExpression implements ObservableBooleanValue {

/**
* Sole constructor
* Creates a default {@code BooleanExpression}.
*/
public BooleanExpression() {
}
@@ -116,6 +116,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<Number> helper = null;

/**
* Creates a default {@code DoubleBinding}.
*/
public DoubleBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -44,6 +44,12 @@
public abstract class DoubleExpression extends NumberExpressionBase implements
ObservableDoubleValue {

/**
* Creates a default {@code DoubleExpression}.
*/
public DoubleExpression() {
}

@Override
public int intValue() {
return (int) get();
@@ -66,6 +66,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<Number> helper = null;

/**
* Creates a default {@code FloatBinding}.
*/
public FloatBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -43,6 +43,12 @@
public abstract class FloatExpression extends NumberExpressionBase implements
ObservableFloatValue {

/**
* Creates a default {@code FloatExpression}.
*/
public FloatExpression() {
}

@Override
public int intValue() {
return (int) get();
@@ -66,6 +66,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<Number> helper = null;

/**
* Creates a default {@code IntegerBinding}.
*/
public IntegerBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -43,6 +43,12 @@
public abstract class IntegerExpression extends NumberExpressionBase implements
ObservableIntegerValue {

/**
* Creates a default {@code IntegerExpression}.
*/
public IntegerExpression() {
}

@Override
public int intValue() {
return get();
@@ -64,6 +64,12 @@
*/
public abstract class ListBinding<E> extends ListExpression<E> implements Binding<ObservableList<E>> {

/**
* Creates a default {@code ListBinding}.
*/
public ListBinding() {
}

private final ListChangeListener<E> listChangeListener = new ListChangeListener<E>() {
@Override
public void onChanged(Change<? extends E> change) {
@@ -57,6 +57,12 @@

private static final ObservableList EMPTY_LIST = FXCollections.emptyObservableList();

/**
* Creates a default {@code ListExpression}.
*/
public ListExpression() {
}

@Override
public ObservableList<E> getValue() {
return get();
@@ -66,6 +66,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<Number> helper = null;

/**
* Creates a default {@code LongBinding}.
*/
public LongBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -42,6 +42,12 @@
public abstract class LongExpression extends NumberExpressionBase implements
ObservableLongValue {

/**
* Creates a default {@code LongExpression}.
*/
public LongExpression() {
}

@Override
public int intValue() {
return (int) get();
@@ -84,6 +84,12 @@ public void onChanged(Change<? extends K, ? extends V> change) {
private SizeProperty size0;
private EmptyProperty empty0;

/**
* Creates a default {@code MapBinding}.
*/
public MapBinding() {
}

@Override
public ReadOnlyIntegerProperty sizeProperty() {
if (size0 == null) {
@@ -91,6 +91,12 @@ public void removeListener(InvalidationListener listener) {
return get();
}

/**
* Creates a default {@code MapExpression}.
*/
public MapExpression() {
}

/**
* Returns a {@code MapExpression} that wraps a
* {@link javafx.beans.value.ObservableMapValue}. If the
@@ -49,6 +49,12 @@
*/
public abstract class NumberExpressionBase implements NumberExpression {

/**
* Creates a default {@code NumberExpressionBase}.
*/
public NumberExpressionBase() {
}

/**
* Returns an {@code NumberExpressionBase} that wraps a
* {@link javafx.beans.value.ObservableNumberValue}. If the
@@ -66,6 +66,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<T> helper = null;

/**
* Creates a default {@code ObjectBinding}.
*/
public ObjectBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -49,6 +49,12 @@ public T getValue() {
return get();
}

/**
* Creates a default {@code ObjectExpression}.
*/
public ObjectExpression() {
}

/**
* Returns an {@code ObjectExpression} that wraps an
* {@link javafx.beans.value.ObservableObjectValue}. If the
@@ -65,6 +65,12 @@
*/
public abstract class SetBinding<E> extends SetExpression<E> implements Binding<ObservableSet<E>> {

/**
* Creates a default {@code SetBinding}.
*/
public SetBinding() {
}

private final SetChangeListener<E> setChangeListener = new SetChangeListener<E>() {
@Override
public void onChanged(Change<? extends E> change) {
@@ -57,6 +57,12 @@
*/
public abstract class SetExpression<E> implements ObservableSetValue<E> {

/**
* Creates a default {@code SetExpression}.
*/
public SetExpression() {
}

private static final ObservableSet EMPTY_SET = new EmptyObservableSet();

private static class EmptyObservableSet<E> extends AbstractSet<E> implements ObservableSet<E> {
@@ -65,6 +65,12 @@
private BindingHelperObserver observer;
private ExpressionHelper<String> helper = null;

/**
* Creates a default {@code StringBinding}.
*/
public StringBinding() {
}

@Override
public void addListener(InvalidationListener listener) {
helper = ExpressionHelper.addListener(helper, this, listener);
@@ -46,6 +46,12 @@
*/
public abstract class StringExpression implements ObservableStringValue {

/**
* Creates a default {@code StringExpression}.
*/
public StringExpression() {
}

@Override
public String getValue() {
return get();

0 comments on commit fc38ce6

Please sign in to comment.