diff options
-rw-r--r-- | docs/adk15ProgGuideDB/generics.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/adk15ProgGuideDB/generics.xml b/docs/adk15ProgGuideDB/generics.xml index 089e07cab..dcbbd09f2 100644 --- a/docs/adk15ProgGuideDB/generics.xml +++ b/docs/adk15ProgGuideDB/generics.xml @@ -435,7 +435,7 @@ <programlisting><![CDATA[ class G<T> { - List<T> foo(List<String ls) { return null; } + List<T> foo(List<String> ls) { return null; } } ]]></programlisting> @@ -804,7 +804,7 @@ <!-- see java5/generics/ajdk/AfterReturningExamples.aj --> <para>The pointcut uses the raw type pattern <literal>List</literal>, and hence it matches methods returning any kind of list (<literal>List<String>, List<Double></literal>, - and so on. We've chosen to bind the returned list as the parameterized type + and so on). We've chosen to bind the returned list as the parameterized type <literal>List<?></literal> in the advice since Java's type checking will now ensure that we only perform safe operations on the list.</para> |