Skip to content

Commit c7e54f8

Browse files
committed
ErrorProne - enable NarrowCalculation check
1 parent 3f5ce80 commit c7e54f8

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
@@ -1556,7 +1556,6 @@ class BeamModulePlugin implements Plugin<Project> {
15561556
"Finalize",
15571557
"JUnitIncompatibleType",
15581558
"MockNotUsedInProduction",
1559-
"NarrowCalculation",
15601559
"NullableTypeParameter",
15611560
"NullableWildcard",
15621561
"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)