github / github/codeql

LGTM.com - false positive for extending java.io.OutputStream

Abierto
#4,101 0 comentarios 1 reacción 0 asignados Ver en GitHub
false-positive Java
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

**Description of the false positive**

It tells me that the class extends from the OutputStream and implements write, but does not override write(byte[],int,int).
But a few lines below you can see, that the method is overridden:
`public void write(@NotNull byte[] b, int off, int len) throws IOException {`

I think it just doesn't recognize it because of the `@NotNull` annotation.

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/CloudNetService/CloudNet-v3/rev/pr-59fec0855f9b28083090ba30f93da3f14acfcd27

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.