From 6a4748b38cdd7bd3fd0464720c5308abdff69d8e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 12 Aug 2015 18:03:22 +0200 Subject: [PATCH] =?utf8?q?Minor=20formatting=20Signed-off-by:Roland=20H?= =?utf8?q?=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/jcore/BaseFrameworkSystem.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index a1c808e..88f598a 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -194,26 +194,26 @@ public class BaseFrameworkSystem implements FrameworkInterface { * @param targetClass Class name to look for * @return Class instance */ - @SuppressWarnings ("unchecked") + @SuppressWarnings("unchecked") private Class getClassFromTarget (final FrameworkInterface instance, final String targetClass) { // Trace message this.getLogger().debug(MessageFormat.format("instance={0},targetClass={1}", instance, targetClass)); //NOI18N - + // Instance reflaction of this class Class c = instance.getClass(); - + // Analyze class while (!targetClass.equals(c.getSimpleName())) { // Debug message this.getLogger().debug(MessageFormat.format("c={0}", c.getSimpleName())); //NOI18N - + // Get super class (causes unchecked warning) c = (Class) c.getSuperclass(); } // Trace message this.getLogger().trace(MessageFormat.format("c={0} - EXIT!", c)); //NOI18N - + // Return it return c; } @@ -265,7 +265,7 @@ public class BaseFrameworkSystem implements FrameworkInterface { protected final void abortProgramWithException (final Throwable throwable) { // Log exception ... this.getLogger().catching(throwable); - + // .. and exit System.exit(1); } @@ -567,10 +567,10 @@ public class BaseFrameworkSystem implements FrameworkInterface { protected Object getField (final FrameworkInterface instance, final String targetClass, final String methodName) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace messahe this.getLogger().trace(MessageFormat.format("targetClass={0},methodName={1}", targetClass, methodName)); //NOI18N - + // Get method to call Method method = this.getMethodFromName(instance, targetClass, methodName); - + // Get value from field Object object = method.invoke(instance); @@ -606,7 +606,7 @@ public class BaseFrameworkSystem implements FrameworkInterface { protected Object convertNullToEmpty (final Object str) { // Trace message this.getLogger().trace(MessageFormat.format("str={0}", str)); //NOI18N - + // Is it null? if (str == null) { // Return empty string @@ -615,7 +615,7 @@ public class BaseFrameworkSystem implements FrameworkInterface { // Trace message this.getLogger().trace(MessageFormat.format("str={0} - EXIT!", str)); //NOI18N - + // Return it return str; } @@ -747,7 +747,7 @@ public class BaseFrameworkSystem implements FrameworkInterface { /** * Prepares all properties, the file is written if it is not found - * + * * @throws java.io.IOException If any IO problem occurs */ protected void initProperties () throws IOException { -- 2.39.5