1*b04680f1SMatt Gilbride<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2*b04680f1SMatt Gilbride<!--NewPage--> 3*b04680f1SMatt Gilbride<HTML> 4*b04680f1SMatt Gilbride<HEAD> 5*b04680f1SMatt Gilbride<!-- Generated by javadoc (build 1.5.0_16) on Tue Feb 03 09:28:21 PST 2009 --> 6*b04680f1SMatt Gilbride<TITLE> 7*b04680f1SMatt GilbrideParametersAreNullableByDefault 8*b04680f1SMatt Gilbride</TITLE> 9*b04680f1SMatt Gilbride 10*b04680f1SMatt Gilbride<META NAME="keywords" CONTENT="javax.annotation.ParametersAreNullableByDefault class"> 11*b04680f1SMatt Gilbride 12*b04680f1SMatt Gilbride<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> 13*b04680f1SMatt Gilbride 14*b04680f1SMatt Gilbride<SCRIPT type="text/javascript"> 15*b04680f1SMatt Gilbridefunction windowTitle() 16*b04680f1SMatt Gilbride{ 17*b04680f1SMatt Gilbride parent.document.title="ParametersAreNullableByDefault"; 18*b04680f1SMatt Gilbride} 19*b04680f1SMatt Gilbride</SCRIPT> 20*b04680f1SMatt Gilbride<NOSCRIPT> 21*b04680f1SMatt Gilbride</NOSCRIPT> 22*b04680f1SMatt Gilbride 23*b04680f1SMatt Gilbride</HEAD> 24*b04680f1SMatt Gilbride 25*b04680f1SMatt Gilbride<BODY BGCOLOR="white" onload="windowTitle();"> 26*b04680f1SMatt Gilbride 27*b04680f1SMatt Gilbride 28*b04680f1SMatt Gilbride<!-- ========= START OF TOP NAVBAR ======= --> 29*b04680f1SMatt Gilbride<A NAME="navbar_top"><!-- --></A> 30*b04680f1SMatt Gilbride<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31*b04680f1SMatt Gilbride<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32*b04680f1SMatt Gilbride<TR> 33*b04680f1SMatt Gilbride<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34*b04680f1SMatt Gilbride<A NAME="navbar_top_firstrow"><!-- --></A> 35*b04680f1SMatt Gilbride<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36*b04680f1SMatt Gilbride <TR ALIGN="center" VALIGN="top"> 37*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39*b04680f1SMatt Gilbride <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 41*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 42*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 43*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 44*b04680f1SMatt Gilbride </TR> 45*b04680f1SMatt Gilbride</TABLE> 46*b04680f1SMatt Gilbride</TD> 47*b04680f1SMatt Gilbride<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 48*b04680f1SMatt Gilbride</EM> 49*b04680f1SMatt Gilbride</TD> 50*b04680f1SMatt Gilbride</TR> 51*b04680f1SMatt Gilbride 52*b04680f1SMatt Gilbride<TR> 53*b04680f1SMatt Gilbride<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 54*b04680f1SMatt Gilbride <A HREF="../../javax/annotation/ParametersAreNonnullByDefault.html" title="annotation in javax.annotation"><B>PREV CLASS</B></A> 55*b04680f1SMatt Gilbride <A HREF="../../javax/annotation/PropertyKey.html" title="annotation in javax.annotation"><B>NEXT CLASS</B></A></FONT></TD> 56*b04680f1SMatt Gilbride<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57*b04680f1SMatt Gilbride <A HREF="../../index.html?javax/annotation/ParametersAreNullableByDefault.html" target="_top"><B>FRAMES</B></A> 58*b04680f1SMatt Gilbride <A HREF="ParametersAreNullableByDefault.html" target="_top"><B>NO FRAMES</B></A> 59*b04680f1SMatt Gilbride <SCRIPT type="text/javascript"> 60*b04680f1SMatt Gilbride <!-- 61*b04680f1SMatt Gilbride if(window==top) { 62*b04680f1SMatt Gilbride document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); 63*b04680f1SMatt Gilbride } 64*b04680f1SMatt Gilbride //--> 65*b04680f1SMatt Gilbride</SCRIPT> 66*b04680f1SMatt Gilbride<NOSCRIPT> 67*b04680f1SMatt Gilbride <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> 68*b04680f1SMatt Gilbride</NOSCRIPT> 69*b04680f1SMatt Gilbride 70*b04680f1SMatt Gilbride 71*b04680f1SMatt Gilbride</FONT></TD> 72*b04680f1SMatt Gilbride</TR> 73*b04680f1SMatt Gilbride<TR> 74*b04680f1SMatt Gilbride<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 75*b04680f1SMatt Gilbride SUMMARY: REQUIRED | OPTIONAL</FONT></TD> 76*b04680f1SMatt Gilbride<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 77*b04680f1SMatt GilbrideDETAIL: ELEMENT</FONT></TD> 78*b04680f1SMatt Gilbride</TR> 79*b04680f1SMatt Gilbride</TABLE> 80*b04680f1SMatt Gilbride<A NAME="skip-navbar_top"></A> 81*b04680f1SMatt Gilbride<!-- ========= END OF TOP NAVBAR ========= --> 82*b04680f1SMatt Gilbride 83*b04680f1SMatt Gilbride<HR> 84*b04680f1SMatt Gilbride<!-- ======== START OF CLASS DATA ======== --> 85*b04680f1SMatt Gilbride<H2> 86*b04680f1SMatt Gilbride<FONT SIZE="-1"> 87*b04680f1SMatt Gilbridejavax.annotation</FONT> 88*b04680f1SMatt Gilbride<BR> 89*b04680f1SMatt GilbrideAnnotation Type ParametersAreNullableByDefault</H2> 90*b04680f1SMatt Gilbride<HR> 91*b04680f1SMatt Gilbride<DL> 92*b04680f1SMatt Gilbride<DT><PRE><FONT SIZE="-1">@Documented 93*b04680f1SMatt Gilbride<A HREF="../../javax/annotation/Nullable.html" title="annotation in javax.annotation">@Nullable</A> 94*b04680f1SMatt Gilbride<A HREF="../../javax/annotation/meta/TypeQualifierDefault.html" title="annotation in javax.annotation.meta">@TypeQualifierDefault</A>(<A HREF="../../javax/annotation/meta/TypeQualifierDefault.html#value()">value</A>=PARAMETER) 95*b04680f1SMatt Gilbride@Retention(value=RUNTIME) 96*b04680f1SMatt Gilbride</FONT>public @interface <B>ParametersAreNullableByDefault</B></DL> 97*b04680f1SMatt Gilbride</PRE> 98*b04680f1SMatt Gilbride 99*b04680f1SMatt Gilbride<P> 100*b04680f1SMatt GilbrideThis annotation can be applied to a package, class or method to indicate that 101*b04680f1SMatt Gilbride the method parameters in that element are nullable by default unless there is: 102*b04680f1SMatt Gilbride <ul> 103*b04680f1SMatt Gilbride <li>An explicit nullness annotation 104*b04680f1SMatt Gilbride <li>The method overrides a method in a superclass (in which case the 105*b04680f1SMatt Gilbride annotation of the corresponding parameter in the superclass applies) 106*b04680f1SMatt Gilbride <li> there is a default parameter annotation applied to a more tightly nested 107*b04680f1SMatt Gilbride element. 108*b04680f1SMatt Gilbride </ul> 109*b04680f1SMatt Gilbride <p>This annotation implies the same "nullness" as no annotation. However, it is different 110*b04680f1SMatt Gilbride than having no annotation, as it is inherited and it can override a ParametersAreNonnullByDefault 111*b04680f1SMatt Gilbride annotation at an outer scope. 112*b04680f1SMatt Gilbride<P> 113*b04680f1SMatt Gilbride 114*b04680f1SMatt Gilbride<P> 115*b04680f1SMatt Gilbride 116*b04680f1SMatt Gilbride<P> 117*b04680f1SMatt Gilbride 118*b04680f1SMatt Gilbride<P> 119*b04680f1SMatt Gilbride<!-- ========= END OF CLASS DATA ========= --> 120*b04680f1SMatt Gilbride<HR> 121*b04680f1SMatt Gilbride 122*b04680f1SMatt Gilbride 123*b04680f1SMatt Gilbride<!-- ======= START OF BOTTOM NAVBAR ====== --> 124*b04680f1SMatt Gilbride<A NAME="navbar_bottom"><!-- --></A> 125*b04680f1SMatt Gilbride<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 126*b04680f1SMatt Gilbride<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 127*b04680f1SMatt Gilbride<TR> 128*b04680f1SMatt Gilbride<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 129*b04680f1SMatt Gilbride<A NAME="navbar_bottom_firstrow"><!-- --></A> 130*b04680f1SMatt Gilbride<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 131*b04680f1SMatt Gilbride <TR ALIGN="center" VALIGN="top"> 132*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 133*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 134*b04680f1SMatt Gilbride <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 135*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 136*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 137*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 138*b04680f1SMatt Gilbride <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 139*b04680f1SMatt Gilbride </TR> 140*b04680f1SMatt Gilbride</TABLE> 141*b04680f1SMatt Gilbride</TD> 142*b04680f1SMatt Gilbride<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 143*b04680f1SMatt Gilbride</EM> 144*b04680f1SMatt Gilbride</TD> 145*b04680f1SMatt Gilbride</TR> 146*b04680f1SMatt Gilbride 147*b04680f1SMatt Gilbride<TR> 148*b04680f1SMatt Gilbride<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 149*b04680f1SMatt Gilbride <A HREF="../../javax/annotation/ParametersAreNonnullByDefault.html" title="annotation in javax.annotation"><B>PREV CLASS</B></A> 150*b04680f1SMatt Gilbride <A HREF="../../javax/annotation/PropertyKey.html" title="annotation in javax.annotation"><B>NEXT CLASS</B></A></FONT></TD> 151*b04680f1SMatt Gilbride<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 152*b04680f1SMatt Gilbride <A HREF="../../index.html?javax/annotation/ParametersAreNullableByDefault.html" target="_top"><B>FRAMES</B></A> 153*b04680f1SMatt Gilbride <A HREF="ParametersAreNullableByDefault.html" target="_top"><B>NO FRAMES</B></A> 154*b04680f1SMatt Gilbride <SCRIPT type="text/javascript"> 155*b04680f1SMatt Gilbride <!-- 156*b04680f1SMatt Gilbride if(window==top) { 157*b04680f1SMatt Gilbride document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); 158*b04680f1SMatt Gilbride } 159*b04680f1SMatt Gilbride //--> 160*b04680f1SMatt Gilbride</SCRIPT> 161*b04680f1SMatt Gilbride<NOSCRIPT> 162*b04680f1SMatt Gilbride <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> 163*b04680f1SMatt Gilbride</NOSCRIPT> 164*b04680f1SMatt Gilbride 165*b04680f1SMatt Gilbride 166*b04680f1SMatt Gilbride</FONT></TD> 167*b04680f1SMatt Gilbride</TR> 168*b04680f1SMatt Gilbride<TR> 169*b04680f1SMatt Gilbride<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 170*b04680f1SMatt Gilbride SUMMARY: REQUIRED | OPTIONAL</FONT></TD> 171*b04680f1SMatt Gilbride<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 172*b04680f1SMatt GilbrideDETAIL: ELEMENT</FONT></TD> 173*b04680f1SMatt Gilbride</TR> 174*b04680f1SMatt Gilbride</TABLE> 175*b04680f1SMatt Gilbride<A NAME="skip-navbar_bottom"></A> 176*b04680f1SMatt Gilbride<!-- ======== END OF BOTTOM NAVBAR ======= --> 177*b04680f1SMatt Gilbride 178*b04680f1SMatt Gilbride<HR> 179*b04680f1SMatt Gilbride 180*b04680f1SMatt Gilbride</BODY> 181*b04680f1SMatt Gilbride</HTML> 182