Skip to content

Commit

Permalink
Minor : tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Feb 28, 2024
1 parent dc57f97 commit 0844f65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/main/java/io/vertx/core/impl/ContextInternal.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
package io.vertx.core.impl;

import io.netty.channel.EventLoop;
import io.vertx.codegen.annotations.GenIgnore;
import io.vertx.core.*;
import io.vertx.core.Future;
import io.vertx.core.impl.future.FailedFuture;
Expand Down Expand Up @@ -319,7 +318,6 @@ default ConcurrentMap<Object, Object> localContextData() {
* @param <T> the type of the data
* @return the local data
*/
@GenIgnore
default <T> T getLocal(ContextLocal<T> key) {
return getLocal(key, AccessMode.CONCURRENT);
}
Expand All @@ -331,7 +329,6 @@ default <T> T getLocal(ContextLocal<T> key) {
* @param <T> the type of the data
* @return the local data
*/
@GenIgnore
<T> T getLocal(ContextLocal<T> key, AccessMode accessMode);

/**
Expand All @@ -345,7 +342,6 @@ default <T> T getLocal(ContextLocal<T> key) {
* @param <T> the type of the data
* @return the local data
*/
@GenIgnore
<T> T getLocal(ContextLocal<T> key, AccessMode accessMode, Supplier<? extends T> initialValueSupplier);

/**
Expand All @@ -356,15 +352,13 @@ default <T> T getLocal(ContextLocal<T> key) {
* @param key the key of the data
* @param value the data
*/
@GenIgnore
<T> void putLocal(ContextLocal<T> key, AccessMode accessMode, T value);

/**
* Remove some local data from the context.
*
* @param key the key to remove
*/
@GenIgnore
default <T> void removeLocal(ContextLocal<T> key, AccessMode accessMode) {
putLocal(key, accessMode, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/
package io.vertx.core.spi.context.storage;

import io.vertx.codegen.annotations.GenIgnore;
import io.vertx.core.Context;
import io.vertx.core.impl.ContextInternal;
import io.vertx.core.impl.ContextLocalImpl;
Expand Down Expand Up @@ -44,7 +43,6 @@ static <T> ContextLocal<T> registerLocal(Class<T> type) {
*
* @return the local data
*/
@GenIgnore
default T get(Context context) {
return get(context, AccessMode.CONCURRENT);
}
Expand All @@ -58,7 +56,6 @@ default T get(Context context) {
* @param initialValueSupplier the supplier of the initial value optionally called
* @return the local data
*/
@GenIgnore
default T get(Context context, Supplier<? extends T> initialValueSupplier) {
return get(context, AccessMode.CONCURRENT, initialValueSupplier);
}
Expand All @@ -70,7 +67,6 @@ default T get(Context context, Supplier<? extends T> initialValueSupplier) {
*
* @param value the data
*/
@GenIgnore
default void put(Context context, T value) {
put(context, AccessMode.CONCURRENT, value);
}
Expand All @@ -79,7 +75,6 @@ default void put(Context context, T value) {
* Remove some local data from the context.
*
*/
@GenIgnore
default void remove(Context context) {
put(context, AccessMode.CONCURRENT, null);
}
Expand All @@ -89,7 +84,6 @@ default void remove(Context context) {
*
* @return the local data
*/
@GenIgnore
default T get(Context context, AccessMode accessMode) {
return ((ContextInternal)context).getLocal(this, accessMode);
}
Expand All @@ -103,7 +97,6 @@ default T get(Context context, AccessMode accessMode) {
* @param initialValueSupplier the supplier of the initial value optionally called
* @return the local data
*/
@GenIgnore
default T get(Context context, AccessMode accessMode, Supplier<? extends T> initialValueSupplier) {
return ((ContextInternal)context).getLocal(this, accessMode, initialValueSupplier);
}
Expand All @@ -115,7 +108,6 @@ default T get(Context context, AccessMode accessMode, Supplier<? extends T> init
*
* @param value the data
*/
@GenIgnore
default void put(Context context, AccessMode accessMode, T value) {
((ContextInternal)context).putLocal(this, accessMode, value);
}
Expand All @@ -124,7 +116,6 @@ default void put(Context context, AccessMode accessMode, T value) {
* Remove some local data from the context.
*
*/
@GenIgnore
default void remove(Context context, AccessMode accessMode) {
put(context, accessMode, null);
}
Expand Down

0 comments on commit 0844f65

Please sign in to comment.