summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-16 00:50:14 +0200
committerSven Gothel <[email protected]>2012-04-16 00:50:14 +0200
commitffb47c6610fc742926abc946fc14d12ee9c65a9a (patch)
tree36b157a02c244375ec26658d0444bb8d3b0e3380 /src/newt
parentace2daf725dfc1aa700338fae71fe93a9d0fd865 (diff)
StringBuffer -> StringBuilder (Local objects, no concurrency) ; Impacts: Capabilities/GLContext API 'toString(StringBuilder)'
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/com/jogamp/newt/event/MouseEvent.java2
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java4
2 files changed, 3 insertions, 3 deletions
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) ) {