تخطَّ إلى المحتوى

Interface no I prefix (ARCH4003)

هذا المحتوى غير متوفر بلغتك بعد.

Key java.naming.interface-no-i-prefix · Severity info · Category naming

Java interfaces should not start with an ‘I’ prefix. That is a .NET-derived convention not used in Java and it needlessly clutters the name.

public interface IUserRepository {
User findById(long id);
}
public interface UserRepository {
User findById(long id);
}

Drop the ‘I’ prefix and name the interface plainly (e.g. UserRepository).