From ea58e7a7b7201d44f411026020f4d41932b0fa9e Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Fri, 15 Oct 2010 20:16:09 +0000 Subject: [PATCH] Whitespace git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6207 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../admin/web/client/ConfigFieldEditor.java | 24 +++++++------------ .../crowd/chat/server/ChatChannelManager.java | 2 +- .../presents/peer/server/PeerManager.java | 1 - .../threerings/util/StreamableHashIntMap.java | 10 ++++---- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/src/java/com/threerings/admin/web/client/ConfigFieldEditor.java b/src/java/com/threerings/admin/web/client/ConfigFieldEditor.java index cc03b2090..6cf44cfed 100644 --- a/src/java/com/threerings/admin/web/client/ConfigFieldEditor.java +++ b/src/java/com/threerings/admin/web/client/ConfigFieldEditor.java @@ -41,14 +41,12 @@ public abstract class ConfigFieldEditor */ protected static class StringFieldEditor extends ConfigFieldEditor { - public StringFieldEditor (ConfigField field, Command onChange) - { + public StringFieldEditor (ConfigField field, Command onChange) { super(field, onChange); } @Override - protected Widget buildWidget (ConfigField field) - { + protected Widget buildWidget (ConfigField field) { _box = new TextBox(); _box.setStyleName("configStringEditor"); _box.setVisibleLength(40); @@ -67,8 +65,7 @@ public abstract class ConfigFieldEditor } @Override - public ConfigField getModifiedField () - { + public ConfigField getModifiedField () { Object newValue = _field.type.toValue(_box.getText().trim()); if (newValue == null) { return null; @@ -82,8 +79,7 @@ public abstract class ConfigFieldEditor } @Override - protected void resetField () - { + protected void resetField () { _box.setText(_field.valStr); } @@ -95,14 +91,12 @@ public abstract class ConfigFieldEditor */ protected static class CheckboxFieldEditor extends ConfigFieldEditor { - public CheckboxFieldEditor (ConfigField field, Command onChange) - { + public CheckboxFieldEditor (ConfigField field, Command onChange) { super(field, onChange); } @Override - protected Widget buildWidget (ConfigField field) - { + protected Widget buildWidget (ConfigField field) { _box = new CheckBox(); _box.setStyleName("configCheckBoxEditor"); resetField(); @@ -116,8 +110,7 @@ public abstract class ConfigFieldEditor } @Override - public ConfigField getModifiedField () - { + public ConfigField getModifiedField () { String newValStr = Boolean.toString(_box.getValue()); if (newValStr.equals(_field.valStr)) { return null; @@ -126,8 +119,7 @@ public abstract class ConfigFieldEditor } @Override - protected void resetField () - { + protected void resetField () { _box.setValue(Boolean.valueOf(_field.valStr)); } diff --git a/src/java/com/threerings/crowd/chat/server/ChatChannelManager.java b/src/java/com/threerings/crowd/chat/server/ChatChannelManager.java index 950b7e75d..078e49b4f 100644 --- a/src/java/com/threerings/crowd/chat/server/ChatChannelManager.java +++ b/src/java/com/threerings/crowd/chat/server/ChatChannelManager.java @@ -423,7 +423,7 @@ public abstract class ChatChannelManager protected Name _user; } - + protected static final Predicate IS_USER_MESSAGE = new Predicate() { public boolean apply (ChatHistoryEntry entry) { diff --git a/src/java/com/threerings/presents/peer/server/PeerManager.java b/src/java/com/threerings/presents/peer/server/PeerManager.java index 1c2ea1887..5ed7a6092 100644 --- a/src/java/com/threerings/presents/peer/server/PeerManager.java +++ b/src/java/com/threerings/presents/peer/server/PeerManager.java @@ -1562,7 +1562,6 @@ public abstract class PeerManager protected Map _errors; } - /** Extracts the node object from the supplied peer. */ protected static final Function GET_NODE_OBJECT = new Function() { diff --git a/src/java/com/threerings/util/StreamableHashIntMap.java b/src/java/com/threerings/util/StreamableHashIntMap.java index e19fbdc25..d287e1282 100644 --- a/src/java/com/threerings/util/StreamableHashIntMap.java +++ b/src/java/com/threerings/util/StreamableHashIntMap.java @@ -30,8 +30,8 @@ import com.threerings.io.ObjectOutputStream; import com.threerings.io.Streamable; /** - * A {@link HashIntMap} extension that can be streamed. The keys and - * values in the map must also be of streamable types. + * A {@link HashIntMap} extension that can be streamed. The keys and values in the map must also + * be of streamable types. * * @see Streamable * @param the type of value stored in this map. @@ -40,8 +40,7 @@ public class StreamableHashIntMap extends HashIntMap implements Streamable { /** - * Constructs an empty hash int map with the specified number of hash - * buckets. + * Constructs an empty hash int map with the specified number of hash buckets. */ public StreamableHashIntMap (int buckets, float loadFactor) { @@ -49,8 +48,7 @@ public class StreamableHashIntMap extends HashIntMap } /** - * Constructs an empty hash int map with the default number of hash - * buckets. + * Constructs an empty hash int map with the default number of hash buckets. */ public StreamableHashIntMap () {