Skip to content

Commit

Permalink
make zeroValuesSubmission and reportRawCountValues not final
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick committed Jun 26, 2024
1 parent 76c999c commit 59bf0df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ void startCloudWatchReporter(
final CloudWatchReporter.Builder builder =
CloudWatchReporter.forRegistry(metricRegistry, cloudWatchAsyncClient, METRIC_NAMESPACE);

if (configuration.getConfig().getZeroValuesSubmission()) {
if (cloudWatchConfig.getZeroValuesSubmission()) {
builder.withZeroValuesSubmission();
}
if (configuration.getConfig().getReportRawCountValue()) {
if (cloudWatchConfig.getReportRawCountValue()) {
builder.withReportRawCountValue();
}
cloudWatchReporter = builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* @author Anja Helmbrecht-Schaar
*/
@SuppressWarnings("FieldCanBeLocal")
@SuppressWarnings({"FieldCanBeLocal", "FieldMayBeFinal"})
@XmlRootElement(name = "cloudwatch-extension-configuration")
@XmlType(propOrder = {})
@XmlAccessorType(XmlAccessType.NONE)
Expand All @@ -48,13 +48,13 @@ public class Config {

@XmlElementWrapper(name = "metrics")
@XmlElement(name = "metric")
private final @NotNull List<Metric> metrics = new ArrayList<>();
private @NotNull List<Metric> metrics = new ArrayList<>();

@XmlElement(name = "zero-values-submission", defaultValue = "false")
private final boolean zeroValuesSubmission = false;
private boolean zeroValuesSubmission = false;

@XmlElement(name = "report-raw-count-value", defaultValue = "false")
private final boolean reportRawCountValue = false;
private boolean reportRawCountValue = false;

@XmlElement(name = "cloudwatch-endpoint-override")
private final @Nullable String cloudWatchEndpointOverride = null;
Expand Down

0 comments on commit 59bf0df

Please sign in to comment.