presto-spi/src/main/java/io/prestosql/spi/WarningCode.java/WarningCode/equals
class WarningCode:    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        WarningCode that = (WarningCode) obj;
        return this.code == that.code && Objects.equals(this.name, that.name);
    }