Simplify "instanceof" usage.

Closes #146.
This commit is contained in:
B Sharma 2020-06-06 21:03:20 +05:30 committed by Gilles Sadowski
parent bfa5b60eff
commit 0d937abf8c
4 changed files with 4 additions and 4 deletions

View File

@ -409,7 +409,7 @@ public class AggregateSummaryStatistics implements StatisticalSummary,
if (object == this) {
return true;
}
if (object instanceof AggregatingSummaryStatistics == false) {
if (!(object instanceof AggregatingSummaryStatistics)) {
return false;
}
AggregatingSummaryStatistics stat = (AggregatingSummaryStatistics)object;

View File

@ -380,7 +380,7 @@ public class MultivariateSummaryStatistics
if (object == this ) {
return true;
}
if (object instanceof MultivariateSummaryStatistics == false) {
if (!(object instanceof MultivariateSummaryStatistics)) {
return false;
}
MultivariateSummaryStatistics stat = (MultivariateSummaryStatistics) object;

View File

@ -140,7 +140,7 @@ public class StatisticalSummaryValues implements Serializable,
if (object == this ) {
return true;
}
if (object instanceof StatisticalSummaryValues == false) {
if (!(object instanceof StatisticalSummaryValues)) {
return false;
}
StatisticalSummaryValues stat = (StatisticalSummaryValues) object;

View File

@ -392,7 +392,7 @@ public class SummaryStatistics implements StatisticalSummary, Serializable {
if (object == this) {
return true;
}
if (object instanceof SummaryStatistics == false) {
if (!(object instanceof SummaryStatistics)) {
return false;
}
SummaryStatistics stat = (SummaryStatistics)object;