summaryrefslogtreecommitdiff
path: root/src/com/android/loganalysis/item
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2017-03-02 15:09:38 +0000
committerJulien Desprez <jdesprez@google.com>2017-03-03 09:52:09 +0000
commitb0d7b896a1b92d9eea0c3c660b67960adb5573f2 (patch)
treeca657c1e3feb330e4a6925d4a2aee7f2860578f8 /src/com/android/loganalysis/item
parentfd5106da20d44fb307aa9d6c37c14cc7dbacbe86 (diff)
downloadloganalysis-b0d7b896a1b92d9eea0c3c660b67960adb5573f2.tar.gz
Add error_prone rules on Loganalysis
Fix warnings of current rules. Test: local build and error prone Bug: 35864476 Change-Id: Ib03b309de69e9c92cf815440bb637b955447847e
Diffstat (limited to 'src/com/android/loganalysis/item')
-rw-r--r--src/com/android/loganalysis/item/KernelLogItem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/loganalysis/item/KernelLogItem.java b/src/com/android/loganalysis/item/KernelLogItem.java
index eb86972..dbd7829 100644
--- a/src/com/android/loganalysis/item/KernelLogItem.java
+++ b/src/com/android/loganalysis/item/KernelLogItem.java
@@ -51,8 +51,8 @@ public class KernelLogItem extends GenericItem {
public KernelLogItem() {
super(ATTRIBUTES);
- setAttribute(START_TIME, new Double(0.0));
- setAttribute(STOP_TIME, new Double(0.0));
+ setAttribute(START_TIME, Double.valueOf(0.0));
+ setAttribute(STOP_TIME, Double.valueOf(0.0));
setAttribute(EVENTS, new ItemList());
}