Merge pull request #691 from teyrana/fix/doc

[fix] made string -> hashcode conversion explicit, to placate IDE warnings
This commit is contained in:
Daniel Williams 2020-07-04 12:43:13 -04:00 committed by GitHub
commit 123732a878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ public class MassCalculation {
addMass( clusterCM );
if(null != this.analysisMap) {
CMAnalysisEntry entry = analysisMap.get(motor.getDesignation());
CMAnalysisEntry entry = analysisMap.get(motor.getDesignation().hashCode());
if (null == entry){
entry = new CMAnalysisEntry(motor);
analysisMap.put(motor.getDesignation().hashCode(), entry);

View File

@ -579,7 +579,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
}
for(final MotorConfiguration config: configuration.getActiveMotors()) {
CMAnalysisEntry cmEntry = cmMap.get(config.getMotor().getDesignation());
CMAnalysisEntry cmEntry = cmMap.get(config.getMotor().getDesignation().hashCode());
if (null == cmEntry) {
continue;
}