Created
November 23, 2015 19:14
-
-
Save ekramalikazi/58509983af8e382ee2b1 to your computer and use it in GitHub Desktop.
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
@Override | |
public String toString() { | |
final ReflectionToStringBuilder reflectionToStringBuilder = new ReflectionToStringBuilder(this); | |
reflectionToStringBuilder.setAppendStatics(true); | |
reflectionToStringBuilder.setAppendTransients(true); | |
reflectionToStringBuilder.setExcludeFieldNames( | |
new String[] {"contentStreamLength", "password"}); | |
return reflectionToStringBuilder.toString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment