I am trying to get all log from svn repository using SVNKit. It is working fine, but saw an infer generic type argument warning message. I have tried to cast the line
repository.log(new String[]{""}, null, START_REVISION, HEAD_REVISION, true, true);
with
Collection<SVNLogEntry>
But warning is still there . Is it possible to remove this warning without suppressing it ?
private Collection<SVNLogEntry> getAllSvnLogsFromStart_Revision() {
DAVRepositoryFactory.setup();
SVNRepository repository = null;
Collection<SVNLogEntry> logEntries = null;
try {
repository = SVNRepositoryFactory.create( SVNURL.parseURIEncoded( SVN_URL ) );
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(userName, passWord);
repository.setAuthenticationManager(authManager);
logEntries = repository.log(new String[]{""}, null, START_REVISION, HEAD_REVISION, true, true);
}catch (SVNException e) {
e.printStackTrace();
}
return logEntries;
}