aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CodeGenUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen/CodeGenUtils.java')
-rw-r--r--src/java/com/jogamp/gluegen/CodeGenUtils.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/java/com/jogamp/gluegen/CodeGenUtils.java b/src/java/com/jogamp/gluegen/CodeGenUtils.java
index 4c96915..221256b 100644
--- a/src/java/com/jogamp/gluegen/CodeGenUtils.java
+++ b/src/java/com/jogamp/gluegen/CodeGenUtils.java
@@ -47,8 +47,8 @@ public class CodeGenUtils {
* Given a java package name (e.g., "java.lang"), return the package as a
* directory path (i.e., "java/lang").
*/
- public static String packageAsPath(String packageName) {
- String path = packageName.replace('.', File.separatorChar);
+ public static String packageAsPath(final String packageName) {
+ final String path = packageName.replace('.', File.separatorChar);
//System.out.println("Converted package [" + packageName + "] to path [" + path +"]");
return path;
}
@@ -57,7 +57,7 @@ public class CodeGenUtils {
* @param generator the object that is emitting the autogenerated code. If
* null, the generator will not be mentioned in the warning message.
*/
- public static void emitAutogeneratedWarning(PrintWriter w, Object generator) {
+ public static void emitAutogeneratedWarning(final PrintWriter w, final Object generator) {
w.print("/* !---- DO NOT EDIT: This file autogenerated ");
if (generator != null) {
w.print("by ");
@@ -73,19 +73,19 @@ public class CodeGenUtils {
/**
* Emit the opening headers for one java class/interface file.
*/
- public static void emitJavaHeaders(PrintWriter w,
- String packageName,
- String className,
- boolean isClassNotInterface,
- List<String> imports,
- String[] accessModifiers,
- String[] interfaces,
- String classExtended,
- EmissionCallback classDocComment) throws IOException {
+ public static void emitJavaHeaders(final PrintWriter w,
+ final String packageName,
+ final String className,
+ final boolean isClassNotInterface,
+ final List<String> imports,
+ final String[] accessModifiers,
+ final String[] interfaces,
+ final String classExtended,
+ final EmissionCallback classDocComment) throws IOException {
w.println("package " + packageName + ";");
w.println();
- for (String imp : imports) {
+ for (final String imp : imports) {
w.print("import ");
w.print(imp);
w.println(';');