OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove unnecessary casts on calls to findViewById
[android-x86/frameworks-base.git]
/
core
/
java
/
android
/
view
/
View.java
diff --git
a/core/java/android/view/View.java
b/core/java/android/view/View.java
index
9072bf9
..
3092265
100644
(file)
--- a/
core/java/android/view/View.java
+++ b/
core/java/android/view/View.java
@@
-321,7
+321,7
@@
import java.util.function.Predicate;
* </pre></li>
* <li>From the onCreate method of an Activity, find the Button
* <pre class="prettyprint">
- * Button myButton =
(Button)
findViewById(R.id.my_button);
+ * Button myButton = findViewById(R.id.my_button);
* </pre></li>
* </ul>
* <p>