KamoCRM

Capture newExtNumber as final for lambda capture in MemberVoipConfigController

FixVOIPService
ส่งแล้ว
27 เมษายน 2569 เวลา 04:25 UTC
ผู้เขียน
Kamo
ตั้งค่า
75674ad

newExtNumber is conditionally reassigned inside the if (isVoipEnabled && ...) block, which makes it not effectively final. The TeamMember sync block reads it from inside an Optional.ifPresent() lambda, which the compiler rejects. Bind a final copy before the lambda to satisfy the language rule without changing behavior.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทั้งหมดของมันมาถึง ในที่ทํางานของคุณเอง เริ่มที่แผนฟรี และอ่านหน้านี้อีกครั้งในเดือน.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์