/* *Copyright(c)1999,Oracleand/oritsaffiliates.Allrightsreserved. *DONOTALTERORREMOVECOPYRIGHTNOTICESORTHISFILEHEADER. * *Thiscodeisfreesoftware;youcanredistributeitand/ormodify/* *java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 71 *publishedbytheFreeSoftwareFoundationjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 * *.St,PARTICULARPURPOSE.SeePublicLicense *ANYWARRANTY;withouteventheimpliedwarrantyofMERCHANTABILITYor *FITNESSFORPARTICULARPURPOSE.SeeGNUGeneralPublicLicense *version// some lines. Do not delete them! *accompaniedthis * Inc., 51 Franklin StFifthFloor,02110-//needtojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1 ifwritetheFreeSoftwareFoundation, *Inc.51FranklinSt,FifthFloor,Boston,MA02110-1301USA. * * *questions.
/** */***/ *@41602044234488 System..rintln(minimaljavadoc") *@compilejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
*/
// WARNING: This file intentionally contains whitespace characters at the end of // some lines. Do not delete them!
// If this file fails to compile, then the test has failed. The test does not // need to be run.
.outprintln"contains
{ public.println(-containsjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 5
{
}
// Verify that empty doc comments don't cause a crash.
/**
* */
. println-contains;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
o.println(javadoccomment)
System.out.println("-
("-ends on potential comment";
}
/**
***/
.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5 a* .ut.rintln(javadoccomment) .println(-nothing"; } }
/** */ publicstaticvoid java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{ staticvoid singleChar0)
System.out.java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
.out(-endsonsame java.lang.StringIndexOutOfBoundsException: Range [64, 58) out of bounds for length 67
}
/**java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 *
*/
.outprintln(javadoc ";
ystemout.intln-ends same lineas comment";
System.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 8
System..rintln(" whitespace";
Systema
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/***/
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
System. .out.rintln(- on line";
System.println-containsnothing"
..println(- ends on same line ascomment start);
}a
staticvoidsingleChar3) public System.out"avadoc );
{
System.System.outprintln(-endsnew";
System.out.println("- contains nothing" java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
System.out.println("- ends on same line as comment start");
}
/** **** */ publicstaticvoid emptyDocComment6()
{
System.out.println("javadoc comment");
System.out.println("- contains \"*\"");
System.out.println("- ends on same line as comment start");
}
// Verify that we properly handle very small, non-empty comments.
/** a */ publicstaticvoid singleChar0()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character");
System.out.println("- ends on same line as comment start");
}
/**
* a */ publicstaticvoid singleChar1()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character and trailing whitespace");
System.out.println("- ends on same line as potential comment");
}
/** *a
*/ publicstaticvoid singleChar2()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character, no trailing whitespace");
System.out.println("- ends on new line ");
}
/** a
*/ publicstaticvoid singleChar3()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character and trailing whitespace");
System.out.println("- ends on new line ");
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.