使用jetbrains @NotNull注解
This commit is contained in:
parent
556adcdc57
commit
6b7e9e7ecb
@ -1,15 +1,14 @@
|
||||
package com.example.springdemo.dao;
|
||||
|
||||
import com.example.springdemo.entities.Merchants;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
|
||||
public interface MerchantsRepository extends JpaRepository<Merchants, Long> {
|
||||
List<Merchants> findByName(String name);
|
||||
|
||||
void deleteById(Long id);
|
||||
void deleteById(@NotNull Long id);
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
@NonNullApi
|
||||
package com.example.springdemo.dao;
|
||||
|
||||
import org.springframework.lang.NonNullApi;
|
Loading…
Reference in New Issue
Block a user