3 ms·
Using empty interfaces (protocols) as markers is a longstanding practice in Java [0], although nowadays it is considered an antipattern and annotations are pref
by layer8 5y ago
Using empty interfaces (protocols) as markers is a longstanding practice in Java [0], although nowadays it is considered an antipattern and annotations are preferred.
[0] https://en.wikipedia.org/wiki/Marker_interface_pattern https://en.wikipedia.org/wiki/Marker_interface_pattern