Skip to content

Commit ada2dca

Browse files
author
Sam Raeburn
committed
CORE-13335: Apply lint patch
1 parent e2a1cbf commit ada2dca

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

examples/connext_dds/keyed_data/c++11/keys_subscriber.cxx

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ int process_data(dds::sub::DataReader<keys> reader)
4242
if (state
4343
== dds::sub::status::InstanceState::not_alive_no_writers()) {
4444
std::cout << "Instance " << sample.code() << " has no writers"
45-
<< std::endl;
46-
} else if (state
47-
== dds::sub::status::InstanceState::not_alive_disposed()) {
45+
<< std::endl;
46+
} else if (
47+
state
48+
== dds::sub::status::InstanceState::not_alive_disposed()) {
4849
std::cout << "Instance " << sample.code() << " is disposed"
4950
<< std::endl;
5051
} else {

examples/connext_dds/keyed_data/c++98/keys_subscriber.cxx

+9-11
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,16 @@ unsigned int process_data(keysDataReader *typed_reader)
6666
}
6767
if (info_seq[i].instance_state
6868
== DDS_NOT_ALIVE_NO_WRITERS_INSTANCE_STATE) {
69-
std::cout
70-
<< "Instance " << dummy.code << " has no writers"
71-
<< std::endl;
72-
} else if (info_seq[i].instance_state
73-
== DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
74-
std::cout
75-
<< "Instance " << dummy.code << " is disposed"
76-
<< std::endl;
69+
std::cout << "Instance " << dummy.code << " has no writers"
70+
<< std::endl;
71+
} else if (
72+
info_seq[i].instance_state
73+
== DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
74+
std::cout << "Instance " << dummy.code << " is disposed"
75+
<< std::endl;
7776
} else {
78-
std::cout
79-
<< "Instance " << dummy.code << " is alive"
80-
<< std::endl;
77+
std::cout << "Instance " << dummy.code << " is alive"
78+
<< std::endl;
8179
}
8280
}
8381
/* End changes for Keyed_Data */

examples/connext_dds/keyed_data/c/keys_subscriber.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ void keysListener_on_data_available(void *listener_data, DDS_DataReader *reader)
161161
if (info->instance_state
162162
== DDS_NOT_ALIVE_NO_WRITERS_INSTANCE_STATE) {
163163
printf("Instance %d has no writers\n", key_value.code);
164-
} else if (info->instance_state
165-
== DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
164+
} else if (
165+
info->instance_state
166+
== DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
166167
printf("Instance %d is disposed\n", key_value.code);
167168
} else {
168169
printf("Instance %d is alive\n", key_value.code);

examples/connext_dds/keyed_data/java/keysSubscriber.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ private int processData()
7474
.NOT_ALIVE_NO_WRITERS_INSTANCE_STATE) {
7575
System.out.print(
7676
"Instance " + dummy.code + " has no writers\n");
77-
} else if (info.instance_state
78-
== InstanceStateKind
79-
.NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
77+
} else if (
78+
info.instance_state
79+
== InstanceStateKind
80+
.NOT_ALIVE_DISPOSED_INSTANCE_STATE) {
8081
System.out.print(
8182
"Instance " + dummy.code + " is disposed\n");
8283
} else {

0 commit comments

Comments
 (0)