Add java5 generics syntax support

Example:
public interface TestGenerics<T>{
    public void appendTo(List<T> result,T sample);
}
Merge pull request #468 from jindw/master

Add java5 generics syntax support