An assignment operator is to address this kind of situation:
How to Abort a Maven Build if Checkstyle Fails
It is not entirely obvious in
http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html
Item 10: Write Operator Delete if You Write Operator New
Rather self-explanatory.
Two recommended checks:
Null Pointer Check
Item 9: Avoid Hiding the ‘Normal’ Form of New
Not good:
Item 8: Adhere to Convention When Writing Operator New and Operator Delete
Since C++ guarantees it’s always safe to delete the null pointer, make sure the custom delete
will honor that guarantee
General Idea: