/*
 * Westford Wayland Compositor.
 * Copyright (C) 2016  Erik De Rijcke
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.westford.compositor.core;

import com.google.auto.value.AutoValue;
import org.freedesktop.wayland.server.WlBufferResource;

import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;

@AutoValue
public abstract class UnsupportedBuffer implements Buffer {

    public static UnsupportedBuffer create(@Nonnull final WlBufferResource wlBufferResource) {
        return new AutoValue_UnsupportedBuffer(wlBufferResource);
    }

    @Nonnegative
    @Override
    public int getWidth() {
        return 0;
    }

    @Nonnegative
    @Override
    public int getHeight() {
        return 0;
    }

    @Nonnull
    @Override
    public abstract WlBufferResource getWlBufferResource();

    @Override
    public void accept(@Nonnegative final BufferVisitor bufferVisitor) {
        bufferVisitor.visit(this);
    }
}

@@ -1486,23 +1486,19 @@
 pt(@Nonn
-egative
+ull
  final B

replace incorrect @Nonnegative annotation with @Nonnull