summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CodeGenUtils.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
committerSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
commitdf9ff7f340a5ab4e07efc613f5f264eeae63d4c7 (patch)
tree239ae276b82024b140428e6c0fe5d739fdd686a4 /src/java/com/jogamp/gluegen/CodeGenUtils.java
parenteb47aaba63e3b1bf55f274a0f338f1010a017ae4 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74) - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
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(';');