From 3834416b8ea65789e133bad57372874b2c63e812 Mon Sep 17 00:00:00 2001 From: Nikolay Viguro Date: Wed, 19 Nov 2014 16:44:05 +0300 Subject: [PATCH] =?UTF-8?q?final=20=D0=BF=D0=BE=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/ru/iris/noolite4j/sender/PC11xx.java | 2 +- src/main/java/ru/iris/noolite4j/watchers/CommandType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ru/iris/noolite4j/sender/PC11xx.java b/src/main/java/ru/iris/noolite4j/sender/PC11xx.java index e2d60b5..a05056c 100644 --- a/src/main/java/ru/iris/noolite4j/sender/PC11xx.java +++ b/src/main/java/ru/iris/noolite4j/sender/PC11xx.java @@ -42,7 +42,7 @@ public class PC11xx { private final Context context = new Context(); protected short availableChannels = 8; protected byte sendRepeat = 2; - private ByteBuffer buf = ByteBuffer.allocateDirect(8); + private final ByteBuffer buf = ByteBuffer.allocateDirect(8); /** * Пытается найти и открыть HID-устройство PC11xx diff --git a/src/main/java/ru/iris/noolite4j/watchers/CommandType.java b/src/main/java/ru/iris/noolite4j/watchers/CommandType.java index f32dbc8..31b6f47 100644 --- a/src/main/java/ru/iris/noolite4j/watchers/CommandType.java +++ b/src/main/java/ru/iris/noolite4j/watchers/CommandType.java @@ -36,7 +36,7 @@ public enum CommandType { BATTERY_LOW(20), TEMP_HUMI(21); - private int code; + private final int code; CommandType(int i) { this.code = i;