mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8164993: (ch) ReadableByteChannel should note a possible IllegalArgumentException
Reviewed-by: alanb, darcy
This commit is contained in:
parent
8a5e087ed8
commit
adf0d4eae8
4 changed files with 16 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -719,7 +719,7 @@ public abstract class FileChannel
|
|||
* size
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* If the position is negative
|
||||
* If the position is negative or the buffer is read-only
|
||||
*
|
||||
* @throws NonReadableChannelException
|
||||
* If this channel was not opened for reading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue