Przykład
public
static
boolean
isTrue(){
return
true
;
}
public
static
void
main(
String
[] args){
if
( ZbędnaRówność_Przykład.isTrue() ==
true
){
System.out.println(
"true"
);
//$NON-NLS-1$
}
}
Rozwiązanie
Zmień wartość ( warunek == true|false ) na ( warunek ).
public
static
boolean
isTrue(){
return
true
;
}
public
static
void
main(
String
[] args){
if
( ZbędnaRówność_Rozwiązanie.isTrue() ){
System.out.println(
"true"
);
//$NON-NLS-1$
}
}