From aa2b769aacd968de9ace314a9219996d9ec7d097 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Sat, 3 May 2014 12:44:02 -0500 Subject: [PATCH] fix indentation --- .../org/apache/cassandra/locator/GoogleCloudSnitch.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java b/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java index 05fbea2ed5..b4d3b19931 100644 --- a/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java +++ b/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java @@ -53,15 +53,15 @@ public class GoogleCloudSnitch extends AbstractNetworkTopologySnitch public GoogleCloudSnitch() throws IOException, ConfigurationException { String response = gceApiCall(ZONE_NAME_QUERY_URL); - String[] splits = response.split("/"); - String az = splits[splits.length - 1]; + String[] splits = response.split("/"); + String az = splits[splits.length - 1]; // Split "us-central1-a" or "asia-east1-a" into "us-central1"/"a" and "asia-east1"/"a". splits = az.split("-"); gceZone = splits[splits.length - 1]; - int lastRegionIndex = az.lastIndexOf("-"); - gceRegion = az.substring(0, lastRegionIndex); + int lastRegionIndex = az.lastIndexOf("-"); + gceRegion = az.substring(0, lastRegionIndex); String datacenterSuffix = (new SnitchProperties()).get("dc_suffix", ""); gceRegion = gceRegion.concat(datacenterSuffix);