Diff
stringlengths
10
2k
Message
stringlengths
28
159
@SuppressWarnings("all") public enum ConfigurationType implements org.apache.thrift.TEnum {
300 duplicated blocks of code must be removed.
Combiner.setColumns(is, Collections.singletonList(new IteratorSetting.Column("acf")));
Remove this unused method parameter "hasStart".
import org.apache.accumulo.server.zookeeper.TransactionWatcher.ZooArbitrator; if (new ColumnFQ(update).equals(Constants.METADATA_DIRECTORY_COLUMN)) { isSplitMutation = true;
Make the "log" logger private static final and rename it to comply with the format "LOG(?:GER)?".
import org.apache.accumulo.core.security.thrift.ThriftInstanceTokenWrapper; void send(ThriftInstanceTokenWrapper info, String serverName, MasterClientService.Iface client) throws TException, ThriftSecurityException;
Immediately return this expression instead of assigning it to the temporary variable "ret".
import java.util.Iterator; import java.util.Map.Entry; import java.util.TreeMap; import java.util.UUID; import org.apache.accumulo.core.conf.DefaultConfiguration; import org.apache.accumulo.core.conf.Property; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; @Parameter(names="--site-file...
Extract the assignment out of this expression.
instance = new MockInstance("fake");
1 duplicated blocks of code must be removed.
if (event.getType() == AbstractFileConfiguration.EVENT_RELOAD) needsReloading = true; if (null == envConfig) envConfig = new EnvironmentConfiguration(); if (null == sysConfig) sysConfig = new SystemConfiguration(); if (null == config || needsReloading) synchronized (lock) { ...
Remove this call to "exit" or ensure it is really required.
if (o instanceof Key) return this.equals((Key) o, PartialKey.ROW_COLFAM_COLQUAL_COLVIS_TIME_DEL); if (len == 0) return EMPTY_BYTES; if (!copyData && ba.length == len && off == 0) return ba; if (result != 0 || part.equals(PartialKey.ROW)) return result; if (result != 0 || part...
Remove this call to "exit" or ensure it is really required.
/* * 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.
return !SystemCredentials.get().getToken().getClass().getName().equals(credentials.getTokenClassName());
Move this constructor to comply with Java Code Conventions.
if (!shellState.getConnector().tableOperations().exists(tableName)) throw new TableNotFoundException(null, tableName, null); if (iterator == null) return 0; if (!iterator.getProperties().isEmpty() && !deleteAll) shellState.getConnector().tableOperations().attachIterator(tableName, iter...
Remove this call to "exit" or ensure it is really required.
result.add(new TServerInstance(AddressUtil.parseAddress(child), stat.getEphemeralOwner()));
Immediately return this expression instead of assigning it to the temporary variable "client".
import java.util.concurrent.atomic.AtomicBoolean; boolean test = false; if (initNode instanceof Test) { startTimer(initNode.toString()); test = true; } if (test) stopTimer(initNode.toString()); test = false; if (nextNode instanceof Test) { startTimer(nex...
Move this variable to comply with Java Code Conventions.
import java.util.concurrent.atomic.AtomicBoolean; boolean test = false; if (initNode instanceof Test) { startTimer(initNode.toString()); test = true; } if (test) stopTimer(initNode.toString()); test = false; if (nextNode instanceof Test) { startTimer(nex...
Move this variable to comply with Java Code Conventions.
import java.io.IOException; import java.util.Map; private boolean lossy = false; protected static final String LOSSY = "lossy"; private boolean lossy; * * @param lossy * Determines whether to error on failure to decode or ignore and move on VIterator(Iterator<Value> iter, Encoder<V...
Move this variable 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.
import java.util.Collections; List<String> children = cache.getChildren(path + "/" + candidate); if (children != null && children.size() > 0) { List<String> copy = new ArrayList<String>(children); Collections.sort(copy); byte[] data = cache.get(path + "/" + candidate + "/" + copy.get...
Use isEmpty() to check whether the collection is empty or not.
public void initialize(String instanceId); public boolean validAuthorizor(Authorizor auth); public void initializeSecurity(AuthInfo credentials, String rootuser, byte[] rootpass) throws AccumuloSecurityException; public boolean authenticateUser(String user, ByteBuffer password, String instanceId); public S...
Remove this unused method parameter "ex".
import java.util.EnumSet; t.attachIterator("table", new IteratorSetting(10, "someName", "foo.bar", EnumSet.of(IteratorScope.scan), empty)); t.removeIterator("table", "someName", EnumSet.of(IteratorScope.scan)); setting.setScopes(EnumSet.of(IteratorScope.majc)); setting.addOptions(Collections.singletonM...
Remove this unused method parameter "scopes".
if (i == parts - 1) end = (int) (LOTS - ctr); if (failures != null && failures.length > 0) throw new Exception("Failures " + Arrays.asList(failures) + " found importing files from " + dir);
Remove this call to "exit" or ensure it is really required.
super.seek(seekRange, columnFamilies, inclusive);
Remove the literal "false" boolean value.
protected ColumnUpdate newColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { return new ColumnUpdate(cf, cq, cv, hasts, ts, deleted, val); } return newColumnUpdate(cf, cq, cv, hasts, ts, deleted, val); return newColumnUpdate(cf, cq, cv, hasts, ts, delet...
Constructor has 8 parameters, which is greater than 7 authorized.
import org.apache.accumulo.server.master.state.TabletLocationState.BadLocationStateException; // something is wrong with the records in the !METADATA table, just skip over it log.error(ex, ex); return null; } public static TabletLocationState createTabletLocationState(Key k, Value v) throws IOE...
Either log or rethrow this exception.
package org.apache.accumulo.test.continuous;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
import org.apache.accumulo.core.security.thrift.Credential; private Credential credentials; public TabletServerBatchReader(Instance instance, Credential credentials, String table, Authorizations authorizations, int numQueryThreads) {
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]*$'.
private String lastReserved = ""; List<String> txdirs = new ArrayList<String>(zk.getChildren(path)); Collections.sort(txdirs); synchronized (this) { if (txdirs.size() > 0 && txdirs.get(txdirs.size() - 1).compareTo(lastReserved) <= 0) lastReserved = ""; } ...
Use "Integer.toString" instead.
package org.apache.accumulo.cloudtrace.instrument; * @see Trace.wrapAll
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public File getLogDir() {
Remove this unused method parameter "range".
import java.util.concurrent.atomic.AtomicInteger; final AtomicInteger tableCounter = new AtomicInteger(0); String makeTableName() { return "table" + tableCounter.getAndIncrement(); } @Test(timeout = 30 * 1000) String tableName = makeTableName(); connector.tableOperations().create(tableName); ...
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 u...
Replace all tab characters in this file by sequences of white-spaces.
Constants.METADATA_DIRECTORY_COLUMN.put(mut, new Value(dir.getBytes())); Constants.METADATA_PREV_ROW_COLUMN.fetch(bs);
Replace all tab characters in this file by sequences of white-spaces.
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.user.SummingCombiner with SummingCombiner.Type.VARNUM */
Either log or rethrow this exception.
package org.apache.accumulo.wikisearch.iterator;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.test.functional;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
package org.apache.accumulo.server.upgrade; import java.util.SortedMap; import org.apache.accumulo.core.client.impl.Tables; import org.apache.accumulo.core.util.CachedConfiguration; import org.apache.accumulo.server.ServerConstants; import org.apache.accumulo.server.client.HdfsZooInstance; import org.apache.hadoop.co...
Return empty string instead.
* @return A map of Aggregator Table Properties. * @see TableOperations#attachIterator(String, IteratorSetting)
1 duplicated blocks of code must be removed.
if (super.validateOptions(options) == false) return false; try { setEncoder(options); } catch (Exception e) { throw new IllegalArgumentException("bad encoder option", e); }
Remove the literal "false" boolean value.
public class KeyValueAndPeek implements org.apache.thrift.TBase<KeyValueAndPeek, KeyValueAndPeek._Fields>, java.io.Serializable, Cloneable { public KeyValue keyValue; // required public enum _Fields implements org.apache.thrift.TFieldIdEnum { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift....
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
final private ServerConfiguration serverConfiguration; public TraceServer(ServerConfiguration serverConfiguration, String hostname) throws Exception { this.serverConfiguration = serverConfiguration; AccumuloConfiguration conf = serverConfiguration.getConfiguration(); connector = serverConfiguration....
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (job != null) throw new RuntimeException("job has already run"); if ("-r".equals(args[i])) num_reduces = Integer.parseInt(args[++i]); else if ("-q".equals(args[i])) queueName = args[++i]; else if ("-p".equals(args[i])) poolName = args[++i]; else...
Remove this call to "exit" or ensure it is really required.
/* * 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 unused private "appendProp" method.
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
300 duplicated blocks of code must be removed.
@Deprecated @Deprecated
Remove this unused private "appendProp" method.
Connector connector = instance.getConnector(args[2], args[3].getBytes());
Remove this unused method parameter "ex".
shellState.getReader().flush();
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.Authorizations; Scanner scanner = conn.createScanner(tableName, Authorizations.EMPTY);
Remove this unused method parameter "range".
private static final String PASSWORD = PREFIX + ".password"; conf.set(PASSWORD, new String(Base64.encodeBase64(passwd))); * WARNING: The password is stored in the Configuration and shared with all MapReduce tasks; It is BASE64 encoded to provide a charset safe conversion to a * string, and is not intended t...
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
shellState.getReader().println(); shellState.getReader().println(
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.core.util.shell; public class ShellCommandException extends Exception { private static final long serialVersionUID = 1L; public enum ErrorCode { UNKNOWN_ERROR("Unknown error"), UNSUPPORTED_LANGUAGE("Programming language used is not supported"), UNRECOGNIZED_COMMAND("Command is no...
Return empty string instead.
import java.util.Collection; import org.apache.accumulo.core.data.ByteSequence; import org.apache.accumulo.core.data.Range; static private final String SEEK_SLEEP_TIME = "seekSleepTime"; private long sleepTime = 0; private long seekSleepTime = 0; public static void setSeekSleepTime(IteratorSetting is, long t) {...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (entry.getKey().startsWith(Property.TRACE_TOKEN_PROPERTY_PREFIX.getKey())) continue;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import org.apache.accumulo.core.util.AddressUtil;
2 duplicated blocks of code must be removed.
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.user.ColumnAgeOffFilter **/
Remove this unused private "match" method.
import org.apache.accumulo.proxy.thrift.PTablePermission; import org.apache.accumulo.proxy.thrift.PTimeType; tpc.proxy().securityOperations_createUser(userpass, "testuser", ByteBuffer.wrap("testpass".getBytes())); tpc.proxy().tableOperations_create(userpass, testTable, true, PTimeType.MILLIS); tpc.proxy()...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
} else if (event.getState() != KeeperState.Disconnected && event.getState() != KeeperState.Expired && (lock != null || asyncLock != null)) { } catch (KeeperException.ConnectionLossException ex) { // we can't look at the lock because we aren't connected, but our session is still good lo...
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.
package org.apache.accumulo.core.master; public class MasterNotRunningException extends Exception { /** * eclipse generated this ... */ private static final long serialVersionUID = 1L; private String message; public MasterNotRunningException(String msg) { message = msg; } public String getMessage() { ...
Return empty string instead.
if (p != null && shellState.getConnector().securityOperations().hasSystemPermission(user, p)) {
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
switch (ae.getSecurityErrorCode()) {
Do not forget to remove this deprecated code someday.
final long offset; private static Logger log = Logger.getLogger(TestTime.class); public TestTime(long millis) { super(new SystemTime()); offset = millis; } @Override public long currentTime() { log.debug("Using time offset of " + offset); return super.currentTime() + offset; }
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.Authorizations; BatchScanner bs = state.getConnector().createBatchScanner(indexTableName, Authorizations.EMPTY, 10); Scanner scanner = state.getConnector().createScanner(dataTableName, Authorizations.EMPTY);
Remove this unused method parameter "range".
if (o == this) { return true; } if (o != null && o.getClass().equals(this.getClass())) { return equalMutation((Mutation) o); } /** * Checks if this mutation equals another. This method may be removed in a * future API revision in favor of {@link #equals(Object)}. See ACCUMULO-1627 ...
Move this variable to comply with Java Code Conventions.
client.flush(Tracer.traceInfo(), SecurityConstants.getSystemCredentials(), lockString(lock), tableId, startRow == null ? null : ByteBuffer.wrap(startRow), endRow == null ? null : ByteBuffer.wrap(endRow)); client.splitTablet(Tracer.traceInfo(), SecurityConstants.getSystemCredentials(), extent...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
@Override public void visit(State state, Properties props) throws Exception {}
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
FILE_READ, FILE_WRITE, TABLET_LOAD
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
private Logger log; private Level level; private long t1; private long opid; private static AtomicLong nextOpid = new AtomicLong(); public OpTimer(Logger log, Level level) { this.log = log; this.level = level; } public OpTimer start(String msg) { opid = nextOpid.getAndIncrement(); ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
@Override public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> tableNames = (List<String>) state.get("tables"); String tableName = tableNames.g...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.hadoop.fs.Trash; private Trash trash; GarbageCollectWriteAheadLogs(Instance instance, FileSystem fs, boolean noTrash) throws IOException { if (!noTrash) this.trash = new Trash(fs, fs.getConf()); Path path = new Path(Constants.getWalDirectory(conf), filename); if ...
Remove this unused import 'org.apache.hadoop.fs.Trash'.
MASTER_BULK_TIMEOUT("master.bulk.timeout", "5m", PropertyType.TIMEDURATION, "The time to wait for a tablet server to process a bulk import request"), MASTER_MINTHREADS("master.server.threads.minimum", "20", PropertyType.COUNT, "The minimum number of threads to use to handle incoming requests."), TSERV_BULK_TIMEOU...
Replace all tab characters in this file by sequences of white-spaces.
package org.apache.accumulo.server.mini;
Return empty string instead.
tsStats.addAll(client.getTabletStats(Tracer.traceInfo(), SystemCredentials.get().toThrift(Monitor.getInstance()), tableId)); historical = client.getHistoricalStats(Tracer.traceInfo(), SystemCredentials.get().toThrift(Monitor.getInstance()));
Immediately return this expression instead of assigning it to the temporary variable "onlineTabletsForTable".
/* * 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.
* @return false if a row should be suppressed, otherwise true.
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.client.security.tokens.PasswordToken;
Move this constructor to comply with Java Code Conventions.
private static void putMarkerDeleteMutation(final String delete, final BatchWriter writer, final BatchWriter rootWriter) throws MutationsRejectedException { if (delete.startsWith(METADATA_TABLE_DIR)) { Mutation m = new Mutation(new Text(Constants.METADATA_DELETE_FLAG_FOR_METADATA_PREFIX + delete)); m....
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.util.format.BinaryFormatter; String tableName = OptUtil.getTableOpt(cl, shellState); BinaryFormatter.getlength(text.getLength()); return encode ? new String(Base64.encodeBase64(TextUtil.getBytes(text))) : BinaryFormatter.appendText(new StringBuilder(), text).toString();
Either log or rethrow this exception.
AccumuloOutputFormat.setConnectorInfo(job, opts.user, opts.getPassword());
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.Constants; if (name.startsWith(Constants.MAPFILE_EXTENSION + "_")) { if (extension.equals(Constants.MAPFILE_EXTENSION) || extension.equals(Constants.MAPFILE_EXTENSION + "_tmp")) { private static final HashSet<String> validExtensions = new HashSet<String>(Arrays.asList(Constants...
6 duplicated blocks of code must be removed.
static class BogusTime implements ProvidesTime { public long value = 0; public long currentTime() { return value; } @Test public void testMatchesTime() { BogusTime bt = new BogusTime(); BogusTime now = new BogusTime(); now.value = bt.value = System.currentTimeMillis(); BaseRe...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
assertTrue(rei.validateOptions(is.getOptions())); assertTrue(rei.validateOptions(is.getOptions())); assertTrue(rei.validateOptions(is.getOptions())); assertTrue(rei.validateOptions(is.getOptions()));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; import org.apache.accumulo.core.security.CredentialHelper; String principal; AuthenticationToken token; principal = WalkingSecurity.get(state).getTabUserName(); token = WalkingSecurity.get(state).getTabToken(); princip...
Immediately return this expression instead of assigning it to the temporary variable "connector".
/* * 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 ...
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]*$'.
package org.apache.accumulo.fate; import org.apache.accumulo.fate.zookeeper.IZooReaderWriter; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeExistsPolicy; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeMissingPolicy;
Remove this call to "exit" or ensure it is really required.
if (opts.columns != null) { for (ScanColumn col : opts.columns) { if (col.isSetColQualifier()) scanner.fetchColumn(ByteBufferUtil.toText(col.colFamily), ByteBufferUtil.toText(col.colQualifier)); else scanner.fetchColumnFamily(ByteBufferUtil.toText(c...
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.security.thrift.Credential; import org.apache.accumulo.core.security.thrift.tokens.PasswordToken; import org.apache.accumulo.core.security.thrift.tokens.SecurityToken; Credential auth; byte[] newPassw = new byte[r.nextInt(50) + 1]; for (int i =0; i < newPassw.length; i++) ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* Autogenerated by Thrift Compiler (0.9.0)
Rename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
300 duplicated blocks of code must be removed.
import org.apache.accumulo.core.metadata.MetadataTable;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
private static final long serialVersionUID = 1L; public IterationInterruptedException() { super(); } public IterationInterruptedException(String msg) { super(msg); }
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public ZooLock(String zookeepers, int timeInMillis, String scheme, byte[] auth, String path) { this(new ZooCache(zookeepers, timeInMillis), ZooReaderWriter.getInstance(zookeepers, timeInMillis, scheme, auth), path);
Move this constructor to comply with Java Code Conventions.
import org.apache.accumulo.core.client.security.SecurityErrorCode; import org.apache.accumulo.trace.instrument.Trace;
Do not forget to remove this deprecated code someday.
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException { final String user = cl.getOptionValue(userOpt.getOpt(), shellState.getConnector().whoami());
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
@Override public String getViolationDescription(short violationCode) { switch (violationCode) { case 1: return "Malformed column visibility"; case 2: return "User does not have authorization on column visibility"; return null; } @Override public List<Short> check(Envi...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (r != null) r.close(); if (r != null) r.close();
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader; Class<? extends T> clazz = AccumuloVFSClassLoader.loadClass(clazzName, base);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.