Skip to content

anyone knows how to solve this?

Featured Replies

Compiling 1213 source files to C:\Lineage 2\tools\workspace\l2j_server\L2J_Server\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.8
    [javac] C:\Lineage 2\tools\workspace\l2j_server\L2J_Server\java\net\sf\l2j\gameserver\model\L2Character.java:6949: warning: [deprecation] Integer(int) in Integer has been deprecated
    [javac]         _disabledSkills.remove(new Integer(skillId));

a) can you show us the moethod that contains line 6949 in  L2Character.java?

b) Try instead of _disabledSkills.remove(new Integer(skillId)); _disabledSkills.remove(skillId);

 

Why the heck the "new Integer(skillId)" ? Just directly skillId.

Why _disabledSkills need Object instead of just an int primitive?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.