Merge pull request #8 from truongdatnhan/eclipse

Removing unused comments
This commit is contained in:
truongdatnhan
2022-08-11 16:05:10 +07:00
committed by GitHub
3 changed files with 3 additions and 4 deletions

View File

@@ -7406,6 +7406,9 @@ public class Character extends AbstractCharacterObject {
ret.buddylist.loadFromDb(charid);
ret.storage = wserv.getAccountStorage(ret.accountid);
/* Double-check storage incase player is first time on server
* The storage won't exist so nothing to load
*/
if(ret.storage == null) {
wserv.loadAccountStorage(ret.accountid);
ret.storage = wserv.getAccountStorage(ret.accountid);

View File

@@ -318,9 +318,6 @@ public final class BBSOperationHandler extends AbstractPacketHandler {
}
client.sendPacket(GuildPackets.showThread(bIsThreadIdLocal ? threadid : threadRS.getInt("localthreadid"), threadRS, repliesRS));
}
/* repliesRS.close();
* Don't need because ResultSet will be closed
* when associated Statement close*/
}
} catch (SQLException se) {
log.error("Error displaying thread", se);

View File

@@ -359,7 +359,6 @@ public final class MTSHandler extends AbstractPacketHandler {
c.sendPacket(PacketCreator.MTSConfirmTransfer(i.getQuantity(), i.getPosition()));
c.sendPacket(PacketCreator.transferInventory(getTransfer(c.getPlayer().getId())));
}
// rs.close(); Closing statement will also close related resultset
}
} catch (SQLException e) {
log.error("MTS Transfer error", e);