Skip to content

Commit

Permalink
Fix Codacy checstyle errors detected
Browse files Browse the repository at this point in the history
  • Loading branch information
GraciMndzSNG committed Oct 16, 2023
1 parent 8086f0b commit 201b98b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
import org.apache.jmeter.threads.JMeterContextService;

public final class ExtractorFactory {
private static final AvroExtractor Avroextractor = new AvroExtractor();
private static final AvroExtractor AVRO_EXTRACTOR = new AvroExtractor();

private static final JsonExtractor Jsonextractor = new JsonExtractor();
private static final JsonExtractor JSON_EXTRACTOR = new JsonExtractor();

private static final ProtobuffExtractor Protobuffextractor = new ProtobuffExtractor();
private static final ProtobuffExtractor PROTOBUF_EXTRACTOR = new ProtobuffExtractor();

private ExtractorFactory() {
}
Expand All @@ -35,12 +35,12 @@ public static ExtractorRegistry getExtractor(final String schemaType) {
final ExtractorRegistry response;
switch (SchemaTypeEnum.valueOf(schemaType.toUpperCase())) {
case JSON:
response = Jsonextractor;
response = JSON_EXTRACTOR;
break; case AVRO:
response = Avroextractor;
response = AVRO_EXTRACTOR;
break;
case PROTOBUF:
response = Protobuffextractor;
response = PROTOBUF_EXTRACTOR;
break;
default:
throw new KLoadGenException(String.format("Schema type not supported %s", schemaType));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import com.sngular.kloadgen.randomtool.random.RandomArray;
import com.sngular.kloadgen.randomtool.random.RandomObject;
import com.sngular.kloadgen.randomtool.random.RandomSequence;
import org.apache.commons.lang3.RandomUtils;
import static com.sngular.kloadgen.randomtool.util.ValueUtils.replaceValuesContext;
import org.apache.commons.lang3.RandomUtils;

public class ProtoBufGeneratorTool {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ private Boolean enrichedValueFlag() {
}

private void fillSamplerResult(final ProducerRecord<Object, Object> producerRecord, final SampleResult sampleResult) {
final String result = "key: " +
producerRecord.key() +
", payload: " + producerRecord.value();
final String result = "key: "
+ producerRecord.key()
+", payload: " + producerRecord.value();
sampleResult.setSamplerData(result);
}

Expand Down

0 comments on commit 201b98b

Please sign in to comment.