Skip to content

Commit 31a055e

Browse files
committed
8268736: Use apiNote in AutoCloseable.close javadoc
Reviewed-by: bpb, naoto
1 parent 76cad4b commit 31a055e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/java.base/share/classes/java/lang/AutoCloseable.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,8 @@ public interface AutoCloseable {
5454
* This method is invoked automatically on objects managed by the
5555
* {@code try}-with-resources statement.
5656
*
57-
* <p>While this interface method is declared to throw {@code
57+
* @apiNote
58+
* While this interface method is declared to throw {@code
5859
* Exception}, implementers are <em>strongly</em> encouraged to
5960
* declare concrete implementations of the {@code close} method to
6061
* throw more specific exceptions, or to throw no exception at all

0 commit comments

Comments
 (0)