Skip to content

Commit e7f706d

Browse files
author
Lloyd Watkin
committed
Use isEmpty()
1 parent 0129276 commit e7f706d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/ItemDelete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private boolean itemIdProvided() {
219219
String id = request.getElement().element("pubsub").element("retract")
220220
.element("item").attributeValue("id");
221221

222-
if ((id != null) && !id.equals("")) {
222+
if ((id != null) && !id.isEmpty()) {
223223
if (true == GlobalItemIDImpl.isGlobalId(id)) {
224224
itemId = GlobalItemIDImpl.fromBuddycloudString(id);
225225
} else {

0 commit comments

Comments
 (0)