Примеры ошибок, обнаруженных с помощью диагностики V6054
V6054. Classes should not be compared by their name.
Apache Solr
V6054 Classes should not be compared by their name. LukeRequestHandler.java 247
private static String getFieldFlags(IndexableField f) {
IndexOptions opts = (f == null) ? null : f.fieldType().indexOptions();
StringBuilder flags = new StringBuilder();
....
flags.append((f != null && f.getClass()
.getSimpleName()
.equals("LazyField")) // <=
? FieldFlag.LAZY.getAbbreviation(): '-');
....
return flags.toString();
}