1/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.tools.layoutlib.java;
18
19/**
20 * Defines the same interface as the java.lang.AutoCloseable which was added in
21 * Java 7. This hack makes it possible to run the Android code which uses Java 7
22 * features (API 18 and beyond) to run on Java 6.
23 * <p/>
24 * Extracted from API level 18, file:
25 * platform/libcore/luni/src/main/java/java/lang/AutoCloseable.java
26 */
27public interface AutoCloseable {
28    /**
29     * Closes the object and release any system resources it holds.
30     */
31    void close() throws Exception;
32}
33