mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 05:02:34 +00:00
Remove redundant casts, unnecessary object creation, and string ==
This commit is contained in:
1 parent
100784b51b
commit
a4cd13282a
57 files changed
+180
-156
No files matched your search
@@ -22,6 +22,7 @@ import forestry.api.genetics.IIndividual;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Objects;
|
||||
|
||||
public class AnalystPageDatabase extends ControlAnalystPage {
|
||||
ControlScrollableContent scroll;
|
||||
@@ -52,7 +53,7 @@ public class AnalystPageDatabase extends ControlAnalystPage {
|
||||
AnalystPageDatabase.this.getSpecies(system);
|
||||
for (final IAlleleSpecies species : AnalystPageDatabase.this.getSpecies(system)) {
|
||||
if (value != null) {
|
||||
if (value != "") {
|
||||
if (!Objects.equals(value, "")) {
|
||||
if (!species.getName().toLowerCase().contains(value.toLowerCase())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user