Created
April 3, 2018 10:30
-
-
Save dassiorleando/c6dcf843729f56b2854f0a969ab44964 to your computer and use it in GitHub Desktop.
ObjectB class described in http://www.dassiorleando.xyz/safely-tostring-a-java-object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObjectB { | |
private String propB; | |
public ObjectB(String propB) { | |
this.propB = propB; | |
} | |
// Getters and setters | |
@Override | |
public String toString() { | |
return "ObjectB{" + | |
"propB='" + propB + '\'' + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment