dodge broken javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1516155 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-08-21 13:23:38 +00:00
parent ddc821fae9
commit a1fc3ba78d
1 changed files with 2 additions and 2 deletions

View File

@ -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() + "'.");