Skip to content

Commit e1e2a34

Browse files
committed
io.vertx.ext.auth.authentication.Credentials should be a data object interface.
Motivation: io.vertx.ext.auth.authentication.Credentials is a code generated object, however its implementations are data objects. Generated code declaring Credentials as argument or return type does not accept Credentials implementation since the type is translated to the shim equivalent. Changes: Make Credentials a data object.
1 parent 3b308b8 commit e1e2a34

File tree

1 file changed

+2
-2
lines changed
  • vertx-auth-common/src/main/java/io/vertx/ext/auth/authentication

1 file changed

+2
-2
lines changed

vertx-auth-common/src/main/java/io/vertx/ext/auth/authentication/Credentials.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package io.vertx.ext.auth.authentication;
1717

18-
import io.vertx.codegen.annotations.VertxGen;
18+
import io.vertx.codegen.annotations.DataObject;
1919
import io.vertx.core.http.HttpMethod;
2020
import io.vertx.core.json.JsonObject;
2121

@@ -25,7 +25,7 @@
2525
*
2626
* @author Paulo Lopes
2727
*/
28-
@VertxGen(concrete = false)
28+
@DataObject
2929
public interface Credentials {
3030
/**
3131
* Implementors should override this method to perform validation. An argument is allowed to

0 commit comments

Comments
 (0)