Skip to content

Skill To Skillentry

Featured Replies

So, to be honest, i'm not good at java, maybe some experienced eye could catch and error(or should we call BIG BIG BIGx9 mistake)

The problem basically, i'm adapting code and i get error
error: incompatible types: Skill cannot be converted to SkillEntry

and the line in which i'm getting ( error arrow stands at get(0) )

          SkillEntry skill = !augm.getSkills().isEmpty() ? (SkillEntry)augm.getSkills().get(0) : !augm.getTriggerList().isEmpty() ? ((TriggerInfo)augm.getTriggerList().get(0)).getSkill() : null;

Maybe anyone know how to get SkillEntry and not skill ( don't know what we'r checking with this line )..
 

Collection<OptionDataTemplate> augmentations = OptionDataHolder.getInstance().getUniqueOptions(getFilter(_filter));
......
 for (OptionDataTemplate augm : augmentations)

A bit more of code

Edited by Pleyne

  • Author

I'm stupid.
Fixed by myself, lol what a stupid person i declare SkillEntry skill, when it should be Skill skill...

Guest
This topic is now closed to further replies.

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.