[#27] Add more modules to CheckStyle
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
parent
80c7ba58b2
commit
aa3cff5a03
10 changed files with 32 additions and 8 deletions
|
@ -8,4 +8,4 @@ import java.lang.annotation.Target;
|
|||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
public @interface NotNull {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ public interface ApeManagerClient {
|
|||
void removeChain(Chain chain, ChainTarget chainTarget);
|
||||
|
||||
List<Chain> listChains(ChainTarget chainTarget);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,5 +10,4 @@ public class ContextAccessor {
|
|||
public ContextAccessor(ClientEnvironment context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,5 +23,4 @@ public class SessionToolsImpl extends ContextAccessor implements SessionTools {
|
|||
|
||||
return SessionMapper.deserializeSessionToken(sessionToken.getToken());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -9,14 +9,21 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
|
||||
public class Labels {
|
||||
/** Merges two string lists into an array, maintaining order of first list then second list. */
|
||||
private Labels() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Merges two string lists into an array, maintaining order of first list then second list.
|
||||
*/
|
||||
static String[] asArray(List<String> firstList, List<String> secondList) {
|
||||
List<String> list = new ArrayList<>(firstList);
|
||||
list.addAll(secondList);
|
||||
return list.toArray(new String[0]);
|
||||
}
|
||||
|
||||
/** Converts a list of strings to a list of grpc metadata keys. */
|
||||
/**
|
||||
* Converts a list of strings to a list of grpc metadata keys.
|
||||
*/
|
||||
static List<Key<String>> metadataKeys(List<String> headerNames) {
|
||||
List<Key<String>> keys = new ArrayList<>();
|
||||
for (String name : headerNames) {
|
||||
|
@ -41,7 +48,9 @@ public class Labels {
|
|||
return Collections.unmodifiableList(labels);
|
||||
}
|
||||
|
||||
/** Adds standard labels, as well as custom ones, in order, to a given collector. */
|
||||
/**
|
||||
* Adds standard labels, as well as custom ones, in order, to a given collector.
|
||||
*/
|
||||
static <T> T addLabels(SimpleCollector<T> collector, List<String> labels, GrpcMethod method) {
|
||||
List<String> allLabels = new ArrayList<>();
|
||||
allLabels.add(method.type());
|
||||
|
|
|
@ -119,5 +119,4 @@ public class RequestSigner {
|
|||
MessageHelper.setField(verifyBuilder, ORIGIN_SIGNATURE_FIELD_NAME, signMessagePart(key, verifyOrigin));
|
||||
MessageHelper.setField(request, VERIFY_HEADER_FIELD_NAME, verifyBuilder.build());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,6 +15,9 @@ import static info.frostfs.sdk.constants.ErrorConst.FIELDS_DELIMITER_COMMA;
|
|||
import static java.util.Objects.isNull;
|
||||
|
||||
public class Validator {
|
||||
private Validator() {
|
||||
}
|
||||
|
||||
public static <T> void validate(T object) {
|
||||
StringBuilder errorMessage = new StringBuilder();
|
||||
process(object, errorMessage);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package info.frostfs.sdk.utils;
|
||||
|
||||
public class WaitUtil {
|
||||
private WaitUtil() {
|
||||
}
|
||||
|
||||
public static void sleep(long ms) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue