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.

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

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

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

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