Skip to content

Commit

Permalink
Merge pull request #11945 from qmonmert/sonar190225
Browse files Browse the repository at this point in the history
Sonar: Remove this public modifier
  • Loading branch information
murdos authored Feb 19, 2025
2 parents 8dc24a1 + b6d7256 commit b6dcceb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class KafkaPropertiesTest {
private KafkaProperties kafkaProperties;
@BeforeEach
public void setUp() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
void setUp() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
kafkaProperties = new KafkaProperties();
ReflectionTestUtils.setField(kafkaProperties, "bootstrapServers", "localhost:9092");
ReflectionTestUtils.setField(kafkaProperties, "pollingTimeout", 10_000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SampleConsumerTest {
private SampleConsumer sampleConsumer;
@BeforeEach
public void setUp() throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
void setUp() throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
sampleConsumer = new SampleConsumer("queue.jhipster.sample", 10_000, consumer);
Method postConstructInit = SampleConsumer.class.getDeclaredMethod("init");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SampleProducerTest {
private MockProducer mockProducer;
@BeforeEach
public void setUp() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
void setUp() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
mockProducer = new MockProducer<>(true, new StringSerializer(), new StringSerializer());
sampleProducer = new SampleProducer("queue.jhipster.sample", mockProducer);
Method postConstruct = SampleProducer.class.getDeclaredMethod("init");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class GatewayResourceIT {
private String appName;
@BeforeEach
public void setUp() {
void setUp() {
SimpleModule simpleModule = new SimpleModule().addAbstractTypeMapping(ServiceInstance.class, DefaultServiceInstance.class);
objectMapper.registerModule(simpleModule);
}
Expand Down

0 comments on commit b6dcceb

Please sign in to comment.