fix boxing confusion

This commit is contained in:
Dave Brosius 2014-09-06 14:39:54 -04:00
parent ad3056199c
commit 5cc7a11ab8
5 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public class Memtable
private static final Logger logger = LoggerFactory.getLogger(Memtable.class);
static final MemtablePool MEMORY_POOL = DatabaseDescriptor.getMemtableAllocatorPool();
private static final int ROW_OVERHEAD_HEAP_SIZE = estimateRowOverhead(Integer.valueOf(System.getProperty("cassandra.memtable_row_overhead_computation_step", "100000")));
private static final int ROW_OVERHEAD_HEAP_SIZE = estimateRowOverhead(Integer.parseInt(System.getProperty("cassandra.memtable_row_overhead_computation_step", "100000")));
private final MemtableAllocator allocator;
private final AtomicLong liveDataSize = new AtomicLong(0);

View File

@ -47,7 +47,7 @@ import org.apache.cassandra.utils.FBUtilities;
public class RangeStreamer
{
private static final Logger logger = LoggerFactory.getLogger(RangeStreamer.class);
public static final boolean useStrictConsistency = Boolean.valueOf(System.getProperty("cassandra.consistent.rangemovement","true"));
public static final boolean useStrictConsistency = Boolean.parseBoolean(System.getProperty("cassandra.consistent.rangemovement","true"));
private final Collection<Token> tokens;
private final TokenMetadata metadata;
private final InetAddress address;

View File

@ -525,7 +525,7 @@ public class CqlConfigHelper
String setting = conf.get(parameter);
if (setting == null)
return Optional.absent();
return Optional.of(Integer.parseInt(setting));
return Optional.of(Integer.valueOf(setting));
}
private static Optional<Boolean> getBooleanSetting(String parameter, Configuration conf)
@ -533,7 +533,7 @@ public class CqlConfigHelper
String setting = conf.get(parameter);
if (setting == null)
return Optional.absent();
return Optional.of(Boolean.parseBoolean(setting));
return Optional.of(Boolean.valueOf(setting));
}
private static Optional<String> getStringSetting(String parameter, Configuration conf)

View File

@ -201,7 +201,7 @@ public class StandaloneSplitter
opts.sizeInMB = DEFAULT_SSTABLE_SIZE;
if (cmd.hasOption(SIZE_OPTION))
opts.sizeInMB = Integer.valueOf(cmd.getOptionValue(SIZE_OPTION));
opts.sizeInMB = Integer.parseInt(cmd.getOptionValue(SIZE_OPTION));
return opts;
}

View File

@ -48,7 +48,7 @@ public final class OptionAnyProbabilities extends OptionMulti
String[] args = param.split("=");
if (args.length == 2 && args[1].length() > 0 && args[0].length() > 0)
{
if (options.put(args[0], Double.parseDouble(args[1])) != null)
if (options.put(args[0], Double.valueOf(args[1])) != null)
throw new IllegalArgumentException(args[0] + " set twice");
return true;
}