Replace concat() call with +

Such calls can be replaced with the '+' operator for increased code
clarity and possible increased performance if the method was invoked on
a constant with a constant argument.
This commit is contained in:
Nelson A. de Oliveira 2013-08-02 23:55:38 -03:00
parent ca60148431
commit 650b6b2362

View file

@ -149,7 +149,7 @@ public class SeekBarPreference extends DialogPreference implements
public void onProgressChanged(final SeekBar seek, final int value, public void onProgressChanged(final SeekBar seek, final int value,
final boolean fromTouch) { final boolean fromTouch) {
final String t = String.valueOf(value); final String t = String.valueOf(value);
valueTextView.setText(valueText == null ? t : t.concat(valueText)); valueTextView.setText(valueText == null ? t : t + valueText);
valueToSave = value; valueToSave = value;
} }