Skip to content

Commit b2e97de

Browse files
authored
Merge pull request #38192 from stankiewicz/errorprone_NarrowCalculation
[ErrorProne] enable NarrowCalculation check
2 parents 9a9d241 + c7e54f8 commit b2e97de

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ class BeamModulePlugin implements Plugin<Project> {
15551555
"Finalize",
15561556
"JUnitIncompatibleType",
15571557
"MockNotUsedInProduction",
1558-
"NarrowCalculation",
15591558
"NullableTypeParameter",
15601559
"NullableWildcard",
15611560
"SuperCallToObjectMethod",

sdks/java/testing/nexmark/src/main/java/org/apache/beam/sdk/nexmark/sources/generator/GeneratorConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public GeneratorConfig(
104104
// Scale maximum down to avoid overflow in getEstimatedSizeBytes.
105105
this.maxEvents =
106106
Long.MAX_VALUE
107-
/ (PROPORTION_DENOMINATOR
107+
/ ((long) PROPORTION_DENOMINATOR
108108
* Math.max(
109109
Math.max(configuration.avgPersonByteSize, configuration.avgAuctionByteSize),
110110
configuration.avgBidByteSize));

0 commit comments

Comments
 (0)