mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-04 10:23:06 +02:00
Change code style about calorie calculation.
This commit is contained in:
@@ -575,12 +575,13 @@ public class TripStatistics implements Parcelable {
|
||||
/**
|
||||
* Adds calorie value.
|
||||
*
|
||||
* @param calorieAdded add the value to the total calorie
|
||||
* @param calorie add the value to the total calorie
|
||||
*/
|
||||
public void addCalorie(double calorieAdded) {
|
||||
this.calorie += calorieAdded;
|
||||
@SuppressWarnings("hiding")
|
||||
public void addCalorie(double calorie) {
|
||||
this.calorie += calorie;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets calorie value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user