Change code style about calorie calculation.

This commit is contained in:
youtaol
2013-08-21 10:23:36 +08:00
parent d16949c139
commit b9fd09d043
8 changed files with 56 additions and 48 deletions
@@ -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.
*