在lambda表达式中使用的变量应该是最终变量或有效的最终变量。
在lambda表达式中使用的变量应该是最终变量或有效的最终变量。
calTz
private TimeZone extractCalendarTimeZoneComponent(Calendar cal,TimeZone calTz) {
try {
cal.getComponents().getComponents("VTIMEZONE").forEach(component->{
VTimeZone v = (VTimeZone) component;
v.getTimeZoneId();
if(calTz==null) {
calTz = TimeZone.getTimeZone(v.getTimeZoneId().getValue());
}
});
} catch (Exception e) {
log.warn("Unable to determine ical timezone", e);
}
return null;}MMTTMM
德玛西亚99
蝴蝶刀刀
相关分类