From 839f555d558716cc76c83616bd4264dcb18adafa Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Thu, 16 Apr 2020 13:47:45 -0600 Subject: [PATCH] Fixed spelling error getTotalImpuse() => getTotalImpulse() --- .../net/sf/openrocket/database/motor/ThrustCurveMotorSet.java | 4 ++-- core/src/net/sf/openrocket/motor/ThrustCurveMotor.java | 2 +- .../gui/dialogs/motor/thrustcurve/MotorRowFilter.java | 4 ++-- .../dialogs/motor/thrustcurve/ThrustCurveMotorColumns.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/net/sf/openrocket/database/motor/ThrustCurveMotorSet.java b/core/src/net/sf/openrocket/database/motor/ThrustCurveMotorSet.java index 9abed3a19..fe9428976 100644 --- a/core/src/net/sf/openrocket/database/motor/ThrustCurveMotorSet.java +++ b/core/src/net/sf/openrocket/database/motor/ThrustCurveMotorSet.java @@ -326,7 +326,7 @@ public class ThrustCurveMotorSet implements Comparable { * Return the estimated total impulse for this motor type. * @return estimated total impulse */ - public long getTotalImpuse() { + public long getTotalImpulse() { return totalImpulse; } @@ -423,4 +423,4 @@ public class ThrustCurveMotorSet implements Comparable { } -} \ No newline at end of file +} diff --git a/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java b/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java index e8da17ed6..d951534fa 100644 --- a/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java +++ b/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java @@ -32,7 +32,7 @@ public class ThrustCurveMotor implements Motor, Comparable, Se private String digest = ""; - private Manufacturer manufacturer = Manufacturer.getManufacturer("UNKNOWN"); + private Manufacturer manufacturer = Manufacturer.getManufacturer("Unknown"); private String designation = ""; private String description = ""; private Motor.Type type = Motor.Type.UNKNOWN; diff --git a/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/MotorRowFilter.java b/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/MotorRowFilter.java index 1c96c985b..127a242de 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/MotorRowFilter.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/MotorRowFilter.java @@ -229,13 +229,13 @@ public class MotorRowFilter extends RowFilter implements Ch private boolean filterByImpulseClass(ThrustCurveMotorSet m) { if ( minimumImpulse != null ) { - if( m.getTotalImpuse() <= minimumImpulse.getLow() ) { + if( m.getTotalImpulse() <= minimumImpulse.getLow() ) { return false; } } if ( maximumImpulse != null ) { - if( m.getTotalImpuse() > maximumImpulse.getHigh() ) { + if( m.getTotalImpulse() > maximumImpulse.getHigh() ) { return false; } } diff --git a/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/ThrustCurveMotorColumns.java b/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/ThrustCurveMotorColumns.java index 243a5d564..fcefe9ec3 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/ThrustCurveMotorColumns.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/ThrustCurveMotorColumns.java @@ -46,7 +46,7 @@ enum ThrustCurveMotorColumns { TOTAL_IMPULSE("TCurveMotorCol.TOTAL_IMPULSE") { @Override public Object getValue(ThrustCurveMotorSet m) { - return m.getTotalImpuse(); + return m.getTotalImpulse(); } @Override @@ -158,4 +158,4 @@ enum ThrustCurveMotorColumns { return tip; } -} \ No newline at end of file +}