Commits

Anonymous committed cc8d160

fix String.format format specifier char for float value (d->f)

  • Participants
  • Parent commits edda8f0

Comments (0)

Files changed (1)

File src/java/org/apache/cassandra/db/compaction/AbstractCompactionStrategy.java

 import org.apache.cassandra.io.sstable.Component;
 import org.apache.cassandra.io.sstable.SSTableReader;
 
-import com.google.common.collect.Sets;
-
 /**
  * Pluggable compaction strategy determines how SSTables get merged.
  *
                 float thresholdValue = Float.parseFloat(threshold);
                 if (thresholdValue < 0)
                 {
-                    throw new ConfigurationException(String.format("%s must be greater than 0, but was %d", TOMBSTONE_THRESHOLD_OPTION, thresholdValue));
+                    throw new ConfigurationException(String.format("%s must be greater than 0, but was %f", TOMBSTONE_THRESHOLD_OPTION, thresholdValue));
                 }
             }
             catch (NumberFormatException e)