Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90eece4a authored by Adarsh Fernando's avatar Adarsh Fernando Committed by Android (Google) Code Review
Browse files

Merge "DOCS: Updated Java 8 language support list with Type Annotations." into nyc-dev

parents 56cf0529 c302c298
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
@@ -72,14 +72,25 @@ installed the Android N Preview SDK, see <a href=
    "https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html">
    Method References</a> (also available on API level 23 and lower)
  </li>

  <li>
    <a class="external-link" href=
    "https://docs.oracle.com/javase/tutorial/java/annotations/type_annotations.html">
    Type Annotations</a> (also available on API level 23 and lower)
  </li>
</ul>

<p class="note">
  <strong>Note:</strong> To test lambda expressions and method references on
  earlier versions of Android, go to your {@code build.gradle}
  file, and set {@code compileSdkVersion} and {@code targetSdkVersion} to 23 or
  lower. You will still need to <a href="#configuration">enable the Jack
  toolchain</a> to use these Java 8 features.
  <strong>Note:</strong> Type annotation information is only available at
  compile time, and not during runtime.
</p>

<p>
  To test lambda expressions, method references, and type annotations on
  earlier versions of Android, go to your {@code build.gradle} file, and set
  {@code compileSdkVersion} and {@code targetSdkVersion} to 23 or lower. You
  will still need to <a href="#configuration">enable the Jack toolchain</a> to
  use these Java 8 features.
</p>

<p>