-
Notifications
You must be signed in to change notification settings - Fork 103
Minor comment and string fixes. #721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,11 +198,11 @@ public class EditorUtil | |
| /** String to represent the micron symbol. */ | ||
| public static final String MICRONS = "("+UnitsObject.MICRONS+")"; | ||
|
|
||
| /** String to represent the celcius symbol. */ | ||
| public static final String CELCIUS = "(\u2103)"; | ||
| /** String to represent the celsius symbol. */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the names of constants should really NOT be happening here.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There don't seem to be any references elsewhere, nor any obvious reason why there would be. Do you want me to leave the misspelling in, then? (Or have both, one deprecated?) |
||
| public static final String CELSIUS = "(℃)"; | ||
|
|
||
| /** String to represent the percent symbol. */ | ||
| public static final String PERCENT = "(\u0025)"; | ||
| public static final String PERCENT = "(%)"; | ||
|
|
||
| /** String to represent the millibars symbol. */ | ||
| public static final String MILLIBARS = "(mb)"; | ||
|
|
@@ -307,13 +307,13 @@ public class EditorUtil | |
| public static final String REFRACTIVE_INDEX = "Refractive index"; | ||
|
|
||
| /** Identifies the Environment <code>temperature</code> field. */ | ||
| public static final String TEMPERATURE = "Temperature "+CELCIUS; | ||
| public static final String TEMPERATURE = "Temperature "+CELSIUS; | ||
|
|
||
| /** Identifies the Environment <code>Air pressure</code> field. */ | ||
| public static final String AIR_PRESSURE = "Air Pressure "+MILLIBARS; | ||
|
|
||
| /** Identifies the Environment <code>Humidity</code> field. */ | ||
| public static final String HUMIDITY = "Humidy "+PERCENT; | ||
| public static final String HUMIDITY = "Humidity "+PERCENT; | ||
|
|
||
| /** Identifies the Environment <code>CO2 Percent</code> field. */ | ||
| public static final String CO2_PERCENT = "CO2 Percent "+PERCENT; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't really fall under the description of this commit/PR. Probably fine, but do shoot for the principle of least surprise where possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I forgot I'd noticed this; adjusted description accordingly.