Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private String getPackageNameFromClassName(String className) {
return className.substring(0, index);
}

@Override
protected Class<?> findClass(String moduleName, String name) {
try {
return findClass(name);
Expand All @@ -73,6 +74,7 @@ protected Class<?> findClass(String moduleName, String name) {
}
}

@Override
protected URL findResource(String moduleName, String name) throws IOException {
return findResource(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public final void start(String[] args) {

protected abstract void doStart(String[] args);

@Override
public final void close() {
try {
stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public final class ArrayListFactory<T> implements IntFunction<ArrayList<T>> {
private ArrayListFactory() {
}

@Override
public ArrayList<T> apply(final int value) {
return new ArrayList<>(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public ConfigurationException(Throwable cause) {
configKeys = Collections.emptySet();
}

@Override
public Set<String> getConfigKeys() {
return configKeys;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public final class HashSetFactory<T> implements IntFunction<HashSet<T>> {
private HashSetFactory() {
}

@Override
public HashSet<T> apply(final int value) {
return new HashSet<>(getInitialCapacityFromExpectedSize(value));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class MemorySizeConverter implements Converter<MemorySize>, Serializable
* @param value - value to convert.
* @return {@link MemorySize} - a memory size represented by the given value
*/
@Override
public MemorySize convert(String value) {
value = value.trim();
if (value.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class RegexConverter implements Converter<Pattern>, Serializable {
public RegexConverter() {
}

@Override
public Pattern convert(final String value) {
return value.isEmpty() ? null : Pattern.compile(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public static final class ActualLevel extends InheritableLevel {
this.level = level;
}

@Override
public boolean isInherited() {
return false;
}

@Override
public Level getLevel() {
return level;
}
Expand All @@ -60,6 +62,7 @@ public String toString() {
return level.toString();
}

@Override
public boolean equals(final InheritableLevel other) {
return other instanceof ActualLevel && level.equals(((ActualLevel) other).level);
}
Expand All @@ -75,10 +78,12 @@ public static final class Inherited extends InheritableLevel {
private Inherited() {
}

@Override
public boolean isInherited() {
return true;
}

@Override
public Level getLevel() {
throw new NoSuchElementException();
}
Expand All @@ -87,6 +92,7 @@ public String toString() {
return "inherited";
}

@Override
public boolean equals(final InheritableLevel other) {
return other instanceof Inherited;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public final class LevelConverter implements Converter<Level>, Serializable {

private static final long serialVersionUID = 704275577610445233L;

@Override
public Level convert(final String value) {
if (value == null || value.isEmpty()) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ class Adapter implements Enumeration<T>, Consumer<T> {
boolean valueReady;
T nextElement;

@Override
public void accept(T t) {
this.valueReady = true;
this.nextElement = t;
}

@Override
public boolean hasMoreElements() {
if (!this.valueReady) {
spliterator.tryAdvance(this);
Expand All @@ -48,6 +50,7 @@ public boolean hasMoreElements() {
return this.valueReady;
}

@Override
public T nextElement() {
if (!this.valueReady && !this.hasMoreElements()) {
throw new NoSuchElementException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
public abstract class ForwardingScheduledExecutorService extends ForwardingExecutorService implements ScheduledExecutorService {

@Override
@Override
protected abstract ScheduledExecutorService delegate();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public static Iterator<String> camelHumpsIterator(String str) {
return new Iterator<String>() {
int idx;

@Override
public boolean hasNext() {
return idx < str.length();
}

@Override
public String next() {
if (idx == str.length())
throw new NoSuchElementException();
Expand Down Expand Up @@ -101,10 +103,12 @@ public String next() {

public static Iterator<String> lowerCase(Iterator<String> orig) {
return new Iterator<String>() {
@Override
public boolean hasNext() {
return orig.hasNext();
}

@Override
public String next() {
return orig.next().toLowerCase(Locale.ROOT);
}
Expand Down Expand Up @@ -145,10 +149,12 @@ public static Iterator<String> lowerCaseFirst(Iterator<String> orig) {
return new Iterator<String>() {
boolean first = true;

@Override
public boolean hasNext() {
return orig.hasNext();
}

@Override
public String next() {
final String next = orig.next();
if (first) {
Expand All @@ -165,6 +171,7 @@ public static Iterator<String> withoutSuffix(Iterator<String> orig, String... su
return new Iterator<String>() {
String next = null;

@Override
public boolean hasNext() {
if (next == null) {
if (!orig.hasNext())
Expand All @@ -178,6 +185,7 @@ public boolean hasNext() {
return true;
}

@Override
public String next() {
if (!hasNext())
throw new NoSuchElementException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,22 @@ private static class WithNameConfig {

private static class TestConfigSource implements ConfigSource {

@Override
public Map<String, String> getProperties() {
return TEST_CONFIG_MAP;
}

@Override
public Set<String> getPropertyNames() {
return TEST_CONFIG_MAP.keySet();
}

@Override
public String getValue(final String propertyName) {
return TEST_CONFIG_MAP.get(propertyName);
}

@Override
public String getName() {
return "ConfigInstantiatorTestCase config source";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public class LambdaHttpHandler implements RequestHandler<APIGatewayV2HTTPEvent,
// multiple headers
private static final Set<String> COMMA_HEADERS = Set.of("access-control-request-headers");

@Override
public APIGatewayV2HTTPResponse handleRequest(APIGatewayV2HTTPEvent request, Context context) {
InetSocketAddress clientAddress = null;
if (request.getRequestContext() != null && request.getRequestContext().getHttp() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class LambdaHttpHandler implements RequestHandler<AwsProxyRequest, AwsPro
errorHeaders.putSingle("Content-Type", "application/json");
}

@Override
public AwsProxyResponse handleRequest(AwsProxyRequest request, Context context) {
InetSocketAddress clientAddress = null;
if (request.getRequestContext() != null && request.getRequestContext().getIdentity() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
@Deprecated(forRemoval = true)
public interface HibernateValidatorFactoryCustomizer extends ValidatorFactoryCustomizer {

@Override
void customize(BaseHibernateValidatorConfiguration<?> configuration);
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class OidcClientRequestFilter extends AbstractOidcClientRequestFilter {
@Inject
OidcClientFilterConfig oidcClientFilterConfig;

@Override
protected Optional<String> clientId() {
return oidcClientFilterConfig.clientName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,7 @@ public Binding getBinding() {
return binding;
}

@Override
public io.quarkus.oidc.runtime.OidcTenantConfig.Binding binding() {
return binding;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public BlockingTaskRunner(BlockingSecurityExecutor blockingExecutor) {
this.blockingExecutor = blockingExecutor;
}

@Override
@Override
public Uni<T> runBlocking(Supplier<T> function) {
return blockingExecutor.executeBlocking(function);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ private Key getKeyWithS256Thumbprint(String thumbprint) {
}
}

@Override
public Uni<Void> refresh() {
final long now = now();
if (now > lastForcedRefreshTime + forcedJwksRefreshIntervalMilliSecs) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ private Uni<JsonWebKeySet> doGetJsonWebKeySet(OidcRequestContextProperties reque
.transform(resp -> getJsonWebKeySet(requestProps, resp));
}

@Override
@Override
public Uni<UserInfo> getUserInfo(final String accessToken) {

final OidcRequestContextProperties requestProps = getRequestProps(null, null);
Expand Down Expand Up @@ -209,6 +211,8 @@ private Uni<UserInfoResponse> doGetUserInfo(OidcRequestContextProperties request
.onItem().transform(resp -> getUserInfo(requestProps, resp));
}

@Override
@Override
public Uni<TokenIntrospection> introspectAccessToken(final String token) {
final MultiMap introspectionParams = new MultiMap(io.vertx.core.MultiMap.caseInsensitiveMultiMap());
introspectionParams.add(OidcConstants.INTROSPECTION_TOKEN, token);
Expand Down Expand Up @@ -247,10 +251,14 @@ Uni<AuthorizationCodeTokens> refreshAuthorizationCodeTokens(String refreshToken)
.transform(resp -> getAuthorizationCodeTokens(requestProps, resp));
}

@Override
@Override
public Uni<Boolean> revokeAccessToken(String accessToken) {
return revokeToken(accessToken, OidcConstants.ACCESS_TOKEN_VALUE);
}

@Override
@Override
public Uni<Boolean> revokeRefreshToken(String refreshToken) {
return revokeToken(refreshToken, OidcConstants.REFRESH_TOKEN_VALUE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@SuppressWarnings("rawtypes")
public class DefaultMicroprofileRestClientExceptionMapper implements ResponseExceptionMapper {

@Override
public Throwable toThrowable(Response response) {
try {
response.bufferEntity();
Expand All @@ -29,6 +30,7 @@ public Throwable toThrowable(Response response) {
return exception;
}

@Override
public int getPriority() {
return Integer.MAX_VALUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public interface ExtendedHeaderFiller extends HeaderFiller {

void addHeaders(MultivaluedMap<String, String> headers, ResteasyReactiveClientRequestContext requestContext);

@Override
@Override
default void addHeaders(MultivaluedMap<String, String> headers) {
throw new IllegalStateException("should not be used");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

public class ReactiveRestClientBuilderFactory implements RestClientBuilderFactory {

@Override
public RestClientBuilder newBuilder(Class<?> proxyType, RestClientsConfig restClientsConfigRoot) {
RegisterRestClient annotation = proxyType.getAnnotation(RegisterRestClient.class);
String configKey = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
import io.vertx.core.buffer.Buffer;

public class VertxBufferMessageBodyWriter implements MessageBodyWriter<Buffer> {
@Override
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
return true;
}

@Override
public void writeTo(Buffer buffer, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType,
MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException {
MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException {
entityStream.write(buffer.getBytes());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public Builder setFilterSourceMethod(MethodInfo filterSourceMethod) {
return this;
}

@Override
public ContainerRequestFilterBuildItem build() {
return new ContainerRequestFilterBuildItem(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public Builder setFilterSourceMethod(MethodInfo filterSourceMethod) {
return this;
}

@Override
public ContainerResponseFilterBuildItem build() {
return new ContainerResponseFilterBuildItem(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public Builder(String className) {
super(className);
}

@Override
@Override
public ReaderInterceptorBuildItem build() {
return new ReaderInterceptorBuildItem(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public Builder(String className) {
super(className);
}

@Override
@Override
public WriterInterceptorBuildItem build() {
return new WriterInterceptorBuildItem(this);
}
Expand Down
Loading