Commit bae3bb30 authored by Philippe Merle's avatar Philippe Merle

* Improved the code quality according to checking rules of Sonar.

* Cosmetic updates.
parent a3852172
......@@ -75,7 +75,7 @@ public class JNAeratorCompiler
public final String interfaceName(File file)
{
String itf = packageName(file);
return itf.substring(0, 1).toUpperCase()+itf.substring(1)+"Library";
return Character.toUpperCase(itf.charAt(0))+itf.substring(1)+"Library";
}
/**
......@@ -111,7 +111,7 @@ public class JNAeratorCompiler
/**
* @see com.ochafik.lang.jnaerator.JNAerator.Feedback#setFinished(java.io.File)
*/
public final void setFinished(File file)
public void setFinished(File file)
{
if (this.logger.isLoggable(INFO)) {
this.logger.info("File '" + file.getName()
......@@ -122,7 +122,7 @@ public class JNAeratorCompiler
/**
* @see com.ochafik.lang.jnaerator.JNAerator.Feedback#setFinished(java.lang.Throwable)
*/
public final void setFinished(Throwable error)
public void setFinished(Throwable error)
{
if (this.logger.isLoggable(SEVERE)) {
this.logger.log(SEVERE, "File failed to generate.", error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment