You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/08/21 15:23:38 UTC
svn commit: r1516155 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java
Author: rmuir
Date: Wed Aug 21 13:23:38 2013
New Revision: 1516155
URL: http://svn.apache.org/r1516155
Log:
dodge broken javadocs
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java?rev=1516155&r1=1516154&r2=1516155&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/AttributeSource.java Wed Aug 21 13:23:38 2013
@@ -259,7 +259,7 @@ public class AttributeSource {
* already in this AttributeSource and returns it. Otherwise a
* new instance is created, added to this AttributeSource and returned.
*/
- public final <A extends Attribute> A addAttribute(Class<A> attClass) {
+ public final <T extends Attribute> T addAttribute(Class<T> attClass) {
AttributeImpl attImpl = attributes.get(attClass);
if (attImpl == null) {
if (!(attClass.isInterface() && Attribute.class.isAssignableFrom(attClass))) {
@@ -297,7 +297,7 @@ public class AttributeSource {
* available. If you want to only use the attribute, if it is available (to optimize
* consuming), use {@link #hasAttribute}.
*/
- public final <A extends Attribute> A getAttribute(Class<A> attClass) {
+ public final <T extends Attribute> T getAttribute(Class<T> attClass) {
AttributeImpl attImpl = attributes.get(attClass);
if (attImpl == null) {
throw new IllegalArgumentException("This AttributeSource does not have the attribute '" + attClass.getName() + "'.");