Rename variables (#7486)

This commit is contained in:
Lauri Tulmin 2025-07-15 20:37:27 +03:00 committed by GitHub
parent ce1e26f579
commit 7781706de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -42,12 +42,12 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize {
int posResource = 0; int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry : for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
resourceAndScopeMap.entrySet()) { resourceAndScopeMap.entrySet()) {
InstrumentationScopeLogsMarshaler[] instrumentationLibrarySpansMarshalers = InstrumentationScopeLogsMarshaler[] instrumentationScopeLogsMarshalers =
new InstrumentationScopeLogsMarshaler[entry.getValue().size()]; new InstrumentationScopeLogsMarshaler[entry.getValue().size()];
int posInstrumentation = 0; int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs : for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
entry.getValue().entrySet()) { entry.getValue().entrySet()) {
instrumentationLibrarySpansMarshalers[posInstrumentation++] = instrumentationScopeLogsMarshalers[posInstrumentation++] =
new InstrumentationScopeLogsMarshaler( new InstrumentationScopeLogsMarshaler(
InstrumentationScopeMarshaler.create(entryIs.getKey()), InstrumentationScopeMarshaler.create(entryIs.getKey()),
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@ -57,7 +57,7 @@ public final class ResourceLogsMarshaler extends MarshalerWithSize {
new ResourceLogsMarshaler( new ResourceLogsMarshaler(
ResourceMarshaler.create(entry.getKey()), ResourceMarshaler.create(entry.getKey()),
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
instrumentationLibrarySpansMarshalers); instrumentationScopeLogsMarshalers);
} }
return resourceLogsMarshalers; return resourceLogsMarshalers;

View File

@ -42,12 +42,12 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize {
int posResource = 0; int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry : for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<Marshaler>>> entry :
resourceAndScopeMap.entrySet()) { resourceAndScopeMap.entrySet()) {
InstrumentationScopeMetricsMarshaler[] instrumentationLibrarySpansMarshalers = InstrumentationScopeMetricsMarshaler[] instrumentationScopeMetricsMarshalers =
new InstrumentationScopeMetricsMarshaler[entry.getValue().size()]; new InstrumentationScopeMetricsMarshaler[entry.getValue().size()];
int posInstrumentation = 0; int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs : for (Map.Entry<InstrumentationScopeInfo, List<Marshaler>> entryIs :
entry.getValue().entrySet()) { entry.getValue().entrySet()) {
instrumentationLibrarySpansMarshalers[posInstrumentation++] = instrumentationScopeMetricsMarshalers[posInstrumentation++] =
new InstrumentationScopeMetricsMarshaler( new InstrumentationScopeMetricsMarshaler(
InstrumentationScopeMarshaler.create(entryIs.getKey()), InstrumentationScopeMarshaler.create(entryIs.getKey()),
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@ -57,7 +57,7 @@ public final class ResourceMetricsMarshaler extends MarshalerWithSize {
new ResourceMetricsMarshaler( new ResourceMetricsMarshaler(
ResourceMarshaler.create(entry.getKey()), ResourceMarshaler.create(entry.getKey()),
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
instrumentationLibrarySpansMarshalers); instrumentationScopeMetricsMarshalers);
} }
return resourceMetricsMarshalers; return resourceMetricsMarshalers;

View File

@ -35,13 +35,13 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize {
int posResource = 0; int posResource = 0;
for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry : for (Map.Entry<Resource, Map<InstrumentationScopeInfo, List<ProfileMarshaler>>> entry :
resourceAndScopeMap.entrySet()) { resourceAndScopeMap.entrySet()) {
InstrumentationScopeProfilesMarshaler[] instrumentationLibrarySpansMarshalers = InstrumentationScopeProfilesMarshaler[] instrumentationScopeProfilesMarshalers =
new InstrumentationScopeProfilesMarshaler[entry.getValue().size()]; new InstrumentationScopeProfilesMarshaler[entry.getValue().size()];
int posInstrumentation = 0; int posInstrumentation = 0;
for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> entryIs : for (Map.Entry<InstrumentationScopeInfo, List<ProfileMarshaler>> entryIs :
entry.getValue().entrySet()) { entry.getValue().entrySet()) {
instrumentationLibrarySpansMarshalers[posInstrumentation++] = instrumentationScopeProfilesMarshalers[posInstrumentation++] =
new InstrumentationScopeProfilesMarshaler( new InstrumentationScopeProfilesMarshaler(
InstrumentationScopeMarshaler.create(entryIs.getKey()), InstrumentationScopeMarshaler.create(entryIs.getKey()),
MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entryIs.getKey().getSchemaUrl()),
@ -52,7 +52,7 @@ final class ResourceProfilesMarshaler extends MarshalerWithSize {
new ResourceProfilesMarshaler( new ResourceProfilesMarshaler(
ResourceMarshaler.create(entry.getKey()), ResourceMarshaler.create(entry.getKey()),
MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()), MarshalerUtil.toBytes(entry.getKey().getSchemaUrl()),
instrumentationLibrarySpansMarshalers); instrumentationScopeProfilesMarshalers);
} }
return resourceProfilesMarshalers; return resourceProfilesMarshalers;