diff options
author | Harvey Harrison <[email protected]> | 2013-10-18 00:16:51 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-10-18 00:16:51 -0700 |
commit | 9b2013182516b77a39123894ad1b71619bd9785b (patch) | |
tree | 48d9ec72215ea8c4cf32f0f4c02174dd07fbeb5e /src/newt/classes/com/jogamp | |
parent | 5ef943ff0669e9bc6ea367703b12d89cf776f6ca (diff) |
jogl: avoid creating a second String object, one is enough
One String is already being built, passing it to new String() is just wasteful as
the temp String can be returned just as easily.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/MonitorMode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/MonitorMode.java b/src/newt/classes/com/jogamp/newt/MonitorMode.java index 59f28e791..9690f18db 100644 --- a/src/newt/classes/com/jogamp/newt/MonitorMode.java +++ b/src/newt/classes/com/jogamp/newt/MonitorMode.java @@ -176,7 +176,7 @@ public class MonitorMode implements Comparable<MonitorMode> { } @Override public final String toString() { - return new String(surfaceSize+" @ "+refreshRate+" Hz, flags ["+flags2String(flags).toString()+"]"); + return surfaceSize+" @ "+refreshRate+" Hz, flags ["+flags2String(flags).toString()+"]"; } /** |