“38b9c760b078c291d6267551778168f4a3153491”上不存在“...kernel/kernel-small-debug-shell-net-ifconfig.md”
提交 9105f3d8 编写于 作者: D darcy

8022658: Revisit FunctionalInterface on some core libs types

Reviewed-by: briangoetz, mduigou, mr
上级 8e2a14fd
...@@ -34,7 +34,6 @@ import java.io.IOException; ...@@ -34,7 +34,6 @@ import java.io.IOException;
* *
* @since 1.5 * @since 1.5
*/ */
@FunctionalInterface
public interface Closeable extends AutoCloseable { public interface Closeable extends AutoCloseable {
/** /**
......
...@@ -34,7 +34,6 @@ import java.io.IOException; ...@@ -34,7 +34,6 @@ import java.io.IOException;
* *
* @since 1.5 * @since 1.5
*/ */
@FunctionalInterface
public interface Flushable { public interface Flushable {
/** /**
......
...@@ -48,7 +48,6 @@ package java.lang; ...@@ -48,7 +48,6 @@ package java.lang;
* @author Josh Bloch * @author Josh Bloch
* @since 1.7 * @since 1.7
*/ */
@FunctionalInterface
public interface AutoCloseable { public interface AutoCloseable {
/** /**
* Closes this resource, relinquishing any underlying resources. * Closes this resource, relinquishing any underlying resources.
......
...@@ -93,7 +93,6 @@ import java.util.*; ...@@ -93,7 +93,6 @@ import java.util.*;
* @see java.util.Comparator * @see java.util.Comparator
* @since 1.2 * @since 1.2
*/ */
@FunctionalInterface
public interface Comparable<T> { public interface Comparable<T> {
/** /**
* Compares this object with the specified object for order. Returns a * Compares this object with the specified object for order. Returns a
......
...@@ -42,7 +42,6 @@ import java.util.function.Consumer; ...@@ -42,7 +42,6 @@ import java.util.function.Consumer;
* @since 1.5 * @since 1.5
* @jls 14.14.2 The enhanced for statement * @jls 14.14.2 The enhanced for statement
*/ */
@FunctionalInterface
public interface Iterable<T> { public interface Iterable<T> {
/** /**
* Returns an iterator over elements of type {@code T}. * Returns an iterator over elements of type {@code T}.
......
...@@ -34,7 +34,6 @@ import java.io.IOException; ...@@ -34,7 +34,6 @@ import java.io.IOException;
* *
* @since 1.5 * @since 1.5
*/ */
@FunctionalInterface
public interface Readable { public interface Readable {
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册