From ffb47c6610fc742926abc946fc14d12ee9c65a9a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Apr 2012 00:50:14 +0200 Subject: StringBuffer -> StringBuilder (Local objects, no concurrency) ; Impacts: Capabilities/GLContext API 'toString(StringBuilder)' --- src/newt/classes/com/jogamp/newt/event/MouseEvent.java | 2 +- src/newt/classes/jogamp/newt/WindowImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newt') diff --git a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java index 9bc3be1e5..d8ebe6607 100644 --- a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java +++ b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java @@ -158,7 +158,7 @@ public class MouseEvent extends InputEvent } public String toString() { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("MouseEvent[").append(getEventTypeString(getEventType())) .append(", ").append(x).append("/").append(y) .append(", button ").append(button).append(", count ") diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index fd224e6c7..1ef665571 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -492,8 +492,8 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer ( isAlwaysOnTop() ? FLAG_IS_ALWAYSONTOP : 0 ) | ( visible ? FLAG_IS_VISIBLE : 0 ) ; } - protected static String getReconfigureFlagsAsString(StringBuffer sb, int flags) { - if(null == sb) { sb = new StringBuffer(); } + protected static String getReconfigureFlagsAsString(StringBuilder sb, int flags) { + if(null == sb) { sb = new StringBuilder(); } sb.append("["); if( 0 != ( FLAG_CHANGE_PARENTING & flags) ) { -- cgit v1.2.3