Diff
stringlengths
10
2k
Message
stringlengths
28
159
import org.apache.accumulo.core.client.AccumuloSecurityException; } catch (RuntimeException e) { if (e.getCause() instanceof AccumuloSecurityException) { log.debug("BatchScan " + tableName + " failed, permission error"); } else { throw e; }
Reorder the modifiers to comply with the Java Language Specification.
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.accumulo.core.tabletserver.thrift; import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; public enum ScanState implements org.apache.thrift.TEnum { IDLE(0), RUNNI...
Return empty string instead.
import org.apache.accumulo.core.security.tokens.PasswordToken; import org.apache.accumulo.core.security.tokens.SecurityToken;
Replace all tab characters in this file by sequences of white-spaces.
package cloudtrace.instrument; import java.util.Random; /** * Sampler that returns true every N calls. * */ public class CountSampler implements Sampler { final static Random random = new Random(); final long frequency; long count = random.nextLong(); public CountSampler(long frequency) { this.frequen...
Return empty string instead.
* The Hadoop configuration object * if true, enable usage of the IsolatedScanner. Otherwise, disable. * @param conf * The Hadoop configuration object * if true, enable usage of the ClientSideInteratorScanner. Otherwise, disable.
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.client.AccumuloSecurityException; public void setAccumuloConfigs(Job job) throws AccumuloSecurityException { AccumuloInputFormat.setConnectorInfo(job, principal, getToken()); AccumuloOutputFormat.setConnectorInfo(job, principal, getToken());
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(FlushTablets.class); String logger; public FlushTablets(String logger) { this.logger = logger; } @Override public long isReady(long tid, Master environment) throws Exception { return 0; }...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
private final int maxCount = 10; private Range range; private Collection<ByteSequence> columnFamilies; private boolean inclusive; this.range = seekRange; this.columnFamilies = columnFamilies; this.inclusive = inclusive; if (range.getStartKey() != null) while (hasTop() && range.beforeSta...
Make this final field static too.
package org.apache.accumulo.core.util.shell.commands; import java.io.File; import org.apache.accumulo.core.util.shell.Shell; import org.apache.accumulo.core.util.shell.Shell.Command; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; public class ...
Return empty string instead.
import java.util.Collection; public class Properties implements Destroyable, Map<String,char[]> { private boolean destroyed = false; private HashMap<String,char[]> map = new HashMap<String,char[]>(); private void checkDestroyed() { if (destroyed) throw new IllegalStateException(); ...
Remove this hard-coded password.
package org.apache.accumulo.examples.wikisearch.ingest; import org.apache.accumulo.core.client.BatchWriter; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.MutationsRejectedException; import org.apache.accumulo.core.client.Scanner; import org.apache.accumulo.core.client.mock.Moc...
Rename "table" which hides the field declared at line 107.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * override the time values in the input files, and use the...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
package org.apache.accumulo.examples.simple.dirlist; import org.apache.accumulo.examples.simple.filedata.FileDataQuery;
Rename "table" which hides the field declared at line 107.
ToolRunner.run(CachedConfiguration.getInstance(), new TeraSortIngest(), args);
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Remove this call to "exit" or ensure it is really required.
if (name.equals("int") || name.equals("I")) primitives += SizeConstants.SIZEOF_INT; else if (name.equals("long") || name.equals("J")) primitives += SizeConstants.SIZEOF_LONG; else if (name.equals("boolean") || name.equals("Z")) pr...
Remove this call to "exit" or ensure it is really required.
package org.apache.accumulo.server.util; import org.apache.accumulo.core.util.Daemon; import org.apache.accumulo.core.util.UtilWaitThread; import org.apache.log4j.Logger; public class Halt { static private Logger log = Logger.getLogger(Halt.class); public static void halt(final String msg) { hal...
Return empty string instead.
shellState.getReader().println(entry.getKey() + "=" + LocalityGroupUtil.encodeColumnFamilies(entry.getValue()));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
Assert.assertEquals(info.extent, info2.extent);
Reduce this switch case number of lines from 12 to at most 5, for example by extracting code into methods.
if (tls == null) return;
Extract the assignment out of this expression.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
@Test(timeout = 4 * 60 * 1000)
Either log or rethrow this exception.
/** * Deletes the ranges specified by {@link #setRanges}. * * @throws MutationsRejectedException * this can be thrown when deletion mutations fail * @throws TableNotFoundException * when the table does not exist */ /** * Releases any resources. */
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = connector.createBatchWriter(table, new BatchWriterConfig());
Remove this unused method parameter "e".
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
1 duplicated blocks of code must be removed.
import org.apache.log4j.Logger; import sample.Results; private static final String XSL = "/accumulo-sample/style.xsl"; u = new URL("http://" + System.getProperty("jboss.bind.address") + ":" + System.getProperty("jboss.web.http.port") + XSL);
Either log or rethrow this exception.
long startTime = System.currentTimeMillis(); if (System.currentTimeMillis() - startTime > 2 * timeout) throw new RuntimeException("Failed to connect to zookeeper (" + host + ") within 2x zookeeper timeout period " + timeout);
Define and throw a dedicated exception instead of using a generic one.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apach...
Either log or rethrow this exception.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
boolean cloudTableUserExists = conn.securityOperations().listLocalUsers().contains(WalkingSecurity.get(state).getTabUserName());
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * See {@link #ColumnVisibility(byte[])} * * @param expression * @param encoding * uses this encoding to convert the expression to a byte array * @throws UnsupportedEncodingException */ public ColumnVisibility(String expression, String encoding) throws UnsupportedEncodingException ...
Move this constructor to comply with Java Code Conventions.
InputStream fis = null; int numRead = 0; try { fis = new FileInputStream(filename); numRead = fis.read(buf); while (numRead >= 0) { if (numRead > 0) { md5digest.update(buf, 0, numRead); } numRead = fis.read(buf); } } finally { if (fis != null) { ...
Replace all tab characters in this file by sequences of white-spaces.
private Option verboseOption; @Override public String description() { return "displays information about this program"; } @Override public int execute(String fullCommand, CommandLine cl, Shell shellState) throws IOException { shellState.printInfo(); if (cl.hasOption(verboseOption.getOpt())...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
pass = passw.getBytes(); authFailed = !connector.securityOperations().authenticateUser(connector.whoami(), pwd.getBytes());
Remove this unused private "appendProp" method.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
* the relevant tableInfo for the security violation * the relevant tableInfo for the security violation @Override if (!StringUtils.isEmpty(tableInfo)) {
Immediately return this expression instead of assigning it to the temporary variable "result".
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception { final String tableName = OptUtil.getTableOpt(cl, shellState); final String name = cl.getOptionValue(nameOpt.getOpt()); final EnumSet<IteratorScope> scopes = EnumSet.noneOf(IteratorScope.class); ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.core.iterators; import java.io.IOException; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.file.map.MyMapFile; import org.apache.accumulo.core.file.map.MyMapFi...
Return empty string instead.
private final Object closeLock = new Object();
Move this variable to comply with Java Code Conventions.
+ this.username + ", password = [hidden]. Check values in ejb-jar.xml"); log.info("Connecting to [instanceName = " + this.instanceName + ", zookeepers = " + this.zooKeepers + ", username = " + this.username + "].");
Remove this unused method parameter "tservers".
switch (ae.getSecurityErrorCode()) {
Do not forget to remove this deprecated code someday.
if (end == null) end = new Date(System.currentTimeMillis()); if (socket != null && socket.isConnected()) socket.getOutputStream().write(out.getBytes()); else System.err.println("Unable to send data to transport"); if (socket != null && socket.isConne...
Remove this call to "exit" or ensure it is really required.
if (rand.nextInt(20) == 0) range.set(0, null); if (rand.nextInt(20) == 0) range.set(1, null);
Remove this call to "exit" or ensure it is really required.
package org.apache.accumulo.examples.wikisearch.util;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.util.NamingThreadFactory;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
log.info("starting at " + start + " for user " + opts.principal);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
cfg.setSiteConfig(siteConfig); cfg.useMiniDFS(true); @Test(timeout=100*1000) @Test(timeout=120*1000) UtilWaitThread.sleep(1000); // don't need the regular tablet server cluster.killProcess(ServerType.TABLET_SERVER, cluster.getProcesses().get(ServerType.TABLET_SERVER).iterator().next()); Util...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
@Deprecated
Return empty string instead.
@Deprecated
Return empty string instead.
Connector conn = new ZooKeeperInstance(accumulo.getInstanceName(), accumulo.getZookeepers()).getConnector("root", "superSecret"); conn.securityOperations().createUser("user1", "pass1".getBytes()); Connector uconn = new ZooKeeperInstance(accumulo.getInstanceName(), accumulo.getZookeepers()).getConnector("use...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.examples.simple.mapreduce.bulk;
Rename "table" which hides the field declared at line 107.
try { bs.setRanges(Collections.singleton(Constants.NON_ROOT_METADATA_KEYSPACE)); bs.fetchColumnFamily(Constants.METADATA_DATAFILE_COLUMN_FAMILY); IteratorSetting cfg = new IteratorSetting(40, "grep", GrepIterator.class); GrepIterator.setTerm(cfg, "../" + tableId + "/"); bs....
Move the "print" string literal on the left side of this string comparison.
@Override public void visit(State state, Properties props) throws Exception { BatchWriter bw = state.getMultiTableBatchWriter().getBatchWriter(state.getString("seqTableName")); state.set("numWrites", state.getInteger("numWrites") + 1); Integer totalWrites = state.getInteger("totalWrites") +...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (currentTerm == null) return; if (!(currentTerm.iter.hasTop()) || ((currentTerm.term != null) && (currentTerm.term.compareTo(currentTerm.iter.getTopKey().getColumnFamily()) != 0))) currentTerm = null; if (currentTerm != null) sorted.add(currentTerm); if (currentTerm == null) ...
Remove this call to "exit" or ensure it is really required.
public class MergeMetaIT extends SimpleMacIT {
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
FileInputStream fis = new FileInputStream(sitePath); scaleProps.load(fis); fis.close(); fis = new FileInputStream(testPath); testProps.load(fis);
Remove this unused method parameter "tservers".
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.iterators.user.SummingCombiner} with * {@link org.apache.accumulo.core.iterators.LongCombiner.Type#FIXEDLEN}
Do not forget to remove this deprecated code someday.
for (String entry : iterator.next().logSet) { String parts[] = entry.split("/", 2); String filename = parts[1];
Move the array designator from the variable to the type.
* This is a test to ensure the string literal in {@link ConnectorImpl#ConnectorImpl(Instance, Credentials)} is kept up-to-date if we move the
Immediately return this expression instead of assigning it to the temporary variable "onlineTabletsForTable".
private Mutation parent; public ColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val, Mutation m) { this.parent = m; // @Deprecated use org.apache.accumulo.data.Mutation#setSystemTimestamp(long); parent.setSystemTimestamp(v); if (hasTimestamp) return ...
This block of commented-out lines of code should be removed.
package org.apache.accumulo.server.master.state; import org.apache.accumulo.server.master.state.DistributedStoreException; public class IllegalDSException extends DistributedStoreException { public IllegalDSException(String why) { super(why); } private static final long serialVersionUID = 1L; }
Move this variable to comply with Java Code Conventions.
} private void addOptions(StringBuilder sb, StatType selectedStatType) { for (StatType st : StatType.values()) { sb.append("<option").append(st.equals(selectedStatType) ? " selected='true'>" : ">").append(st.getDescription()).append("</option>"); } } private void doScript(StringBuilder sb, A...
Remove this unused method parameter "tservers".
import java.io.IOException; import org.apache.accumulo.core.util.CachedConfiguration; import org.apache.hadoop.fs.FileSystem; acu = new MockAccumulo(getDefaultFileSystem()); static FileSystem getDefaultFileSystem() { try { return FileSystem.get(CachedConfiguration.getInstance()); } catch (IOExceptio...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public <T extends Mutation> void binMutations(List<T> mutations, Map<String,TabletServerMutations<T>> binnedMutations, List<T> failures, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException { TabletServerMutations<T> tsm = new TabletServerMutations<T>(); ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.examples.simple.filedata; import org.apache.accumulo.examples.simple.filedata.KeyUtil;
Rename "table" which hides the field declared at line 107.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.fate.Repo;
Remove this call to "exit" or ensure it is really required.
shellState.getReader().println("Not deleting unbounded range. Specify both ends, or use --force");
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* A SortedKeyValueIterator that combines the Values for different versions (timestamps) of a Key into a single Value. Combiner will replace one or more * versions of a Key and their Values with the most recent Key and a Value which is the result of the reduce method. * This reduce method will be passed the most rece...
Return empty string instead.
import org.apache.accumulo.server.fs.VolumeManager; VolumeManager fs; String work = new String(data); String[] parts = work.split("\\|"); String src = parts[0]; String dest = parts[1]; String sortId = new Path(src).getName(); log.debug("Sorting " + src + " to " + dest + " using sor...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.Constants; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.TableNotFoundException; import org.apache.accumulo.core.ut...
Return empty string instead.
package org.apache.accumulo.fate.zookeeper; import org.apache.accumulo.fate.util.UtilWaitThread; public ZooSessionInfo(ZooKeeper zooKeeper, ZooWatcher watcher) { private static class ZooWatcher implements Watcher { ZooWatcher watcher = new ZooWatcher();
Remove this call to "exit" or ensure it is really required.
* Autogenerated by Thrift Compiler (0.9.0) import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; // check for sub-struct validity if (last != null) { last.validate(); } if (lastLog != null) { lastLog.validate(); ...
Rename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.
public ScannerTranslator(final Scanner scanner) { public void init(final SortedKeyValueIterator<Key,Value> source, final Map<String,String> options, final IteratorEnvironment env) throws IOException { public void seek(final Range range, final Collection<ByteSequence> columnFamilies, final boolean inclusive)...
Move this constructor to comply with Java Code Conventions.
public FileCFSkippingIterator(FileSKVIterator src) { super(src); } protected FileCFSkippingIterator(SortedKeyValueIterator<Key,Value> src, Set<ByteSequence> colFamSet, boolean inclusive) { super(src, colFamSet, inclusive); } @Override public SortedKeyValueIterator<Key,Value> deepCopy(Iterat...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.client.security.SecurityErrorCode;
Do not forget to remove this deprecated code someday.
@Deprecated
Remove this unused method parameter "ex".
@Override public int execute(String fullCommand, CommandLine cl, Shell shellState) throws IOException { for (String p : SystemPermission.printableValues()) shellState.getReader().printString(p + "\n"); return 0; } @Override public String description() { return "displays a list of valid sy...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.user.SummingArrayCombiner with SummingArrayCombiner.Type.VARNUM */
Either log or rethrow this exception.
import org.apache.accumulo.trace.instrument.TraceRunnable; import org.apache.accumulo.trace.instrument.Tracer;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = connector.createBatchWriter(Constants.METADATA_TABLE_NAME, new BatchWriterConfig());
Remove this unused method parameter "e".
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; import org.apache.accumulo.core.security.tokens.UserPassToken; InstanceTokenWrapper auth = getAuthInfo(); public InstanceTokenWrapper getAuthInfo() { return new InstanceTokenWrapper(new UserPassToken(username, ByteBuffer.wrap(password.get...
Immediately return this expression instead of assigning it to the temporary variable "ret".
bs.setTimeout(1, TimeUnit.SECONDS);
Move this constructor to comply with Java Code Conventions.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.hadoop.net.SocketInputStream; import org.apache.hadoop.net.SocketOutputStream; InputStream input = new BufferedInputStream(new SocketInputStream(socket, timeoutMillis), 1024 * 10); OutputStream output = new BufferedOutputStream(new SocketOutputStream(socket, timeoutMillis), 1024 * 10);
Remove this call to "exit" or ensure it is really required.
String import_ = "file://" + folder.newFolder().toString(); assertEquals(2, output.get().split("\n").length); exec("getsplits -t !!ROOT", true); assertEquals(1, output.get().split("\n").length); assertEquals(1, output.get().split("\n").length);
Reduce this switch case number of lines from 12 to at most 5, for example by extracting code into methods.
* Initiates taking a table offline, but does not wait for action to complete * the table to take offline * @param wait * if true, then will not return until table is offline * @throws AccumuloException * when there is a general accumulo error * @throws AccumuloSecurityEx...
Cast one of the operands of this multiplication operation to a "long".
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.