Tag: faq
FAQ on MacOS
[code]
sudo spctl –master-disable
[/code]
[code]
defaults write com.apple.Finder AppleShowAllFiles YES
[/code]
POJO, equals, hashcode
How to simplify developing of pojo
classes?
Problems:
pojo
class is simple class with members, getters, setters. To keep test coverage more 80% we should develop tests forpojo
classes. But it is a ridiculous.- do not forget to add new members to
equals
andhashcode
methods.
Decisions:
- Lombok. We have to type just members of class and use annotations. But there are problems:
- final members without initialization
- there are conflicts in annotationProcessor
- AutoValue. by Google.
- complicated to use
- generate child class
- Kotlin data classes.
- by Google
- no problems in annotationProcessor
- we use Kotlin!!!