Ban the use of AnnotationValue#toString()

This commit is contained in:
Georgios Andrianakis 2024-02-06 12:09:17 +02:00
parent 1fd25ca3e6
commit 3fb7064f92
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
@defaultMessage Never use Type#toString() as it's almost always the wrong thing to do. Usually org.jboss.jandex.DotName#toString() is what is needed
org.jboss.jandex.Type#toString()
@defaultMessage Never use AnnotationValue#toString() as it's almost always the wrong thing to do. Usually AnnotationValueDotName#asString() is what is needed
org.jboss.jandex.AnnotationValue#toString()
@defaultMessage Replace this by using InputStream.transferTo(OutputStream)
org.apache.commons.io.IOUtils#copy(java.io.InputStream,java.io.OutputStream)