Eclipse warning: "<methodName> has non-API return type <parameterizedType>"

Posted by Tenner on Stack Overflow See other posts from Stack Overflow or by Tenner
Published on 2010-04-06T17:50:25Z Indexed on 2010/04/06 17:53 UTC
Read the original article Hit count: 413

Filed under:
|
|
|

My co-worker and I have come across this warning message a couple times recently. For the below code:

package com.mycompany.product.data;

import com.mycompany.product.dao.GenericDAO;

public abstract class EntityBean {
    public abstract GenericDAO<Object, Long> getDAO();
    //                                       ^^^^^^      <-- WARNING OCCURS HERE
}

the warning appears in the listed spot as

EntityBean.getDAO() has non-API return type GenericDAO<T, ID>

A Google search for "has non-API return type" only shows instances where this message appears in problem lists. I.e., there's no public explanation for it.

What does this mean? We can create a usage problem filter in Eclipse to make the message go away, but we don't want to do this if our usage is a legitimate problem.

Thanks!

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about eclipse-rcp