branch develop updated (5a8061e -> 8ad5674)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository jtimer. See http://git.chorem.org/jtimer.git from 5a8061e Fix en message new 8ad5674 Fix annoying trace log on non linux system The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 8ad567498a74bde93864cafca70f8c3d27279378 Author: Eric Chatellier <chatellier@codelutin.com> Date: Mon Mar 7 15:03:21 2016 +0100 Fix annoying trace log on non linux system Summary of changes: src/main/java/org/chorem/jtimer/JTimer.java | 5 +++++ 1 file changed, 5 insertions(+) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jtimer. See http://git.chorem.org/jtimer.git commit 8ad567498a74bde93864cafca70f8c3d27279378 Author: Eric Chatellier <chatellier@codelutin.com> Date: Mon Mar 7 15:03:21 2016 +0100 Fix annoying trace log on non linux system --- src/main/java/org/chorem/jtimer/JTimer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/chorem/jtimer/JTimer.java b/src/main/java/org/chorem/jtimer/JTimer.java index ccbd29a..bcd914d 100644 --- a/src/main/java/org/chorem/jtimer/JTimer.java +++ b/src/main/java/org/chorem/jtimer/JTimer.java @@ -185,6 +185,11 @@ public class JTimer extends SingleFrameApplication implements java.lang.reflect.Field awtAppClassNameField = xToolkit.getClass().getDeclaredField("awtAppClassName"); awtAppClassNameField.setAccessible(true); awtAppClassNameField.set(xToolkit, resourceMap.getString("Application.title")); + } catch (NoSuchFieldException ex) { + // probably not running on linux + if (log.isTraceEnabled()) { + log.trace("Can't find any field named 'awtAppClassName'", ex); + } } catch (Exception ex) { if (log.isWarnEnabled()) { log.warn("Can change awt application name", ex); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm