Skip to content

Commit

Permalink
Camel-case parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 19, 2023
1 parent 6b42630 commit 286cec4
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public OutputStream getOutputStream() throws IOException {
static final String CONTENT_TYPE = "application/octet-stream";

/**
* Convert a classname into a resource name.
* @param classname to convert
* Convert a class name into a resource name.
* @param className to convert
* @return String
*/
protected static String getResourceName(final String classname) {
return classname.replace('.', '/') + ".class";
protected static String getResourceName(final String className) {
return className.replace('.', '/') + ".class";
}

private static Supplier<String> supplier(final String format, final Object... args) {
Expand Down Expand Up @@ -182,11 +182,11 @@ public final Resource getClassfile(final Class<?> cls) {

/**
* Get a {@link Resource} for the specified class.
* @param classname of type
* @param className of type
* @return {@link Resource}
*/
public final Resource getClassfile(final String classname) {
return getResource(getResourceName(classname));
public final Resource getClassfile(final String className) {
return getResource(getResourceName(className));
}

/**
Expand All @@ -209,11 +209,11 @@ public final boolean deleteClassfile(final Class<?> cls) {

/**
* Delete the classfile for the specified class.
* @param classname of type
* @param className of type
* @return whether successful
*/
public final boolean deleteClassfile(final String classname) {
return deleteResource(getResourceName(classname));
public final boolean deleteClassfile(final String className) {
return deleteResource(getResourceName(className));
}

/**
Expand Down

0 comments on commit 286cec4

Please sign in to comment.