Pleyne Posted March 31, 2015 Posted March 31, 2015 (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 March 31, 2015 by Pleyne
0 Pleyne Posted April 1, 2015 Author Posted April 1, 2015 I'm stupid.Fixed by myself, lol what a stupid person i declare SkillEntry skill, when it should be Skill skill...
Question
Pleyne
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)
and the line in which i'm getting ( error arrow stands at get(0) )
Maybe anyone know how to get SkillEntry and not skill ( don't know what we'r checking with this line )..
A bit more of code
1 answer to this question
Recommended Posts