DaanHoogland commented on code in PR #9721: URL: https://github.com/apache/cloudstack/pull/9721#discussion_r1772967440
########## engine/schema/src/main/java/com/cloud/vm/dao/UserVmDetailsDaoImpl.java: ########## @@ -22,13 +22,45 @@ import org.apache.cloudstack.resourcedetail.ResourceDetailsDaoBase; import com.cloud.vm.UserVmDetailVO; +import com.cloud.vm.VMInstanceVO; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import javax.inject.Inject; @Component public class UserVmDetailsDaoImpl extends ResourceDetailsDaoBase<UserVmDetailVO> implements UserVmDetailsDao { + @Inject + protected UserVmDetailsDao _detailsDao; + @Override public void addDetail(long resourceId, String key, String value, boolean display) { super.addDetail(new UserVmDetailVO(resourceId, key, value, display)); } + @Override + public void saveDetails(VMInstanceVO vm) { + saveDetails(vm, new ArrayList<String>()); + } + + @Override + public void saveDetails(VMInstanceVO vm, List<String> hiddenDetails) { Review Comment: yes, so it is not needed as `saveDetails(VMInstanceVO vm)` passes a constant empty `ArrayList`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org