Main() { tools = new TreeMap<String, Tool>(); for (Tool tool : new Tool[] { new SpecificCompilerTool(), new InduceSchemaTool(), new JsonToBinaryFragmentTool(), new BinaryFragmentToJsonTool(), new DataFileReadTool(), new DataFileWriteTool(), new DataFileGetSchemaTool(), new GenAvroTool(), new RpcReceiveTool(), new RpcSendTool() }) { Tool prev = tools.put(tool.getName(), tool); if (prev != null) { throw new AssertionError( "Two tools with identical names: " + tool + ", " + prev); } maxLen = Math.max(tool.getName().length(), maxLen); } }
Main() { tools = new TreeMap<String, Tool>(); for (Tool tool : new Tool[] { new SpecificCompilerTool(), new InduceSchemaTool(), new JsonToBinaryFragmentTool(), new BinaryFragmentToJsonTool(), new DataFileReadTool(), new DataFileWriteTool(), new DataFileGetSchemaTool(), new IdlTool(), new RpcReceiveTool(), new RpcSendTool(), new FromTextTool(), new ToTextTool(), new TetherJob() }) { Tool prev = tools.put(tool.getName(), tool); if (prev != null) { throw new AssertionError( "Two tools with identical names: " + tool + ", " + prev); } maxLen = Math.max(tool.getName().length(), maxLen); } }