Fixes GenerateJavaScriptAST to not produce duplicate native polymorphic methods.

http://gwt-code-reviews.appspot.com/177801
Review by: spoon


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7711 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
index 58d86ac..f088dd0 100644
--- a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
@@ -374,9 +374,9 @@
          * causes no harm. 
          */
         jsFunction = new JsFunction(sourceInfo, topScope, globalName, true);
-        if (polymorphicNames.containsKey(x)) {
-          polymorphicJsFunctions.add(jsFunction);
-        }
+      }
+      if (polymorphicNames.containsKey(x)) {
+        polymorphicJsFunctions.add(jsFunction);
       }
       methodBodyMap.put(x.getBody(), jsFunction);
       jsFunction.getSourceInfo().addCorrelation(