jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728434 - in /jmeter/trunk/src/core/org/apache/jmeter/report: config/ConfigurationUtils.java core/Converters.java core/Sample.java core/SampleMetadata.java
Date Thu, 04 Feb 2016 10:32:45 GMT
Author: sebb
Date: Thu Feb  4 10:32:45 2016
New Revision: 1728434

URL: http://svn.apache.org/viewvc?rev=1728434&view=rev
Log:
Tab police

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
    jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java
    jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java
    jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java?rev=1728434&r1=1728433&r2=1728434&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java Thu Feb
 4 10:32:45 2016
@@ -51,11 +51,11 @@ public class ConfigurationUtils {
      */
     public static <TProperty> TProperty convert(String value,
             Class<TProperty> clazz) throws ConfigurationException {
-	try {
-	    return Converters.convert(clazz, value);
-	} catch (ConvertException ex) {
-	    throw new ConfigurationException(String.format(
-	            NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()));
-	}
+        try {
+            return Converters.convert(clazz, value);
+        } catch (ConvertException ex) {
+            throw new ConfigurationException(String.format(
+                NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()));
+        }
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java?rev=1728434&r1=1728433&r2=1728434&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java Thu Feb  4 10:32:45
2016
@@ -31,97 +31,97 @@ public final class Converters {
 
     static {
 
-	StringConverter<Character> characterConverter = new StringConverter<Character>()
{
+        StringConverter<Character> characterConverter = new StringConverter<Character>()
{
 
-	    @Override
-	    public Character convert(String value) throws ConvertException {
-		try {
-		    return Character.valueOf(value.charAt(0));
-		} catch (NumberFormatException ex) {
-		    throw new ConvertException(value, Double.class.getName(),
-	                    ex);
-		}
-	    }
-	};
-	converters.put(Character.class, characterConverter);
-	converters.put(char.class, characterConverter);
-
-	StringConverter<Double> doubleConverter = new StringConverter<Double>() {
-
-	    @Override
-	    public Double convert(String value) throws ConvertException {
-		try {
-		    return Double.valueOf(value);
-		} catch (NumberFormatException ex) {
-		    throw new ConvertException(value, Double.class.getName(),
-	                    ex);
-		}
-	    }
-	};
-	converters.put(Double.class, doubleConverter);
-	converters.put(double.class, doubleConverter);
-
-	StringConverter<Float> floatConverter = new StringConverter<Float>() {
-
-	    @Override
-	    public Float convert(String value) throws ConvertException {
-		try {
-		    return Float.valueOf(value);
-		} catch (NumberFormatException ex) {
-		    throw new ConvertException(value, Double.class.getName(),
-	                    ex);
-		}
-	    }
-	};
-	converters.put(Float.class, floatConverter);
-	converters.put(float.class, floatConverter);
-
-	StringConverter<Integer> integerConverter = new StringConverter<Integer>() {
-
-	    @Override
-	    public Integer convert(String value) throws ConvertException {
-		try {
-		    return Integer.valueOf(value);
-		} catch (NumberFormatException ex) {
-		    throw new ConvertException(value, Double.class.getName(),
-	                    ex);
-		}
-	    }
-	};
-	converters.put(Integer.class, integerConverter);
-	converters.put(int.class, integerConverter);
-
-	StringConverter<Long> longConverter = new StringConverter<Long>() {
-
-	    @Override
-	    public Long convert(String value) throws ConvertException {
-		try {
-		    return Long.valueOf(value);
-		} catch (NumberFormatException ex) {
-		    throw new ConvertException(value, Long.class.getName(), ex);
-		}
-	    }
-	};
-	converters.put(Long.class, longConverter);
-	converters.put(long.class, longConverter);
-
-	StringConverter<Boolean> booleanConverter = new StringConverter<Boolean>() {
-
-	    @Override
-	    public Boolean convert(String value) {
-		return Boolean.valueOf(value);
-	    }
-	};
-	converters.put(Boolean.class, booleanConverter);
-	converters.put(boolean.class, booleanConverter);
-
-	converters.put(File.class, new StringConverter<File>() {
-
-	    @Override
-	    public File convert(String value) throws ConvertException {
-		return new File(value);
-	    }
-	});
+            @Override
+            public Character convert(String value) throws ConvertException {
+                try {
+                    return Character.valueOf(value.charAt(0));
+                } catch (NumberFormatException ex) {
+                    throw new ConvertException(value, Double.class.getName(),
+                            ex);
+                }
+            }
+        };
+        converters.put(Character.class, characterConverter);
+        converters.put(char.class, characterConverter);
+
+        StringConverter<Double> doubleConverter = new StringConverter<Double>()
{
+
+            @Override
+            public Double convert(String value) throws ConvertException {
+                try {
+                    return Double.valueOf(value);
+                } catch (NumberFormatException ex) {
+                    throw new ConvertException(value, Double.class.getName(),
+                            ex);
+                }
+            }
+        };
+        converters.put(Double.class, doubleConverter);
+        converters.put(double.class, doubleConverter);
+
+        StringConverter<Float> floatConverter = new StringConverter<Float>()
{
+
+            @Override
+            public Float convert(String value) throws ConvertException {
+                try {
+                    return Float.valueOf(value);
+                } catch (NumberFormatException ex) {
+                    throw new ConvertException(value, Double.class.getName(),
+                            ex);
+                }
+            }
+        };
+        converters.put(Float.class, floatConverter);
+        converters.put(float.class, floatConverter);
+
+        StringConverter<Integer> integerConverter = new StringConverter<Integer>()
{
+
+            @Override
+            public Integer convert(String value) throws ConvertException {
+                try {
+                    return Integer.valueOf(value);
+                } catch (NumberFormatException ex) {
+                    throw new ConvertException(value, Double.class.getName(),
+                            ex);
+                }
+            }
+        };
+        converters.put(Integer.class, integerConverter);
+        converters.put(int.class, integerConverter);
+
+        StringConverter<Long> longConverter = new StringConverter<Long>() {
+
+            @Override
+            public Long convert(String value) throws ConvertException {
+                try {
+                    return Long.valueOf(value);
+                } catch (NumberFormatException ex) {
+                    throw new ConvertException(value, Long.class.getName(), ex);
+                }
+            }
+        };
+        converters.put(Long.class, longConverter);
+        converters.put(long.class, longConverter);
+
+        StringConverter<Boolean> booleanConverter = new StringConverter<Boolean>()
{
+
+            @Override
+            public Boolean convert(String value) {
+                return Boolean.valueOf(value);
+            }
+        };
+        converters.put(Boolean.class, booleanConverter);
+        converters.put(boolean.class, booleanConverter);
+
+        converters.put(File.class, new StringConverter<File>() {
+
+            @Override
+            public File convert(String value) throws ConvertException {
+                return new File(value);
+            }
+        });
     }
 
     /**
@@ -136,7 +136,7 @@ public final class Converters {
     @SuppressWarnings("unchecked")
     public static <TDest> StringConverter<TDest> getConverter(
             Class<TDest> clazz) {
-	return (StringConverter<TDest>) converters.get(clazz);
+        return (StringConverter<TDest>) converters.get(clazz);
     }
 
     /**
@@ -154,19 +154,19 @@ public final class Converters {
      */
     public static <TDest> TDest convert(Class<TDest> clazz, String value)
             throws ConvertException {
-	TDest result;
-	if (clazz.isAssignableFrom(String.class)) {
-	    @SuppressWarnings("unchecked") // OK because checked above
-	    TDest temp = (TDest) value;
-	    result = temp;
-	} else {
-	    StringConverter<TDest> converter = Converters.getConverter(clazz);
-	    if (converter == null) {
-		throw new ConvertException(value, clazz.getName());
-	    }
-	    result = converter.convert(value);
-	}
-	return result;
+        TDest result;
+        if (clazz.isAssignableFrom(String.class)) {
+            @SuppressWarnings("unchecked") // OK because checked above
+            TDest temp = (TDest) value;
+            result = temp;
+        } else {
+            StringConverter<TDest> converter = Converters.getConverter(clazz);
+            if (converter == null) {
+                throw new ConvertException(value, clazz.getName());
+            }
+            result = converter.convert(value);
+        }
+        return result;
     }
 
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java?rev=1728434&r1=1728433&r2=1728434&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java Thu Feb  4 10:32:45 2016
@@ -53,11 +53,10 @@ public class Sample {
      *            The sample data as a string array
      */
     public Sample(long row, SampleMetadata metadata, String... data) {
-	this.row = row;
-	this.metadata = metadata;
-	this.data = data;
-	this.storesStartTimeStamp = JMeterUtils
-	        .getPropDefault("sampleresult.timestamp.start", false);
+        this.row = row;
+        this.metadata = metadata;
+        this.data = data;
+        this.storesStartTimeStamp = JMeterUtils.getPropDefault("sampleresult.timestamp.start",
false);
     }
 
     /**
@@ -65,7 +64,7 @@ public class Sample {
      *         been built.
      */
     public long getSampleRow() {
-	return row;
+        return row;
     }
 
     /**
@@ -76,7 +75,7 @@ public class Sample {
      * @return the data of the column
      */
     public String getData(int index) {
-	return data[index];
+        return data[index];
     }
 
     /**
@@ -87,7 +86,7 @@ public class Sample {
      * @return the data of the column
      */
     public String getData(String name) {
-	return data[metadata.ensureIndexOf(name)];
+        return data[metadata.ensureIndexOf(name)];
     }
 
     /**
@@ -101,11 +100,11 @@ public class Sample {
      * @return the converted value of the data
      */
     public <TData> TData getData(Class<TData> clazz, int index) {
-	try {
-	    return Converters.convert(clazz, data[index]);
-	} catch (ConvertException ex) {
-	    throw new SampleException(ERROR_ON_SAMPLE + row, ex);
-	}
+        try {
+            return Converters.convert(clazz, data[index]);
+        } catch (ConvertException ex) {
+            throw new SampleException(ERROR_ON_SAMPLE + row, ex);
+        }
     }
 
     /**
@@ -119,7 +118,7 @@ public class Sample {
      * @return the converted value of the data
      */
     public <TData> TData getData(Class<TData> clazz, String name) {
-	return getData(clazz, metadata.ensureIndexOf(name));
+        return getData(clazz, metadata.ensureIndexOf(name));
     }
 
     /*
@@ -129,7 +128,7 @@ public class Sample {
      */
     @Override
     public String toString() {
-	return StringUtils.join(data, metadata.getSeparator());
+        return StringUtils.join(data, metadata.getSeparator());
     }
 
     /**
@@ -138,7 +137,7 @@ public class Sample {
      * @return the time stamp
      */
     public long getTimestamp() {
-	return getData(long.class, CSVSaveService.TIME_STAMP);
+        return getData(long.class, CSVSaveService.TIME_STAMP);
     }
 
     /**
@@ -147,7 +146,7 @@ public class Sample {
      * @return the elapsed time stored in the sample
      */
     public long getElapsedTime() {
-	return getData(long.class, CSVSaveService.CSV_ELAPSED);
+        return getData(long.class, CSVSaveService.CSV_ELAPSED);
     }
 
     /**
@@ -167,8 +166,7 @@ public class Sample {
      * @return the start time
      */
     public long getStartTime() {
-	return storesStartTimeStamp ? getTimestamp()
-	        : getTimestamp() - getElapsedTime();
+        return storesStartTimeStamp ? getTimestamp() : getTimestamp() - getElapsedTime();
     }
 
     /**
@@ -189,8 +187,7 @@ public class Sample {
      * @return the end time
      */
     public long getEndTime() {
-	return storesStartTimeStamp ? getTimestamp() + getElapsedTime()
-	        : getTimestamp();
+        return storesStartTimeStamp ? getTimestamp() + getElapsedTime() : getTimestamp();
     }
 
     /**
@@ -199,7 +196,7 @@ public class Sample {
      * @return the response code stored in the sample
      */
     public String getResponseCode() {
-	return getData(CSVSaveService.RESPONSE_CODE);
+        return getData(CSVSaveService.RESPONSE_CODE);
     }
 
     /**
@@ -208,7 +205,7 @@ public class Sample {
      * @return the failure message stored in the sample
      */
     public String getFailureMessage() {
-	return getData(CSVSaveService.FAILURE_MESSAGE);
+        return getData(CSVSaveService.FAILURE_MESSAGE);
     }
 
     /**
@@ -217,7 +214,7 @@ public class Sample {
      * @return the name stored in the sample
      */
     public String getName() {
-	return getData(CSVSaveService.LABEL);
+        return getData(CSVSaveService.LABEL);
     }
 
     /**
@@ -226,7 +223,7 @@ public class Sample {
      * @return the response message stored in the sample
      */
     public String getResponseMessage() {
-	return getData(CSVSaveService.RESPONSE_MESSAGE);
+        return getData(CSVSaveService.RESPONSE_MESSAGE);
     }
 
     /**
@@ -235,7 +232,7 @@ public class Sample {
      * @return the latency stored in the sample
      */
     public long getLatency() {
-	return getData(long.class, CSVSaveService.CSV_LATENCY);
+        return getData(long.class, CSVSaveService.CSV_LATENCY);
     }
 
     /**
@@ -244,7 +241,7 @@ public class Sample {
      * @return the success status stored in the sample
      */
     public boolean getSuccess() {
-	return getData(boolean.class, CSVSaveService.SUCCESSFUL);
+        return getData(boolean.class, CSVSaveService.SUCCESSFUL);
     }
 
     /**
@@ -253,7 +250,7 @@ public class Sample {
      * @return the number of sent bytes stored in the sample
      */
     public int getSentBytes() {
-	return getData(int.class, CSVSaveService.CSV_BYTES);
+        return getData(int.class, CSVSaveService.CSV_BYTES);
     }
 
     /**
@@ -262,7 +259,7 @@ public class Sample {
      * @return the number of threads in the group of this sample
      */
     public int getGroupThreads() {
-	return getData(int.class, CSVSaveService.CSV_THREAD_COUNT1);
+        return getData(int.class, CSVSaveService.CSV_THREAD_COUNT1);
     }
 
     /**
@@ -271,7 +268,7 @@ public class Sample {
      * @return the overall number of threads
      */
     public int getAllThreads() {
-	return getData(int.class, CSVSaveService.CSV_THREAD_COUNT2);
+        return getData(int.class, CSVSaveService.CSV_THREAD_COUNT2);
     }
 
     /**
@@ -280,7 +277,7 @@ public class Sample {
      * @return the thread name stored in the sample
      */
     public String getThreadName() {
-	return getData(CSVSaveService.THREAD_NAME);
+        return getData(CSVSaveService.THREAD_NAME);
     }
 
     /**
@@ -290,7 +287,7 @@ public class Sample {
      *         {@code false}
      */
     public boolean isController() {
-	String message = getResponseMessage();
-	return message != null && message.startsWith(CONTROLLER_PATTERN);
+        String message = getResponseMessage();
+        return message != null && message.startsWith(CONTROLLER_PATTERN);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java?rev=1728434&r1=1728433&r2=1728434&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java Thu Feb  4 10:32:45
2016
@@ -58,8 +58,8 @@ public class SampleMetadata {
      *            The list of columns names (must not be {@code null})
      */
     public SampleMetadata(char separator, String... columns) {
-	Validate.notNull(columns, "columns must not be null");
-	initialize(separator, Arrays.asList(columns));
+        Validate.notNull(columns, "columns must not be null");
+        initialize(separator, Arrays.asList(columns));
     }
 
     /**
@@ -70,90 +70,90 @@ public class SampleMetadata {
      *            {@code null})
      */
     public SampleMetadata(SampleSaveConfiguration saveConfig) {
-	List<String> configuredColumns = new ArrayList<>();
-	if (saveConfig.saveTimestamp()) {
-	    configuredColumns.add(CSVSaveService.TIME_STAMP);
-	}
-	if (saveConfig.saveTime()) {
-	    configuredColumns.add(CSVSaveService.CSV_ELAPSED);
-	}
-	if (saveConfig.saveLabel()) {
-	    configuredColumns.add(CSVSaveService.LABEL);
-	}
-	if (saveConfig.saveCode()) {
-	    configuredColumns.add(CSVSaveService.RESPONSE_CODE);
-	}
-	if (saveConfig.saveMessage()) {
-	    configuredColumns.add(CSVSaveService.RESPONSE_MESSAGE);
-	}
-	if (saveConfig.saveThreadName()) {
-	    configuredColumns.add(CSVSaveService.THREAD_NAME);
-	}
-	if (saveConfig.saveDataType()) {
-	    configuredColumns.add(CSVSaveService.DATA_TYPE);
-	}
-	if (saveConfig.saveSuccess()) {
-	    configuredColumns.add(CSVSaveService.SUCCESSFUL);
-	}
-	if (saveConfig.saveAssertionResultsFailureMessage()) {
-	    configuredColumns.add(CSVSaveService.FAILURE_MESSAGE);
-	}
-	if (saveConfig.saveBytes()) {
-	    configuredColumns.add(CSVSaveService.CSV_BYTES);
-	}
-	if (saveConfig.saveThreadCounts()) {
-	    configuredColumns.add(CSVSaveService.CSV_THREAD_COUNT1);
-	    configuredColumns.add(CSVSaveService.CSV_THREAD_COUNT2);
-	}
-	if (saveConfig.saveUrl()) {
-	    configuredColumns.add(CSVSaveService.CSV_URL);
-	}
-	if (saveConfig.saveFileName()) {
-	    configuredColumns.add(CSVSaveService.CSV_FILENAME);
-	}
-	if (saveConfig.saveLatency()) {
-	    configuredColumns.add(CSVSaveService.CSV_LATENCY);
-	}
-	if (saveConfig.saveEncoding()) {
-	    configuredColumns.add(CSVSaveService.CSV_ENCODING);
-	}
-	if (saveConfig.saveSampleCount()) {
-	    configuredColumns.add(CSVSaveService.CSV_SAMPLE_COUNT);
-	    configuredColumns.add(CSVSaveService.CSV_ERROR_COUNT);
-	}
-	if (saveConfig.saveHostname()) {
-	    configuredColumns.add(CSVSaveService.CSV_HOSTNAME);
-	}
-	if (saveConfig.saveIdleTime()) {
-	    configuredColumns.add(CSVSaveService.CSV_IDLETIME);
-	}
-	if (saveConfig.saveConnectTime()) {
-	    configuredColumns.add(CSVSaveService.CSV_CONNECT_TIME);
-	}
-	initialize(saveConfig.getDelimiter().charAt(0), configuredColumns);
+        List<String> configuredColumns = new ArrayList<>();
+        if (saveConfig.saveTimestamp()) {
+            configuredColumns.add(CSVSaveService.TIME_STAMP);
+        }
+        if (saveConfig.saveTime()) {
+            configuredColumns.add(CSVSaveService.CSV_ELAPSED);
+        }
+        if (saveConfig.saveLabel()) {
+            configuredColumns.add(CSVSaveService.LABEL);
+        }
+        if (saveConfig.saveCode()) {
+            configuredColumns.add(CSVSaveService.RESPONSE_CODE);
+        }
+        if (saveConfig.saveMessage()) {
+            configuredColumns.add(CSVSaveService.RESPONSE_MESSAGE);
+        }
+        if (saveConfig.saveThreadName()) {
+            configuredColumns.add(CSVSaveService.THREAD_NAME);
+        }
+        if (saveConfig.saveDataType()) {
+            configuredColumns.add(CSVSaveService.DATA_TYPE);
+        }
+        if (saveConfig.saveSuccess()) {
+            configuredColumns.add(CSVSaveService.SUCCESSFUL);
+        }
+        if (saveConfig.saveAssertionResultsFailureMessage()) {
+            configuredColumns.add(CSVSaveService.FAILURE_MESSAGE);
+        }
+        if (saveConfig.saveBytes()) {
+            configuredColumns.add(CSVSaveService.CSV_BYTES);
+        }
+        if (saveConfig.saveThreadCounts()) {
+            configuredColumns.add(CSVSaveService.CSV_THREAD_COUNT1);
+            configuredColumns.add(CSVSaveService.CSV_THREAD_COUNT2);
+        }
+        if (saveConfig.saveUrl()) {
+            configuredColumns.add(CSVSaveService.CSV_URL);
+        }
+        if (saveConfig.saveFileName()) {
+            configuredColumns.add(CSVSaveService.CSV_FILENAME);
+        }
+        if (saveConfig.saveLatency()) {
+            configuredColumns.add(CSVSaveService.CSV_LATENCY);
+        }
+        if (saveConfig.saveEncoding()) {
+            configuredColumns.add(CSVSaveService.CSV_ENCODING);
+        }
+        if (saveConfig.saveSampleCount()) {
+            configuredColumns.add(CSVSaveService.CSV_SAMPLE_COUNT);
+            configuredColumns.add(CSVSaveService.CSV_ERROR_COUNT);
+        }
+        if (saveConfig.saveHostname()) {
+            configuredColumns.add(CSVSaveService.CSV_HOSTNAME);
+        }
+        if (saveConfig.saveIdleTime()) {
+            configuredColumns.add(CSVSaveService.CSV_IDLETIME);
+        }
+        if (saveConfig.saveConnectTime()) {
+            configuredColumns.add(CSVSaveService.CSV_CONNECT_TIME);
+        }
+        initialize(saveConfig.getDelimiter().charAt(0), configuredColumns);
     }
 
     private void initialize(char separator, List<String> columns) {
-	this.separator = separator;
-	this.columns = columns;
-	int size = columns.size();
-	for (int i = 0; i < size; i++) {
-	    index.put(this.columns.get(i).trim(), Integer.valueOf(i));
-	}
+        this.separator = separator;
+        this.columns = columns;
+        int size = columns.size();
+        for (int i = 0; i < size; i++) {
+            index.put(this.columns.get(i).trim(), Integer.valueOf(i));
+        }
     }
 
     /**
      * @return the character used for separating columns
      */
     public char getSeparator() {
-	return separator;
+        return separator;
     }
 
     /**
      * @return the number of columns in the metadata
      */
     public int getColumnCount() {
-	return columns.size();
+        return columns.size();
     }
 
     /**
@@ -168,7 +168,7 @@ public class SampleMetadata {
      *             <code>getColumnCount()</code>)
      */
     public String getColumnName(int i) {
-	return columns.get(i);
+        return columns.get(i);
     }
 
     /**
@@ -183,7 +183,7 @@ public class SampleMetadata {
      *             <code>getColumnCount()</code>)
      */
     public String getColumnName(Integer i) {
-	return columns.get(i.intValue());
+        return columns.get(i.intValue());
     }
 
     /**
@@ -195,8 +195,8 @@ public class SampleMetadata {
      *         does not exist in this metadata
      */
     public int indexOf(String col) {
-	Integer out = index.get(col);
-	return out == null ? -1 : out.intValue();
+        Integer out = index.get(col);
+        return out == null ? -1 : out.intValue();
     }
 
     /**
@@ -209,12 +209,12 @@ public class SampleMetadata {
      *             when the column with the specified name is not found
      */
     public int ensureIndexOf(String col) {
-	int index = indexOf(col);
-	if (index < 0) {
-	    throw new SampleException(
-	            String.format(METADATA_EXCEPTION_MSG_FMT, col, toString()));
-	}
-	return index;
+        int index = indexOf(col);
+        if (index < 0) {
+            throw new SampleException(
+                    String.format(METADATA_EXCEPTION_MSG_FMT, col, toString()));
+        }
+        return index;
     }
 
     /*
@@ -224,6 +224,6 @@ public class SampleMetadata {
      */
     @Override
     public String toString() {
-	return StringUtils.join(columns, separator);
+        return StringUtils.join(columns, separator);
     }
 }



Mime
View raw message