java.lang.reflect.Method



API Populatity

339 Client projects

Project: java

Package: java.lang

Project FasterXML/jackson in file ...ehaus.jackson.mrbean.AbstractTypeMaterializer.java (2010-07-23)
@@ -1,13 +1,9 @@
 package org.codehaus.jackson.mrbean;
 
-import java.lang.reflect.Method;
-
 import org.codehaus.jackson.map.*;
 import org.codehaus.jackson.map.type.TypeFactory;
 import org.codehaus.jackson.type.JavaType;
 
-import org.codehaus.jackson.org.objectweb.asm.*;
-
 /**
  * Nifty class for pulling implementations of classes out of thin air.
  *<p>
Project SonarSource/sonarqube in file ...c.test.java.org.sonar.api.utils.PathUtilsTest.java (2014-07-01)
@@ -26,7 +26,6 @@ import org.junit.rules.TemporaryFolder;
 
 import java.io.File;
 import java.io.IOException;
-import java.lang.reflect.Method;
 
 import static org.fest.assertions.Assertions.assertThat;
 import static org.fest.assertions.Fail.fail;
@@ -65,6 +64,7 @@ public class PathUtilsTest {
     File file = temp.newFile();
     String path = PathUtils.canonicalPath(file);
     assertThat(path).isEqualTo(FilenameUtils.separatorsToUnix(file.getCanonicalPath()));
+    assertThat(PathUtils.canonicalPath(null)).isNull();
   }
 
   @Test
Project google/guava in file ....test.com.google.common.io.PackageSanityTests.java (2012-11-09)
@@ -18,6 +18,8 @@ package com.google.common.io;
 
 import com.google.common.testing.AbstractPackageSanityTests;
 
+import java.lang.reflect.Method;
+
 /**
  * Basic sanity tests for the entire package.
  *
@@ -29,5 +31,6 @@ public class PackageSanityTests extends AbstractPackageSanityTests {
     setDefault(BaseEncoding.class, BaseEncoding.base64());
     setDefault(int.class, 32);
     setDefault(String.class, "abcd");
+    setDefault(Method.class, AbstractPackageSanityTests.class.getDeclaredMethods()[0]);
   }
 }