mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
SMACK-363 Applied code cleanup patches for many generics related issues.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13325 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
6dc64671e2
commit
e08c8afe44
109 changed files with 577 additions and 605 deletions
|
@ -122,9 +122,9 @@ class SimpleUserSearch extends IQ {
|
|||
fields.add(field);
|
||||
|
||||
boolean exists = false;
|
||||
Iterator cols = data.getColumns();
|
||||
Iterator<ReportedData.Column> cols = data.getColumns();
|
||||
while (cols.hasNext()) {
|
||||
ReportedData.Column column = (ReportedData.Column) cols.next();
|
||||
ReportedData.Column column = cols.next();
|
||||
if (column.getVariable().equals(name)) {
|
||||
exists = true;
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class UserSearchManager {
|
|||
* @return a Collection of search services found on the server.
|
||||
* @throws XMPPException thrown if a server error has occurred.
|
||||
*/
|
||||
public Collection getSearchServices() throws XMPPException {
|
||||
public Collection<String> getSearchServices() throws XMPPException {
|
||||
final List<String> searchServices = new ArrayList<String>();
|
||||
ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(con);
|
||||
DiscoverItems items = discoManager.discoverItems(con.getServiceName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue