소스 검색

代码优化

woody 2 년 전
부모
커밋
108d15363d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      framework-location/src/main/java/com/chelvc/framework/location/support/JuheMobileHandler.java

+ 1 - 1
framework-location/src/main/java/com/chelvc/framework/location/support/JuheMobileHandler.java

@@ -65,7 +65,7 @@ public class JuheMobileHandler implements MobileHandler {
         String province = ObjectUtils.ifNull(response.getResult(), JuheLocationResponse.Location::getProvince);
         String city = ObjectUtils.ifNull(response.getResult(), JuheLocationResponse.Location::getCity);
         String address = Stream.of(province, city).filter(StringUtils::nonEmpty).collect(Collectors.joining());
-        return StringUtils.ifEmpty(address, null);
+        return StringUtils.ifEmpty(address, (String) null);
     }
 
     @Override