Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b17db77 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Correct drawLines annotations"

parents bb0bed1f 92c11864
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1079,11 +1079,12 @@ public class Canvas {
     *                 (count >> 2).
     * @param paint    The paint used to draw the points
     */
    public void drawLines(@Size(min=4,multiple=2) float[] pts, int offset, int count, Paint paint) {
    public void drawLines(@Size(multiple=4) @NonNull float[] pts, int offset, int count,
            @NonNull Paint paint) {
        native_drawLines(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance());
    }

    public void drawLines(@Size(min=4,multiple=2) @NonNull float[] pts, @NonNull Paint paint) {
    public void drawLines(@Size(multiple=4) @NonNull float[] pts, @NonNull Paint paint) {
        drawLines(pts, 0, pts.length, paint);
    }