Skip to content

Commit

Permalink
Redundant String.toString() operations removed (getodk#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasnbhat authored and lognaturel committed Mar 16, 2017
1 parent 96eb66c commit f2f119a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static final class EncryptedFormInformation {
// start building elementSignatureSource...
appendElementSignatureSource(formId);
if (formVersion != null) {
appendElementSignatureSource(formVersion.toString());
appendElementSignatureSource(formVersion);
}
appendElementSignatureSource(base64RsaEncryptedSymmetricKey);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void clearAnswer() {
@Override
public IAnswerData getAnswer() {
if (mBinaryName != null) {
return new StringData(mBinaryName.toString());
return new StringData(mBinaryName);
} else {
return null;
}
Expand Down

0 comments on commit f2f119a

Please sign in to comment.