From 9555288019afaf7f1b9eb73e02fe0d899d633292 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 5 Aug 2023 05:46:28 +0200 Subject: Minor cleanup (includes, spacing) --- src/java/com/jogamp/gluegen/JavaEmitter.java | 2 +- .../gluegen/test/junit/generation/BaseClass4JavaCallback.java | 8 -------- .../com/jogamp/gluegen/test/junit/generation/Test2p1FuncPtr.java | 1 - .../jogamp/gluegen/test/junit/generation/Test3p1PtrStorage.java | 1 - .../jogamp/gluegen/test/junit/generation/Test4p1JavaCallback.java | 1 - 5 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index 8ed269e..9d0edef 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -374,7 +374,7 @@ public class JavaEmitter implements GlueEmitter { final Type funcPtr = typedefDictionary.get(jcbd.cbFuncTypeName); if( null != funcPtr && funcPtr.isFunctionPointer() ) { final Optional setter = cFunctions.stream() - .filter(cFunction -> jcbd.setFuncName.equals(cFunction.getName())) + .filter( cFunction -> jcbd.setFuncName.equals(cFunction.getName()) ) .findFirst(); if( setter.isPresent() ) { generateJavaCallbackCode(jcbd, funcPtr.getTargetFunction()); diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass4JavaCallback.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass4JavaCallback.java index 51987e4..cab8a9c 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass4JavaCallback.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass4JavaCallback.java @@ -28,11 +28,9 @@ package com.jogamp.gluegen.test.junit.generation; -import java.io.IOException; import java.util.Set; import java.util.concurrent.atomic.AtomicReference; -import com.jogamp.common.os.NativeLibrary; import com.jogamp.gluegen.test.junit.generation.Bindingtest2.ALBUFFERCALLBACKTYPESOFT; import com.jogamp.gluegen.test.junit.generation.Bindingtest2.ALEVENTPROCSOFT; import com.jogamp.gluegen.test.junit.generation.Bindingtest2.AlBufferCallback0Key; @@ -47,13 +45,7 @@ import com.jogamp.gluegen.test.junit.generation.Bindingtest2.T2_CallbackFunc12a; import com.jogamp.gluegen.test.junit.generation.Bindingtest2.T2_CallbackFunc12b; import com.jogamp.gluegen.test.junit.generation.Bindingtest2.T2_CallbackFunc13; -import org.junit.AfterClass; import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -import org.junit.FixMethodOrder; -import org.junit.runners.MethodSorters; /** * Test {@link Bindingtest2} with {@link T2_PointerStorage} instance and pointer pointer.. diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/Test2p1FuncPtr.java b/src/junit/com/jogamp/gluegen/test/junit/generation/Test2p1FuncPtr.java index 10faff1..fafe06a 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/Test2p1FuncPtr.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/Test2p1FuncPtr.java @@ -28,7 +28,6 @@ package com.jogamp.gluegen.test.junit.generation; -import com.jogamp.common.os.NativeLibrary; import com.jogamp.gluegen.test.junit.generation.impl.Bindingtest2p1Impl; import org.junit.*; import org.junit.runners.MethodSorters; diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/Test3p1PtrStorage.java b/src/junit/com/jogamp/gluegen/test/junit/generation/Test3p1PtrStorage.java index e02852a..8a54ef4 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/Test3p1PtrStorage.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/Test3p1PtrStorage.java @@ -28,7 +28,6 @@ package com.jogamp.gluegen.test.junit.generation; -import com.jogamp.common.os.NativeLibrary; import com.jogamp.gluegen.test.junit.generation.impl.Bindingtest2p1Impl; import org.junit.*; import org.junit.runners.MethodSorters; diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/Test4p1JavaCallback.java b/src/junit/com/jogamp/gluegen/test/junit/generation/Test4p1JavaCallback.java index c0bb175..6a55c5d 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/Test4p1JavaCallback.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/Test4p1JavaCallback.java @@ -28,7 +28,6 @@ package com.jogamp.gluegen.test.junit.generation; -import com.jogamp.common.os.NativeLibrary; import com.jogamp.gluegen.test.junit.generation.impl.Bindingtest2p1Impl; import org.junit.*; import org.junit.runners.MethodSorters; -- cgit v1.2.3