From 098a38e562fe8760a5dfeccdee8b9b431fe725a4 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 7 Aug 2023 18:26:31 +0900 Subject: [PATCH] getBasicInfo(List vhrNos) -> getBasicInfo(List reqs) --- .../xit/interfaces/lvis/service/bean/VehicleInfoBean.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoBean.java b/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoBean.java index 7a37305..8ea4f79 100644 --- a/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoBean.java +++ b/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoBean.java @@ -90,13 +90,7 @@ public class VehicleInfoBean extends AbstractComponent { return response; } - public Map getBasicInfo(List vhrNos) { - List reqs = vhrNos.stream().map(vhrNo -> { - BasicInfoRequest req = new BasicInfoRequest(); - req.setVhrno(vhrNo); - return req; - }).toList(); - + public Map getBasicInfo(List reqs) { return reqs.stream() .map(this::getBasicInfo) .filter(BasicInfoResponse::isSuccess)