Source:
<code>private BigtableOptions( String instanceAdminHost, String tableAdminHost, String dataHost, int port, String projectId, String instanceId, String userAgent, String zoneId, String clusterId, boolean usePlaintextNegotiation, int channelCount, BulkOptions bulkOptions, CallOptionsConfig callOptionsConfig, CredentialOptions credentialOptions, RetryOptions retryOptions) { Preconditions.checkArgument(channelCount > 0, "Channel count has to be at least 1."); Preconditions.checkArgument((Strings.isNullOrEmpty(clusterId)) == (Strings.isNullOrEmpty(zoneId)), "clusterId and zoneId must be specified as a pair."); this.tableAdminHost = Preconditions.checkNotNull(tableAdminHost); this.instanceAdminHost = Preconditions.checkNotNull(instanceAdminHost); this.dataHost = Preconditions.checkNotNull(dataHost); this.port = port; this.projectId = projectId; this.instanceId = instanceId; this.credentialOptions = credentialOptions; this.userAgent = userAgent; this.zoneId = zoneId; this.clusterId = clusterId; this.retryOptions = retryOptions; this.dataChannelCount = channelCount; this.bulkOptions = bulkOptions; this.usePlaintextNegotiation = usePlaintextNegotiation; this.callOptionsConfig = callOptionsConfig; if (!Strings.isNullOrEmpty(projectId) && !Strings.isNullOrEmpty(instanceId)) { this.instanceName = new BigtableInstanceName(projectId, instanceId); if (!Strings.isNullOrEmpty(clusterId)) { this.clusterName = instanceName.toClusterName(clusterId); } else { this.clusterName = null; } } else { this.instanceName = null; <START> this.clusterName = null; <END> } LOG.debug("Connection Configuration: projectId: %s, instanceId: %s, data host %s, " + "table admin host %s, cluster admin host %s.", projectId, instanceId, dataHost, tableAdminHost, instanceAdminHost); if (!Strings.isNullOrEmpty(zoneId) || !Strings.isNullOrEmpty(clusterId)) { LOG.debug("Using legacy connection configuration: zoneId: %s, clusterId: %s.", zoneId, clusterId); } }</code><technical_language>nit: explicitly set/default null this.instanceName = null; this.clusterName = null; if (...) this.instanceName = ... if (...) this.clusterName = ..</technical_language>

Target:
private BigtableOptions( String instanceAdminHost, String tableAdminHost, String dataHost, int port, String projectId, String instanceId, String userAgent, String zoneId, String clusterId, boolean usePlaintextNegotiation, int channelCount, BulkOptions bulkOptions, CallOptionsConfig callOptionsConfig, CredentialOptions credentialOptions, RetryOptions retryOptions) { Preconditions.checkArgument(channelCount > 0, "Channel count has to be at least 1."); Preconditions.checkArgument((Strings.isNullOrEmpty(clusterId)) == (Strings.isNullOrEmpty(zoneId)), "clusterId and zoneId must be specified as a pair."); this.tableAdminHost = Preconditions.checkNotNull(tableAdminHost); this.instanceAdminHost = Preconditions.checkNotNull(instanceAdminHost); this.dataHost = Preconditions.checkNotNull(dataHost); this.port = port; this.projectId = projectId; this.instanceId = instanceId; this.credentialOptions = credentialOptions; this.userAgent = userAgent; this.zoneId = zoneId; this.clusterId = clusterId; this.retryOptions = retryOptions; this.dataChannelCount = channelCount; this.bulkOptions = bulkOptions; this.usePlaintextNegotiation = usePlaintextNegotiation; this.callOptionsConfig = callOptionsConfig; if (!Strings.isNullOrEmpty(projectId) && !Strings.isNullOrEmpty(instanceId)) { this.instanceName = new BigtableInstanceName(projectId, instanceId); } else { this.instanceName = null; } LOG.debug("Connection Configuration: projectId: %s, instanceId: %s, data host %s, " + "table admin host %s, cluster admin host %s.", projectId, instanceId, dataHost, tableAdminHost, instanceAdminHost); if (!Strings.isNullOrEmpty(zoneId) || !Strings.isNullOrEmpty(clusterId)) { LOG.debug("Using legacy connection configuration: zoneId: %s, clusterId: %s.", zoneId, clusterId); } }