Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
parubok committed Jul 11, 2020
1 parent 6c3b834 commit bf5a171
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions src/main/java/swingfx/beans/binding/Bindings.java
Original file line number Diff line number Diff line change
Expand Up @@ -6279,16 +6279,16 @@ public void dispose() {

@Override
protected boolean computeValue() {
final Boolean value;
try {
final Boolean value = op.get(index);
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value;
}
value = op.get(index);
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.booleanValue();
}

@Override
Expand Down Expand Up @@ -6342,16 +6342,16 @@ public void dispose() {

@Override
protected boolean computeValue() {
final Boolean value;
try {
final Boolean value = op.get(index.intValue());
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value;
}
value = op.get(index.intValue());
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.booleanValue();
}

@Override
Expand Down Expand Up @@ -6394,16 +6394,16 @@ public void dispose() {

@Override
protected double computeValue() {
final Number value;
try {
final Number value = op.get(index);
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.doubleValue();
}
value = op.get(index);
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.doubleValue();
}

@Override
Expand Down Expand Up @@ -6457,16 +6457,16 @@ public void dispose() {

@Override
protected double computeValue() {
final Number value;
try {
final Number value = op.get(index.intValue());
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.doubleValue();
}
value = op.get(index.intValue());
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.doubleValue();
}

@Override
Expand Down Expand Up @@ -6509,16 +6509,16 @@ public void dispose() {

@Override
protected float computeValue() {
final Number value;
try {
final Number value = op.get(index);
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.floatValue();
}
value = op.get(index);
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.floatValue();
}

@Override
Expand Down Expand Up @@ -6572,16 +6572,16 @@ public void dispose() {

@Override
protected float computeValue() {
final Number value;
try {
final Number value = op.get(index.intValue());
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.floatValue();
}
value = op.get(index.intValue());
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.floatValue();
}

@Override
Expand Down Expand Up @@ -6624,16 +6624,16 @@ public void dispose() {

@Override
protected int computeValue() {
final Number value;
try {
final Number value = op.get(index);
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.intValue();
}
value = op.get(index);
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.intValue();
}

@Override
Expand Down Expand Up @@ -6687,16 +6687,16 @@ public void dispose() {

@Override
protected int computeValue() {
final Number value;
try {
final Number value = op.get(index.intValue());
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.intValue();
}
value = op.get(index.intValue());
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.intValue();
}

@Override
Expand Down Expand Up @@ -6739,16 +6739,16 @@ public void dispose() {

@Override
protected long computeValue() {
final Number value;
try {
final Number value = op.get(index);
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.longValue();
}
value = op.get(index);
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.longValue();
}

@Override
Expand Down Expand Up @@ -6802,16 +6802,16 @@ public void dispose() {

@Override
protected long computeValue() {
final Number value;
try {
final Number value = op.get(index.intValue());
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
} else {
return value.longValue();
}
value = op.get(index.intValue());
} catch (IndexOutOfBoundsException ex) {
throw new BindingEvaluationException(this, ex);
}
if (value == null) {
throw new BindingEvaluationException(this, "List element is null at index " + index);
}
return value.longValue();
}

@Override
Expand Down

0 comments on commit bf5a171

Please sign in to comment.