Compiler warnings

This commit is contained in:
Dave Syer
2018-04-16 16:39:37 +01:00
parent 98cf4dc06e
commit c2568ccabe
5 changed files with 23 additions and 19 deletions

View File

@@ -16,8 +16,6 @@
package org.springframework.cloud.function.compiler.java;
import java.io.File;
/**
* Encapsulates a name with the bytes for its class definition.
*
@@ -36,7 +34,9 @@ public class CompiledClassDefinition {
if (classname.startsWith("/")) {
classname = classname.substring(1);
}
classname = classname.replace('/', '.').substring(0, classname.length()-6); //strip off .class
classname = classname.replace('/', '.').substring(0, classname.length() - 6); // strip
// off
// .class
}
public String getName() {
@@ -47,8 +47,10 @@ public class CompiledClassDefinition {
return bytes;
}
@Override
public String toString() {
return "CompiledClassDefinition(name=" + getName() + ",#bytes=" + getBytes().length + ")";
return "CompiledClassDefinition(name=" + getName() + ",#bytes="
+ getBytes().length + ")";
}
public String getClassName() {