BugValidationService.kt 400 B

12345678910111213141516
  1. package com.server.alb.services
  2. import com.server.alb.models.ListBug
  3. import io.micrometer.common.util.StringUtils
  4. import org.springframework.stereotype.Service
  5. @Service
  6. class BugValidationService {
  7. companion object {
  8. fun isValid(bug: ListBug?): Boolean {
  9. return (bug != null && StringUtils.isNotEmpty(bug.description) && StringUtils.isNotBlank(bug.link))
  10. }
  11. }
  12. }