Fixed various lint issues

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-06-02 17:05:34 -04:00
parent b211c3d829
commit 4f1ff722ae
5 changed files with 47 additions and 50 deletions

View File

@@ -222,9 +222,9 @@ public class CompassSensor{
*/
public void setDeclination(final Location location){
if (location != null) {
final GeomagneticField geomagneticField = new GeomagneticField(new Double(location.getLatitude()).floatValue(),
new Double(location.getLongitude()).floatValue(),
new Double(location.getAltitude()).floatValue(),
final GeomagneticField geomagneticField = new GeomagneticField(Double.valueOf(location.getLatitude()).floatValue(),
Double.valueOf(location.getLongitude()).floatValue(),
Double.valueOf(location.getAltitude()).floatValue(),
System.currentTimeMillis());
mDelination = geomagneticField.getDeclination();
} else {