From c108364e5a477438cb22760d81b29eacdf321185 Mon Sep 17 00:00:00 2001 From: Petre Eftime Date: Mon, 18 Apr 2016 17:50:11 +0300 Subject: java: Remove duplicated code in constructor and finalize Signed-off-by: Petre Eftime --- java/BluetoothAdapter.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'java/BluetoothAdapter.java') diff --git a/java/BluetoothAdapter.java b/java/BluetoothAdapter.java index 6aa73316..5b96c5bd 100644 --- a/java/BluetoothAdapter.java +++ b/java/BluetoothAdapter.java @@ -33,8 +33,6 @@ import java.time.Duration; */ public class BluetoothAdapter extends BluetoothObject { - private long nativeInstance; - public native BluetoothType getBluetoothType(); public native BluetoothAdapter clone(); @@ -182,11 +180,5 @@ public class BluetoothAdapter extends BluetoothObject private BluetoothAdapter(long instance) { super(instance); - nativeInstance = instance; - } - - protected void finalize() - { - delete(); } } -- cgit v1.2.3