Fix raw type warnings, as pointed out by Duncan Jones

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2014-01-27 16:19:55 +00:00
parent ef9db7e5c7
commit 1837ea7782
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public ClassPathUtils() {
* @return the fully qualified name of the resource with name {@code resourceName}.
* @throws java.lang.NullPointerException if either {@code context} or {@code resourceName} is null.
*/
public static String toFullyQualifiedName(final Class context, final String resourceName) {
public static String toFullyQualifiedName(final Class<?> context, final String resourceName) {
Validate.notNull(context, "Parameter '%s' must not be null!", "context" );
Validate.notNull(resourceName, "Parameter '%s' must not be null!", "resourceName");
return toFullyQualifiedName(context.getPackage(), resourceName);
@ -103,7 +103,7 @@ public static String toFullyQualifiedName(final Package context, final String re
* @return the fully qualified path of the resource with name {@code resourceName}.
* @throws java.lang.NullPointerException if either {@code context} or {@code resourceName} is null.
*/
public static String toFullyQualifiedPath(final Class context, final String resourceName) {
public static String toFullyQualifiedPath(final Class<?> context, final String resourceName) {
Validate.notNull(context, "Parameter '%s' must not be null!", "context" );
Validate.notNull(resourceName, "Parameter '%s' must not be null!", "resourceName");
return toFullyQualifiedPath(context.getPackage(), resourceName);