Warning, file /frameworks/syntax-highlighting/autotests/input/highlight.java was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* highlighting test case for Java */ 0002 0003 // single line comment with ### TODO FIXME 0004 0005 /* multiline comment with ### TODO FIXME */ 0006 0007 /** Javadoc comment with ### TODO FIXME 0008 * @param foo bla bla ATTENTION 0009 * @return abc cde 0010 * @see javadoc.xml 0011 */ 0012 0013 package org.kde.itinerary; 0014 0015 import org.qtproject.qt5.android.bindings.QtActivity; 0016 import java.io.*; 0017 import java.util.*; 0018 0019 public class Activity extends QtActivity 0020 { 0021 private static final String TAG = "org.kde.itinerary"; 0022 0023 public void launchViewIntentFromUri(String uri) 0024 { 0025 Uri mapIntentUri = Uri.parse(uri); 0026 Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapIntentUri); 0027 startActivity(mapIntent); 0028 } 0029 0030 @Override 0031 protected String stuff() 0032 { 0033 while (true) { 0034 } 0035 int num = 1; 0036 num = 0x2; 0037 double f = .4e+49; 0038 var other = "string"; 0039 0040 long int_dec = 1__23_48l; 0041 long int_oct = 072034__4l; 0042 long int_hex = 0xa__12Ff_13L; 0043 int int_bin = 0B1011___01; 0044 0045 double float_hex = 0x1f__a2.d_f10P+1074D; 0046 float float_dec = 1__24.1_32e-1____23F; 0047 float[] float_d = {1.,1.E+3,1.E+3f,1.F,1.1E+3d,1.1E+3,1.1f,1.1,.1E+3f,.1E+3,.1f,.1,1E+3f,1E+3,1f,1d}; 0048 assert 1 > 0; 0049 } 0050 }