Closed greenonline closed 2 years ago
You're right, it should be:
if(axisTypeCombobox.getSelectedItem().toString().equals(type))
I'll fix this and include it in the next release. Thanks.
The fix is in the latest release: http://www.farrellf.com/projects/software/2021-07-24_Telemetry_Viewer_v0.8/
Eclipse is showing me that there is a "problem" (rather than an error) here: https://github.com/farrellf/TelemetryViewer/blob/master/Telemetry%20Viewer/src/WidgetHistogramYaxisType.java#L243
The line is
I think that it should be
but I may be wrong. .? Either way, as it currently stands, the types don't match in the
equals()
.There's a reason why it compiles without error, but the "problem" still shows up, which seems to be explained in this answer to the question Elegant way to overcome Unlikely argument type for equals(): Stream seems to be unrelated to String .