OSDN Git Service

batteryservice: remove unneeded catch clause and fix build
authorAlexander Martinz <eviscerationls@gmail.com>
Wed, 5 Oct 2016 10:04:25 +0000 (12:04 +0200)
committerAlexander Martinz <eviscerationls@gmail.com>
Wed, 5 Oct 2016 10:07:08 +0000 (12:07 +0200)
The IOException clause already catches the FNF one.
Also in 9f8e600815fc46924063b3a8ed6c98edee10fd30 the import for
FNF got removed, fix the build.

Change-Id: Iaa8bc77b5191ca6abb62e2ea51fd54614ab3c53b
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
services/core/java/com/android/server/BatteryService.java

index 2bcd708..5e712ab 100644 (file)
@@ -369,8 +369,6 @@ public final class BatteryService extends SystemService {
             vbattNow =  vbattNow / 1000;
             br.close();
             fileReader.close();
-        } catch (FileNotFoundException e) {
-            Slog.e(TAG, "Failure in reading battery voltage", e);
         } catch (IOException e) {
             Slog.e(TAG, "Failure in reading battery voltage", e);
         }