Skip to content

Commit

Permalink
Remove redundant casting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadimaduddin committed Oct 19, 2018
1 parent f7d4055 commit 7b15c52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tvHello = (TextView) findViewById(R.id.tv_hello);
tvPlural = (TextView) findViewById(R.id.tv_plural);
tvXliff = (TextView) findViewById(R.id.tv_xliff);
tvHello = findViewById(R.id.tv_hello);
tvPlural = findViewById(R.id.tv_plural);
tvXliff = findViewById(R.id.tv_xliff);

int pokeCount = 3;
String hello = String.format(getResources().getString(R.string.hello_world), "Narenda Wicaksono", pokeCount, "Yoza Aprilio");
Expand Down

0 comments on commit 7b15c52

Please sign in to comment.