This is my ExamResult class
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ExamResult {
int class1;
int credit1;
int class2;
int credit2;
int class3;
int credit3;
int class4;
int credit4;
int class5;
int credit5;
int class6;
int credit6;
}
And this is my main class
CalculateService calculate = new CalculateService();
calculate.calculateSPA(examResult)); //I'm trying to do this
But I got this message. The code is runable this is a just warning.
Cannot access spa_calculation.ExamResult
spa_calculation.CalculateService
public float calculateSPA(@NotNull spa_calculation.ExamResult examResult)
Inferred annotations:
@org.jetbrains.annotations.NotNull
custom-tests.main
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…