jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1728535 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java
Date Thu, 04 Feb 2016 19:09:25 GMT
Author: fschumacher
Date: Thu Feb  4 19:09:24 2016
New Revision: 1728535

URL: http://svn.apache.org/viewvc?rev=1728535&view=rev
Log:
Follow the java convention of single upper case letters for generic types.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java

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=1728535&r1=1728534&r2=1728535&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 19:09:24
2016
@@ -132,22 +132,22 @@ public final class Converters {
     /**
      * Gets the converter for the specified class.
      *
-     * @param <TDest>
+     * @param <T>
      *            the target type
      * @param clazz
      *            the target class
      * @return the converter
      */
     @SuppressWarnings("unchecked")
-    public static <TDest> StringConverter<TDest> getConverter(
-            Class<TDest> clazz) {
-        return (StringConverter<TDest>) CONVERTER_MAP.get(clazz);
+    public static <T> StringConverter<T> getConverter(
+            Class<T> clazz) {
+        return (StringConverter<T>) CONVERTER_MAP.get(clazz);
     }
 
     /**
      * Converts the specified value to the destination type
      * 
-     * @param <TDest>
+     * @param <T>
      *            the target type
      * @param clazz
      *            the target class
@@ -157,15 +157,15 @@ public final class Converters {
      * @throws ConvertException
      *             when the conversion failed
      */
-    public static <TDest> TDest convert(Class<TDest> clazz, String value)
+    public static <T> T convert(Class<T> clazz, String value)
             throws ConvertException {
-        TDest result;
+        T result;
         if (clazz.isAssignableFrom(String.class)) {
             @SuppressWarnings("unchecked") // OK because checked above
-            TDest temp = (TDest) value;
+            T temp = (T) value;
             result = temp;
         } else {
-            StringConverter<TDest> converter = Converters.getConverter(clazz);
+            StringConverter<T> converter = Converters.getConverter(clazz);
             if (converter == null) {
                 throw new ConvertException(value, clazz.getName());
             }



Mime
View raw message