summaryrefslogtreecommitdiff
path: root/ojluni/annotations/sdk/nullability/java/nio/ByteBuffer.annotated.java
Commit message (Collapse)AuthorAgeFilesLines
* Add *Buffer covariant method overloads.Tobias Thierer2019-01-241-0/+14
| | | | | | | | | | | | | | | The java.nio.Buffer methods {position,limit,mark,reset,clear,flip,rewind} return "this". In OpenJDK 8, those methods were final and their return type was Buffer. In OpenJDK 9, the methods changed to nonfinal and the subclasses {Byte,Char,Double,Float,Int,Long,Short}Buffer gained overrides whose compile-time return type was that of the subclass. This CL makes the same change to java.nio.Buffer and adds synthetic covariant overloads to the subtypes. Fixes: 71597787 Test: atest CtsLibcoreApiEvolutionTestCases Change-Id: Ib6f63b6e3dce0212ff7dd60341145ede17a1b454
* Add nullability annotations to some java.io and nio classes.Pete Gillin2018-10-241-0/+148
Bug: 64930165 Test: treehugger Change-Id: Id0c7ed1c514d93c71e0474e2bcf21a34954215c8