commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [16/50] [lang] MethodUtilsTest whitespaces
Date Mon, 17 Apr 2017 12:19:39 GMT
MethodUtilsTest whitespaces

Clean up MethodUtilsTest whitespaces as per the project's standards -
no trailing whitespaces are allowed and spaces are used for
indentation.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/17319491
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/17319491
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/17319491

Branch: refs/heads/release
Commit: 1731949116a7278f2b729cbb9e505580c8f56980
Parents: 6bc8650
Author: Allon Mureinik <amureini@redhat.com>
Authored: Tue Mar 14 11:55:08 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sun Mar 19 10:10:45 2017 +0100

----------------------------------------------------------------------
 .../commons/lang3/reflect/MethodUtilsTest.java  | 34 ++++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/17319491/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
index 5b49c85..351bed1 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
@@ -103,39 +103,39 @@ public class MethodUtilsTest {
         public static void oneParameterStatic(final String s) {
             // empty
         }
-        
+
         @SuppressWarnings("unused")
         private void privateStuff() {
         }
 
         @SuppressWarnings("unused")
         private String privateStringStuff() {
-        	return "privateStringStuff()";
+            return "privateStringStuff()";
         }
-        
+
         @SuppressWarnings("unused")
         private String privateStringStuff(final int i) {
-        	return "privateStringStuff(int)";
+            return "privateStringStuff(int)";
         }
-        
+
         @SuppressWarnings("unused")
         private String privateStringStuff(final Integer i) {
-        	return "privateStringStuff(Integer)";
+            return "privateStringStuff(Integer)";
         }
-        
+
         @SuppressWarnings("unused")
         private String privateStringStuff(final double d) {
-        	return "privateStringStuff(double)";
+            return "privateStringStuff(double)";
         }
-        
+
         @SuppressWarnings("unused")
         private String privateStringStuff(final String s) {
-        	return "privateStringStuff(String)";
+            return "privateStringStuff(String)";
         }
-        
+
         @SuppressWarnings("unused")
         private String privateStringStuff(final Object s) {
-        	return "privateStringStuff(Object)";
+            return "privateStringStuff(Object)";
         }
 
 
@@ -760,12 +760,12 @@ public class MethodUtilsTest {
         final int[] actual = (int[])MethodUtils.invokeMethod(testBean, "unboxing", Integer.valueOf(1),
Integer.valueOf(2));
         Assert.assertArrayEquals(new int[]{1, 2}, actual);
     }
-    
+
     @Test
     public void testInvokeMethodForceAccessNoArgs() throws Exception {
         Assert.assertEquals("privateStringStuff()", MethodUtils.invokeMethod(testBean, true,
"privateStringStuff"));
     }
-    
+
     @Test
     public void testInvokeMethodForceAccessWithArgs() throws Exception {
         Assert.assertEquals("privateStringStuff(Integer)", MethodUtils.invokeMethod(testBean,
true, "privateStringStuff", 5));
@@ -773,17 +773,17 @@ public class MethodUtilsTest {
         Assert.assertEquals("privateStringStuff(String)", MethodUtils.invokeMethod(testBean,
true, "privateStringStuff", "Hi There"));
         Assert.assertEquals("privateStringStuff(Object)", MethodUtils.invokeMethod(testBean,
true, "privateStringStuff", new Date()));
     }
-    
+
     @Test
     public void testDistance() throws Exception {
         final Method distanceMethod = MethodUtils.getMatchingMethod(MethodUtils.class, "distance",
Class[].class, Class[].class);
         distanceMethod.setAccessible(true);
-        
+
         Assert.assertEquals(-1, distanceMethod.invoke(null, new Class[]{String.class}, new
Class[]{Date.class}));
         Assert.assertEquals(0, distanceMethod.invoke(null, new Class[]{Date.class}, new Class[]{Date.class}));
         Assert.assertEquals(1, distanceMethod.invoke(null, new Class[]{Integer.class}, new
Class[]{ClassUtils.wrapperToPrimitive(Integer.class)}));
         Assert.assertEquals(2, distanceMethod.invoke(null, new Class[]{Integer.class}, new
Class[]{Object.class}));
-        
+
         distanceMethod.setAccessible(false);
     }
 }


Mime
View raw message