ソースを参照

fix: List.of()→Collections.emptyList() (JDK8兼容)

User 2 ヶ月 前
コミット
cdf7536b1d

+ 3 - 2
cfc-backend/src/main/java/com/etotem/cfc/controller/family/RelationshipQualityController.java

@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
+import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
@@ -99,7 +100,7 @@ public class RelationshipQualityController {
         }
         Long familyId = getFamilyIdFromRequest(request, body);
         if (familyId == null) {
-            return Result.success(List.of());
+            return Result.success(Collections.emptyList());
         }
         List<HealthAlertVO> alerts = relationshipQualityService.getHealthAlerts(familyId);
         return Result.success(alerts);
@@ -115,7 +116,7 @@ public class RelationshipQualityController {
         }
         Long familyId = getFamilyIdFromRequest(request, body);
         if (familyId == null) {
-            return Result.success(List.of());
+            return Result.success(Collections.emptyList());
         }
         Integer daysAhead = body != null && body.get("daysAhead") != null
                 ? Integer.valueOf(body.get("daysAhead").toString()) : 7;