Skip to content

Commit 893d342

Browse files
committed
better toString for Code
1 parent e32707e commit 893d342

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/org/bson/types/Code.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ public boolean equals( Object o ){
4646
public int hashCode(){
4747
return _code.hashCode();
4848
}
49-
49+
50+
@Override
51+
public String toString() {
52+
return getCode();
53+
}
54+
5055
final String _code;
5156

5257
}

0 commit comments

Comments
 (0)