Skip to content

Commit

Permalink
Remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Apr 15, 2018
1 parent e893681 commit 40397e1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 71 deletions.
17 changes: 1 addition & 16 deletions jxmpp-core/src/main/java/org/jxmpp/util/XmppStringUtils.java
@@ -1,6 +1,6 @@
/**
*
* Copyright © 2014-2016 Florian Schmaus
* Copyright © 2014-2018 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -95,21 +95,6 @@ public static String parseResource(String jid) {
}
}

/**
* Returns the JID with any resource information removed. For example, for
* the address "matt@jivesoftware.com/Smack", "matt@jivesoftware.com" would
* be returned.
*
* @param jid
* the XMPP JID.
* @return the bare XMPP JID without resource information.
* @deprecated use {@link #parseBareJid(String)} instead
*/
@Deprecated
public static String parseBareAddress(String jid) {
return parseBareJid(jid);
}

/**
* Returns the JID with any resource information removed. For example, for
* the address "matt@jivesoftware.com/Smack", "matt@jivesoftware.com" would
Expand Down
39 changes: 0 additions & 39 deletions jxmpp-jid/src/main/java/org/jxmpp/jid/impl/JidCreate.java
Expand Up @@ -844,19 +844,6 @@ public static EntityFullJid entityFullFrom(EntityBareJid bareJid, Resourcepart r
return new LocalDomainAndResourcepartJid(bareJid, resource);
}

/**
* Deprecated.
*
* @param jid the JID.
* @return a DopmainBareJid
* @throws XmppStringprepException if an error happens.
* @deprecated use {@link #domainBareFrom(String)} instead
*/
@Deprecated
public static DomainBareJid serverBareFrom(String jid) throws XmppStringprepException {
return domainBareFrom(jid);
}

/**
* Like {@link #domainBareFrom(CharSequence)} but does throw an unchecked {@link IllegalArgumentException} instead of a
* {@link XmppStringprepException}.
Expand Down Expand Up @@ -918,32 +905,6 @@ public static DomainBareJid domainBareFrom(Domainpart domainpart) {
return new DomainpartJid(domainpart);
}

/**
* Deprecated.
*
* @param jid the JID.
* @return a DomainFullJid
* @throws XmppStringprepException if an error happens.
* @deprecated use {@link #domainFullFrom(String)} instead
*/
@Deprecated
public static DomainFullJid serverFullFrom(String jid) throws XmppStringprepException {
return donmainFullFrom(jid);
}

/**
* Get a domain full JID from the given String.
*
* @param jid the JID.
* @return a DomainFullJid.
* @throws XmppStringprepException if an error happens.
* @deprecated use {@link #domainFullFrom(String)} instead.
*/
@Deprecated
public static DomainFullJid donmainFullFrom(String jid) throws XmppStringprepException {
return domainFullFrom(jid);
}

/**
* Like {@link #domainFullFrom(CharSequence)} but does throw an unchecked {@link IllegalArgumentException} instead of a
* {@link XmppStringprepException}.
Expand Down
10 changes: 0 additions & 10 deletions jxmpp-util-cache/src/main/java/org/jxmpp/util/cache/Cache.java
Expand Up @@ -27,16 +27,6 @@ public interface Cache<K, V> {
*/
V put(K key, V value);

/**
* Returns the value of the specified key, or {@code null}.
*
* @param key the key.
* @return the value found in the cache, or {@code null}.
* @deprecated Use {@link #lookup(Object)} instead.
*/
@Deprecated
V get(Object key);

/**
* Returns the value of the specified key, or {@code null}.
*
Expand Down
@@ -1,6 +1,6 @@
/**
*
* Copyright © 2014-2016 Florian Schmaus
* Copyright © 2014-2018 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -76,8 +76,6 @@ public V lookup(K key) {
return get(key);
}

@SuppressWarnings("deprecation")
@Deprecated
@Override
public V get(Object key) {
ExpireElement<V> v = cache.get(key);
Expand Down
@@ -1,6 +1,6 @@
/**
*
* Copyright 2003-2005 Jive Software, 2014-2016 Florian Schmaus
* Copyright 2003-2005 Jive Software, 2014-2018 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -88,8 +88,6 @@ public final V lookup(K key) {
return get(key);
}

@SuppressWarnings("deprecation")
@Deprecated
@Override
public final V get(Object key) {
V cacheObject;
Expand Down

0 comments on commit 40397e1

Please sign in to comment.