From 3fcedf77286a078ebd7ac8c082365bd80703dfdc Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Thu, 27 Jan 2011 14:47:02 -0800 Subject: [PATCH] API: Make close() throw an IOException. IOException on close() can be useful to indicate that in-progress transactions were canceled. I also audited all of our tech classes to make sure every function that needs to throw IOException does so. Change-Id: Iaa9c43d79d59ff85772d5c3e4b4d57a6fa8df4cf --- api/current.xml | 6 ++++++ core/java/android/nfc/tech/BasicTagTechnology.java | 2 +- core/java/android/nfc/tech/IsoDep.java | 2 +- core/java/android/nfc/tech/TagTechnology.java | 5 +++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/api/current.xml b/api/current.xml index f0b0233c2d891..ad54650d5cc2a 100644 --- a/api/current.xml +++ b/api/current.xml @@ -101107,6 +101107,8 @@ deprecated="not deprecated" visibility="public" > + + + + + + Support for this technology type is mandatory. @@ -135,5 +136,5 @@ public interface TagTechnology { * @see #connect() * @see #reconnect() */ - public void close(); + public void close() throws IOException; }