Fix checkstyle problems.
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5818 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/super/com/google/gwt/user/translatable/com/google/gwt/core/client/impl/WeakMapping.java b/user/super/com/google/gwt/user/translatable/com/google/gwt/core/client/impl/WeakMapping.java
index 8637147..203f1bc 100644
--- a/user/super/com/google/gwt/user/translatable/com/google/gwt/core/client/impl/WeakMapping.java
+++ b/user/super/com/google/gwt/user/translatable/com/google/gwt/core/client/impl/WeakMapping.java
@@ -37,16 +37,8 @@
* @param key a String key.
* @return an Object associated with that key on the given instance, or null.
*/
- public static void set(Object instance, String key, Object value) {
- assert !(instance instanceof String) : "Cannot use Strings with WeakMapping";
- setNative(instance, key, value);
- }
-
- private static native void setNative(Object instance, String key, Object value) /*-{
- if (!instance.@java.lang.Object::expando) {
- instance.@java.lang.Object::expando = {};
- }
- instance.@java.lang.Object::expando[':' + key] = value;
+ public static native Object get(Object instance, String key) /*-{
+ return instance.@java.lang.Object::expando[':' + key];
}-*/;
/**
@@ -59,7 +51,15 @@
* @param value the Object to associate with the key on the given source
* Object.
*/
- public static native Object get(Object instance, String key) /*-{
- return instance.@java.lang.Object::expando[':' + key];
- }-*/;
+ public static void set(Object instance, String key, Object value) {
+ assert !(instance instanceof String) : "Cannot use Strings with WeakMapping";
+ setNative(instance, key, value);
+ }
+
+ private static native void setNative(Object instance, String key, Object value) /*-{
+ if (!instance.@java.lang.Object::expando) {
+ instance.@java.lang.Object::expando = {};
+ }
+ instance.@java.lang.Object::expando[':' + key] = value;
+ }-*/;
}