Skip to content

Commit 44ba883

Browse files
committed
ninth pass
1 parent 3cfc4c7 commit 44ba883

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

sdk/testing/src/main/java/io/opentelemetry/sdk/testing/exporter/InMemoryMetricExporter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public void reset() {
100100

101101
@Override
102102
public AggregationTemporality getAggregationTemporality(InstrumentType instrumentType) {
103+
Objects.requireNonNull(instrumentType, "instrumentType");
103104
return aggregationTemporality;
104105
}
105106

sdk/testing/src/main/java/io/opentelemetry/sdk/testing/exporter/InMemoryMetricReader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,13 @@ public void register(CollectionRegistration collectionRegistration) {
124124

125125
@Override
126126
public AggregationTemporality getAggregationTemporality(InstrumentType instrumentType) {
127+
Objects.requireNonNull(instrumentType, "instrumentType");
127128
return aggregationTemporalitySelector.getAggregationTemporality(instrumentType);
128129
}
129130

130131
@Override
131132
public Aggregation getDefaultAggregation(InstrumentType instrumentType) {
133+
Objects.requireNonNull(instrumentType, "instrumentType");
132134
return defaultAggregationSelector.getDefaultAggregation(instrumentType);
133135
}
134136

0 commit comments

Comments
 (0)