-
Notifications
You must be signed in to change notification settings - Fork 144
Checkstyle class-design cleanup: add private utility ctors, mark final, drop redundant modifiers, add missing @Override #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,9 @@ | |
| */ | ||
| public class KafkaDatastreamMetadataConstants { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same, should this be defined a final class.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
|
|
||
| private KafkaDatastreamMetadataConstants() { | ||
| } | ||
|
|
||
| // Can be used by the transport provider to send to a particular Kafka cluster | ||
| public static final String DESTINATION_KAFKA_BROKERS = "system.destination.KafkaBrokers"; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,10 @@ | |
| * Utility class for Kafka based connectors | ||
| */ | ||
| public class KafkaConnectorDiagUtils { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think utils class should also be defined as final.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
|
|
||
| private KafkaConnectorDiagUtils() { | ||
| } | ||
|
|
||
| /** | ||
| * Reduce/Merge the KafkaTopicPartitionStatsResponse responses of a collection of host/instance into one response | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,9 @@ | |
| */ | ||
| public class AvroUtils { | ||
|
|
||
| private AvroUtils() { | ||
| } | ||
|
|
||
| /** | ||
| * Encode an Avro record into byte array | ||
| * | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we define this class also as final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed