Просмотр исходного кода

fixed a couple of typos reported by Alexander Popescu on the mailing list.

tags/preDefaultReweavable
acolyer 19 лет назад
Родитель
Сommit
0c0f2d509a
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      docs/adk15ProgGuideDB/generics.xml

+ 2
- 2
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&lt;String&gt;, List&lt;Double&gt;</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&lt;?&gt;</literal> in the advice since Java's type checking will now ensure
that we only perform safe operations on the list.</para>

Загрузка…
Отмена
Сохранить