Jump to content
  • 0

Skill To Skillentry


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...