1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

add pmd for codecheck

add generic to the smackx bookmark

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11023 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Michael Will 2009-06-04 09:56:20 +00:00 committed by michael.will
parent f943d27a3b
commit 634afb2cad
6 changed files with 40 additions and 23 deletions

View file

@ -62,15 +62,15 @@ import java.util.List;
*/
public class Bookmarks implements PrivateData {
private List bookmarkedURLS;
private List bookmarkedConferences;
private List<BookmarkedURL> bookmarkedURLS;
private List<BookmarkedConference> bookmarkedConferences;
/**
* Required Empty Constructor to use Bookmarks.
*/
public Bookmarks() {
bookmarkedURLS = new ArrayList();
bookmarkedConferences = new ArrayList();
bookmarkedURLS = new ArrayList<BookmarkedURL>();
bookmarkedConferences = new ArrayList<BookmarkedConference>();
}
/**
@ -128,7 +128,7 @@ public class Bookmarks implements PrivateData {
*
* @return a collection of all Bookmarked URLs.
*/
public List getBookmarkedURLS() {
public List<BookmarkedURL> getBookmarkedURLS() {
return bookmarkedURLS;
}
@ -137,7 +137,7 @@ public class Bookmarks implements PrivateData {
*
* @return a collection of all Bookmarked Conferences.
*/
public List getBookmarkedConferences() {
public List<BookmarkedConference> getBookmarkedConferences() {
return bookmarkedConferences;
}
@ -169,9 +169,9 @@ public class Bookmarks implements PrivateData {
StringBuilder buf = new StringBuilder();
buf.append("<storage xmlns=\"storage:bookmarks\">");
final Iterator urls = getBookmarkedURLS().iterator();
final Iterator<BookmarkedURL> urls = getBookmarkedURLS().iterator();
while (urls.hasNext()) {
BookmarkedURL urlStorage = (BookmarkedURL) urls.next();
BookmarkedURL urlStorage = urls.next();
if(urlStorage.isShared()) {
continue;
}
@ -184,9 +184,9 @@ public class Bookmarks implements PrivateData {
}
// Add Conference additions
final Iterator conferences = getBookmarkedConferences().iterator();
final Iterator<BookmarkedConference> conferences = getBookmarkedConferences().iterator();
while (conferences.hasNext()) {
BookmarkedConference conference = (BookmarkedConference) conferences.next();
BookmarkedConference conference = conferences.next();
if(conference.isShared()) {
continue;
}