Revision: 8294
Author: [email protected]
Date: Tue Jun 22 06:26:45 2010
Log: Reduce Eclipse warnings to a dull roar

Review at http://gwt-code-reviews.appspot.com/640802

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=8294

Modified:
 /trunk/dev/core/src/com/google/gwt/core/ext/linker/Artifact.java
 /trunk/dev/core/src/com/google/gwt/core/ext/linker/ArtifactSet.java
/trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
 /trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/SizeMapRecorder.java
/trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardFunctionMember.java
 /trunk/dev/core/src/com/google/gwt/dev/HeadlessUI.java
 /trunk/dev/core/src/com/google/gwt/dev/WebServerPanel.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
 /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java
 /trunk/dev/core/src/com/google/gwt/dev/js/JsStaticEval.java
 /trunk/dev/core/src/com/google/gwt/dev/js/ast/JsName.java
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/DispatchClassInfo.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/JavaDispatchImpl.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/JavaObject.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/Jsni.java
/trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/CommonsLoggerAdapter.java /trunk/dev/core/src/com/google/gwt/dev/util/collect/IdentitySingletonMap.java
 /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
/trunk/user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java
 /trunk/user/src/com/google/gwt/dom/client/DOMImplSafari.java
 /trunk/user/src/com/google/gwt/event/dom/client/PrivateMap.java
 /trunk/user/src/com/google/gwt/i18n/client/impl/ConstantMap.java
 /trunk/user/src/com/google/gwt/junit/CompileStrategy.java
 /trunk/user/src/com/google/gwt/logging/client/DefaultLevel.java
 /trunk/user/src/com/google/gwt/logging/client/FirebugLogHandler.java
 /trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java
 /trunk/user/src/com/google/gwt/logging/client/SystemLogHandler.java
 /trunk/user/src/com/google/gwt/logging/client/TextLogFormatter.java
 /trunk/user/src/com/google/gwt/resources/css/ast/CssCompilerException.java
 /trunk/user/src/com/google/gwt/uibinder/elementparsers/InterpreterPipe.java
 /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java
/trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java
 /trunk/user/src/com/google/gwt/user/client/ui/FastStringMap.java
 /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
 /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java
 /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
 /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
 /trunk/user/src/com/google/gwt/user/rebind/rpc/SerializationUtils.java
 /trunk/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java
 /trunk/user/src/com/google/gwt/util/regexfilter/RegexFilter.java
/trunk/user/test/com/google/gwt/emultest/benchmarks/java/util/ArrayListBenchmark.java
 /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/FooImage.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/core/ext/linker/Artifact.java Wed Mar 3 09:01:30 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/Artifact.java Tue Jun 22 06:26:45 2010
@@ -58,7 +58,7 @@
    */
   @Override
   public final boolean equals(Object obj) {
-    if (obj instanceof Artifact) {
+    if (obj instanceof Artifact<?>) {
       return compareTo((Artifact<?>) obj) == 0;
     } else {
       return false;
=======================================
--- /trunk/dev/core/src/com/google/gwt/core/ext/linker/ArtifactSet.java Mon Apr 6 06:27:37 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/ArtifactSet.java Tue Jun 22 06:26:45 2010
@@ -103,7 +103,7 @@
    * UnsupportedOperationException.
    */
   public void freeze() {
-    if (treeSet instanceof TreeSet) {
+    if (treeSet instanceof TreeSet<?>) {
       treeSet = Collections.unmodifiableSortedSet(treeSet);
     }
   }
=======================================
--- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Thu Apr 15 12:40:56 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Tue Jun 22 06:26:45 2010
@@ -226,6 +226,11 @@
         + ".nocache.js", lastModified);
   }

+  /**
+   * @param logger a TreeLogger
+   * @param context a LinkerContext
+   * @param fragment the fragment number
+   */
   protected String generateDeferredFragment(TreeLogger logger,
       LinkerContext context, int fragment, String js) {
     return js;
=======================================
--- /trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/SizeMapRecorder.java Thu May 27 07:33:47 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/SizeMapRecorder.java Tue Jun 22 06:26:45 2010
@@ -157,6 +157,9 @@
     builder.append(c, lastIndex, len - lastIndex);
   }

+  /**
+   * @param logger a TreeLogger
+   */
   public static void recordMap(TreeLogger logger, OutputStream out,
       SizeBreakdown[] sizeBreakdowns, JavaToJavaScriptMap jjsmap,
       Map<JsName, String> obfuscateMap) throws IOException {
=======================================
--- /trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardFunctionMember.java Wed Oct 28 09:10:53 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardFunctionMember.java Tue Jun 22 06:26:45 2010
@@ -28,6 +28,8 @@

   /**
    * Constructed by {...@link MemberFactory#get(JsFunction)}.
+   *
+   * @param factory a MemberFactory instance
    */
public StandardFunctionMember(MemberFactory factory, JsFunction function) {
     super(function.getSourceInfo());
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/HeadlessUI.java Thu Nov 19 12:24:42 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/HeadlessUI.java Tue Jun 22 06:26:45 2010
@@ -25,6 +25,9 @@
  */
 public class HeadlessUI extends DevModeUI {

+  /**
+   * @param options unused
+   */
   public HeadlessUI(HostedModeBaseOptions options) {
   }

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/WebServerPanel.java Mon Nov 23 16:21:36 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/WebServerPanel.java Tue Jun 22 06:26:45 2010
@@ -44,6 +44,9 @@
     this(serverPort, maxLevel, logFile, null);
   }

+  /**
+   * @param serverPort the server port number
+   */
   public WebServerPanel(int serverPort, TreeLogger.Type maxLevel,
       File logFile, final RestartAction restartServerAction) {
     super(new BorderLayout());
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java Thu Jun 17 10:13:10 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java Tue Jun 22 06:26:45 2010
@@ -79,7 +79,7 @@
* @param slashedPackageName the '/' separated name of the package to find
      * @return <code>true</code> if such a package exists
      */
-    public boolean doFindAdditionalPackage(String slashedPackageName);
+    boolean doFindAdditionalPackage(String slashedPackageName);

     /**
* Finds a new compilation unit on-the-fly for the requested type, if there
@@ -89,7 +89,7 @@
* @return a unit answering the name, or <code>null</code> if no such unit
      *         can be created
      */
-    public GeneratedUnit doFindAdditionalType(String binaryName);
+    GeneratedUnit doFindAdditionalType(String binaryName);
   }

   /**
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java Thu Mar 11 17:23:20 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java Tue Jun 22 06:26:45 2010
@@ -328,6 +328,9 @@
     return splitPoints.get(0);
   }

+  /**
+   * @param numSplitPoints the total number of split points
+   */
   public static int getExclusiveFragmentNumber(int splitPoint,
       int numSplitPoints) {
     return splitPoint;
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/js/JsStaticEval.java Fri Nov 6 10:45:00 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/js/JsStaticEval.java Tue Jun 22 06:26:45 2010
@@ -830,6 +830,7 @@
     return (new JsStaticEval(program)).execImpl();
   }

+  @SuppressWarnings("unchecked")
   public static <T extends JsVisitable> T exec(JsProgram program, T node) {
     return (new JsStaticEval(program)).execImpl(node);
   }
@@ -939,6 +940,7 @@
     return sev.didChange();
   }

+  @SuppressWarnings("unchecked")
   public <T extends JsVisitable> T execImpl(T node) {
     return new StaticEvalVisitor().accept(node);
   }
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/js/ast/JsName.java Fri Sep 26 08:20:00 2008 +++ /trunk/dev/core/src/com/google/gwt/dev/js/ast/JsName.java Tue Jun 22 06:26:45 2010
@@ -32,6 +32,7 @@
   /**
    * A back-reference to the JsNode that the JsName refers to.
    */
+  @SuppressWarnings("unchecked")
   private JsNode staticRef;

   /**
@@ -56,6 +57,7 @@
     return shortIdent;
   }

+  @SuppressWarnings("unchecked")
   public JsNode getStaticRef() {
     return staticRef;
   }
@@ -79,6 +81,7 @@
   /**
    * Should never be called except on immutable stuff.
    */
+  @SuppressWarnings("unchecked")
   public void setStaticRef(JsNode node) {
     this.staticRef = node;
   }
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java Fri Nov 13 07:52:59 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java Tue Jun 22 06:26:45 2010
@@ -59,9 +59,6 @@
     static final Message1String NEW_RESOURCE_FOUND = new Message1String(
         TreeLogger.DEBUG, "Found new resource: $0");

- static final Message0 NO_RESOURCES_CHANGED = new Message0(TreeLogger.DEBUG,
-        "No resources changed");
-
static final Message0 REFRESHING_RESOURCES = new Message0(TreeLogger.TRACE,
         "Refreshing resources");

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/DispatchClassInfo.java Mon Jun 21 06:21:29 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/DispatchClassInfo.java Tue Jun 22 06:26:45 2010
@@ -160,7 +160,7 @@
     } else if (member instanceof Method) {
       name = member.getName();
       paramTypes = ((Method) member).getParameterTypes();
-    } else if (member instanceof Constructor) {
+    } else if (member instanceof Constructor<?>) {
       name = "new";
       paramTypes = ((Constructor<?>) member).getParameterTypes();
     } else {
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java Thu Mar 25 10:46:07 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java Tue Jun 22 06:26:45 2010
@@ -143,6 +143,9 @@
     return htmlPage;
   }

+  /**
+   * @param jsContext the Context
+   */
   public Object getToStringTearOff(Context jsContext) {
     return toStringMethod;
   }
@@ -153,6 +156,7 @@
         + jsEngine.getWebClient().getBrowserVersion().getUserAgent();
   }

+  @SuppressWarnings("unchecked")
   @Override
public ExceptionOrReturnValue invoke(BrowserChannelClient channel, Value thisObj,
       String methodName, Value[] args) {
@@ -170,7 +174,7 @@
       Object obj = makeJsvalFromValue(jsContext, thisObj);
       if (obj instanceof ScriptableObject) {
         jsThis = (ScriptableObject) obj;
-      } else if (obj instanceof SimpleScriptableProxy) {
+      } else if (obj instanceof SimpleScriptableProxy<?>) {
jsThis = ((SimpleScriptableProxy<SimpleScriptable>) obj).getDelegee();
       } else {
logger.log(TreeLogger.ERROR, "Unable to convert " + obj + " to either "
@@ -235,6 +239,9 @@
     logger.log(TreeLogger.INFO, "LOAD_JSNI: scriptResult=" + scriptResult);
   }

+  /**
+   * @param jsContext the Context
+   */
   public Value makeValueFromJsval(Context jsContext, Object value) {
     if (value == Undefined.instance) {
       return new Value();
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/JavaDispatchImpl.java Wed Feb 18 17:08:17 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/JavaDispatchImpl.java Tue Jun 22 06:26:45 2010
@@ -106,7 +106,7 @@
     Member m = getMember(dispId);
     if (m instanceof Method) {
       return new MethodAdaptor((Method) m);
-    } else if (m instanceof Constructor) {
+    } else if (m instanceof Constructor<?>) {
       return new MethodAdaptor((Constructor<?>) m);
     } else {
       throw new RuntimeException();
@@ -140,7 +140,7 @@
     }

     Member m = getMember(dispId);
-    return (m instanceof Method) || (m instanceof Constructor);
+    return (m instanceof Method) || (m instanceof Constructor<?>);
   }

   /**
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/JavaObject.java Fri Feb 19 06:35:15 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/JavaObject.java Tue Jun 22 06:26:45 2010
@@ -44,6 +44,9 @@
         javaRef.getRefid(), context);
   }

+  /**
+   * @param cx the Context
+   */
   static ExceptionOrReturnValue getReturnFromJavaMethod(Context cx,
       HtmlUnitSessionHandler sessionHandler, BrowserChannelClient channel,
       int dispatchId, Value thisValue, Value valueArgs[]) {
@@ -66,6 +69,9 @@
     }
   }

+  /**
+   * @param jsContext the Context
+   */
static boolean isJavaObject(Context jsContext, ScriptableObject javaObject) {
     return javaObject instanceof JavaObject;
   }
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/Jsni.java Mon Nov 23 16:21:36 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/Jsni.java Tue Jun 22 06:26:45 2010
@@ -131,7 +131,7 @@
         int paramCount = 0;
         if (member instanceof Method) {
           paramCount = ((Method) member).getParameterTypes().length;
-        } else if (member instanceof Constructor) {
+        } else if (member instanceof Constructor<?>) {
paramCount = ((Constructor<?>) member).getParameterTypes().length;
         }

@@ -187,14 +187,14 @@
            * and rewrite the call site as though -1 is a valid dispid.
            */
           if (member == null || member instanceof Method
-              || member instanceof Constructor) {
+              || member instanceof Constructor<?>) {

             // Use a clone instead of modifying the original JSNI
             // __gwt_makeJavaInvoke(paramCount)(obj, dispId, args)
             int paramCount = 0;
             if (member instanceof Method) {
               paramCount = ((Method) member).getParameterTypes().length;
-            } else if (member instanceof Constructor) {
+            } else if (member instanceof Constructor<?>) {
paramCount = ((Constructor<?>) member).getParameterTypes().length;
             }

@@ -230,6 +230,8 @@
   /**
    * Gets the body of a JSNI method, with Java refs escaped for hosted mode
    * injection.
+   *
+   * @param logger a TreeLogger
    */
   public static String getJavaScriptForHostedMode(TreeLogger logger,
       DispatchIdOracle dispatchInfo, JsniMethod jsniMethod) {
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/CommonsLoggerAdapter.java Wed Dec 27 12:51:02 2006 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/CommonsLoggerAdapter.java Tue Jun 22 06:26:45 2010
@@ -24,6 +24,9 @@

   private TreeLogger log;

+  /**
+   * @param name unused
+   */
   public CommonsLoggerAdapter(String name) {
     // NOTE: this is ugly, but I don't know of any other way to get a
     // non-static log to which we can delegate.
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/util/collect/IdentitySingletonMap.java Wed Oct 28 09:10:53 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/util/collect/IdentitySingletonMap.java Tue Jun 22 06:26:45 2010
@@ -26,7 +26,7 @@

     @Override
     public boolean equals(Object o) {
-      if (!(o instanceof Entry)) {
+      if (!(o instanceof Entry<?, ?>)) {
         return false;
       }
       Entry<?, ?> entry = (Entry<?, ?>) o;
=======================================
--- /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java Thu May 27 07:33:47 2010 +++ /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java Tue Jun 22 06:26:45 2010
@@ -325,8 +325,7 @@
               Set<String> existingSet = sortedClasses.get(curSize);
               existingSet.add(className);
               sortedClasses.put(curSize, existingSet);
-            }
-            else {
+            } else {
               Set<String> newSet = new TreeSet<String>();
               newSet.add(className);
               sortedClasses.put(curSize, newSet);
@@ -352,7 +351,7 @@
       for (Integer size : sortedClasses.keySet()) {
         Set<String> classNames = sortedClasses.get(size);
         for (String className : classNames) {
-          float perc = ((float)size / (float)sumSize) * 100;
+          float perc = ((float) size / sumSize) * 100;
           outFile.println("<tr>");
           outFile.println("<td>" + className + "</a></td>");
           outFile.println("<td>");
@@ -433,8 +432,7 @@
             Set<String> existingSet = sortedClasses.get(curSize);
             existingSet.add(className);
             sortedClasses.put(curSize, existingSet);
-          }
-          else {
+          } else {
             Set<String> newSet = new TreeSet<String>();
             newSet.add(className);
             sortedClasses.put(curSize, newSet);
@@ -464,7 +462,7 @@
         Set<String> classNames = sortedClasses.get(size);
         for (String className : classNames) {
String drillDownFileName = depLinker.dependencyLinkForClass(className);
-          float perc = ((float)size / (float)sumSize) * 100;
+          float perc = ((float) size / (float) sumSize) * 100;
           outFile.println("<tr>");
           if (drillDownFileName == null) {
             outFile.println("<td>" + className + "</td>");
@@ -575,7 +573,7 @@

         int size = breakdown.sizeAllCode;
         float perc;
-        perc = ((float)size / (float)maxSize) * 100;
+        perc = ((float) size / (float) maxSize) * 100;

         outFile.println("<tr>");
         outFile.println("<td>" + i + "</td>");
@@ -726,8 +724,7 @@
           Set<String> existingSet = sortedCodeTypes.get(curSize);
           existingSet.add(codeType);
           sortedCodeTypes.put(curSize, existingSet);
-        }
-        else {
+        } else {
           Set<String> newSet = new TreeSet<String>();
           newSet.add(codeType);
           sortedCodeTypes.put(curSize, newSet);
@@ -755,7 +752,7 @@
       for (String codeType : codeTypes) {
         String drillDownFileName = breakdown.getId() + "_" + codeType + "-"
             + getPermutationId() + "Classes.html";
-        float perc = ((float)size / (float)sumSize) * 100;
+        float perc = ((float) size / (float) sumSize) * 100;
         outFile.println("<tr>");
         outFile.println("<td><a href=\"" + drillDownFileName
             + "\" target=\"_top\">" + codeType + "</a></td>");
@@ -897,8 +894,7 @@
         Set<String> existingSet = sortedPackages.get(curSize);
         existingSet.add(packageName);
         sortedPackages.put(curSize, existingSet);
-      }
-      else {
+      } else {
         Set<String> newSet = new TreeSet<String>();
         newSet.add(packageName);
         sortedPackages.put(curSize, newSet);
@@ -926,7 +922,7 @@
       for (String packageName : packageNames) {
         String drillDownFileName = classesInPackageFileName(breakdown,
             packageName, getPermutationId());
-        float perc = ((float)size / (float)sumSize) * 100;
+        float perc = (size / sumSize) * 100;
         outFile.println("<tr>");
         outFile.println("<td><a href=\"" + drillDownFileName
             + "\" target=\"_top\">" + packageName + "</a></td>");
=======================================
--- /trunk/user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java Thu May 20 05:21:35 2010 +++ /trunk/user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java Tue Jun 22 06:26:45 2010
@@ -40,6 +40,7 @@
       return (IntToIntMap) JavaScriptObject.createArray();
     }

+    @SuppressWarnings("unused")
     protected IntToIntMap() {
     }

=======================================
--- /trunk/user/src/com/google/gwt/dom/client/DOMImplSafari.java Wed Mar 10 06:34:13 2010 +++ /trunk/user/src/com/google/gwt/dom/client/DOMImplSafari.java Tue Jun 22 06:26:45 2010
@@ -23,6 +23,8 @@
 class DOMImplSafari extends DOMImplStandard {

   private static class ClientRect extends JavaScriptObject {
+
+    @SuppressWarnings("unused")
     protected ClientRect() {
     }

=======================================
--- /trunk/user/src/com/google/gwt/event/dom/client/PrivateMap.java Mon Nov 23 16:21:36 2009 +++ /trunk/user/src/com/google/gwt/event/dom/client/PrivateMap.java Tue Jun 22 06:26:45 2010
@@ -38,6 +38,7 @@
       return JavaScriptObject.createObject().cast();
     }

+    @SuppressWarnings("unused")
     protected JsMap() {
     }

=======================================
--- /trunk/user/src/com/google/gwt/i18n/client/impl/ConstantMap.java Fri Feb 6 13:06:24 2009 +++ /trunk/user/src/com/google/gwt/i18n/client/impl/ConstantMap.java Tue Jun 22 06:26:45 2010
@@ -45,7 +45,7 @@

     @Override
     public boolean equals(Object o) {
-      if (o instanceof Map.Entry) {
+      if (o instanceof Map.Entry<?, ?>) {
         Map.Entry<?, ?> other = (Map.Entry<?, ?>) o;
         // Key and value known to be non-null.
         if (key.equals(other.getKey()) && value.equals(other.getValue())) {
@@ -123,7 +123,7 @@
     return new AbstractSet<Entry<String, String>>() {
       @Override
       public boolean contains(Object o) {
-        if (!(o instanceof Entry)) {
+        if (!(o instanceof Entry<?, ?>)) {
           return false;
         }
         Entry<?, ?> other = (Entry<?, ?>) o;
=======================================
--- /trunk/user/src/com/google/gwt/junit/CompileStrategy.java Fri Apr 23 06:39:33 2010 +++ /trunk/user/src/com/google/gwt/junit/CompileStrategy.java Tue Jun 22 06:26:45 2010
@@ -78,7 +78,6 @@
    *
    * @throws UnableToCompleteException if the compilation fails
    */
-  @SuppressWarnings("unused")
   public void maybeCompileAhead() throws UnableToCompleteException {
   }

=======================================
--- /trunk/user/src/com/google/gwt/logging/client/DefaultLevel.java Tue Jun 15 15:09:25 2010 +++ /trunk/user/src/com/google/gwt/logging/client/DefaultLevel.java Tue Jun 22 06:26:45 2010
@@ -25,7 +25,7 @@
  */
 public interface DefaultLevel {
   /**
-   * Returns Level.ALL as the default level
+   * Returns Level.ALL as the default level.
    */
   public class All implements DefaultLevel {
     public Level getLevel() {
@@ -34,7 +34,7 @@
   }

   /**
-   * Returns Level.CONFIG as the default level
+   * Returns Level.CONFIG as the default level.
    */
   public class Config implements DefaultLevel {
     public Level getLevel() {
@@ -43,7 +43,7 @@
   }

   /**
-   * Returns Level.FINE as the default level
+   * Returns Level.FINE as the default level.
    */
   public class Fine implements DefaultLevel {
     public Level getLevel() {
@@ -52,7 +52,7 @@
   }

   /**
-   * Returns Level.FINER as the default level
+   * Returns Level.FINER as the default level.
    */
   public class Finer implements DefaultLevel {
     public Level getLevel() {
@@ -61,7 +61,7 @@
   }

   /**
-   * Returns Level.FINEST as the default level
+   * Returns Level.FINEST as the default level.
    */
   public class Finest implements DefaultLevel {
     public Level getLevel() {
@@ -70,7 +70,7 @@
   }

   /**
-   * Returns Level.INFO as the default level
+   * Returns Level.INFO as the default level.
    */
   public class Info implements DefaultLevel {
     public Level getLevel() {
@@ -79,7 +79,7 @@
   }

   /**
-   * Returns Level.SEVERE as the default level
+   * Returns Level.SEVERE as the default level.
    */
   public class Severe implements DefaultLevel {
     public Level getLevel() {
@@ -88,7 +88,7 @@
   }

   /**
-   * Returns Level.WARNING as the default level
+   * Returns Level.WARNING as the default level.
    */
   public class Warning implements DefaultLevel {
     public Level getLevel() {
=======================================
--- /trunk/user/src/com/google/gwt/logging/client/FirebugLogHandler.java Tue Jun 15 15:09:25 2010 +++ /trunk/user/src/com/google/gwt/logging/client/FirebugLogHandler.java Tue Jun 22 06:26:45 2010
@@ -21,7 +21,7 @@
 import java.util.logging.LogRecord;

 /**
- * A Handler that prints logs to window.console which is used by Firebug
+ * A Handler that prints logs to window.console which is used by Firebug.
* Note we are consciously using 'window' rather than '$wnd' to avoid issues
  * similar to http://code.google.com/p/fbug/issues/detail?id=2914
  */
=======================================
--- /trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java Wed Jun 16 09:32:10 2010 +++ /trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java Tue Jun 22 06:26:45 2010
@@ -44,7 +44,7 @@
 public class LoggingPopup extends PopupPanel {

   /**
-   * Handles the logic to track click-drag movements with the mouse
+   * Handles the logic to track click-drag movements with the mouse.
    */
   private abstract class MouseDragHandler implements MouseMoveHandler,
   MouseUpHandler, MouseDownHandler {
=======================================
--- /trunk/user/src/com/google/gwt/logging/client/SystemLogHandler.java Tue Jun 15 15:09:25 2010 +++ /trunk/user/src/com/google/gwt/logging/client/SystemLogHandler.java Tue Jun 22 06:26:45 2010
@@ -23,7 +23,7 @@
 import java.util.logging.LogRecord;

 /**
- * A Handler that prints logs to System.out or System.err
+ * A Handler that prints logs to System.out or System.err.
  */
 public class SystemLogHandler extends Handler {

=======================================
--- /trunk/user/src/com/google/gwt/logging/client/TextLogFormatter.java Tue Jun 15 15:09:25 2010 +++ /trunk/user/src/com/google/gwt/logging/client/TextLogFormatter.java Tue Jun 22 06:26:45 2010
@@ -21,7 +21,7 @@
 import java.util.logging.LogRecord;

 /**
- * Formats LogRecords into 2 lines of text
+ * Formats LogRecords into 2 lines of text.
  */
 public class TextLogFormatter extends Formatter {

=======================================
--- /trunk/user/src/com/google/gwt/resources/css/ast/CssCompilerException.java Mon Oct 26 14:02:26 2009 +++ /trunk/user/src/com/google/gwt/resources/css/ast/CssCompilerException.java Tue Jun 22 06:26:45 2010
@@ -27,6 +27,9 @@
     super(message, cause);
   }

+  /**
+   * @param node TODO
+   */
   // FIXME - what does this do?
   void addNode(CssNode node) {
   }
=======================================
--- /trunk/user/src/com/google/gwt/uibinder/elementparsers/InterpreterPipe.java Fri Nov 6 16:08:46 2009 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/InterpreterPipe.java Tue Jun 22 06:26:45 2010
@@ -70,7 +70,7 @@
    */
public String postProcess(String consumedText) throws UnableToCompleteException {
     for (XMLElement.Interpreter<T> i : pipe) {
-      if (i instanceof PostProcessingInterpreter) {
+      if (i instanceof PostProcessingInterpreter<?>) {
consumedText = ((PostProcessingInterpreter<T>) i).postProcess(consumedText);
       }
     }
=======================================
--- /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Fri May 28 05:09:29 2010 +++ /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Tue Jun 22 06:26:45 2010
@@ -87,7 +87,7 @@

   @Override
   public native void initEventSystem() /*-{
- // All GWT apps on the page register themselves with the globelEventArray + // All GWT apps on the page register themselves with the globalEventArray // so that the first app to handle an event can allow all apps on the page
     // to preview it. See issue 3892 for more details.
     //
=======================================
--- /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java Mon Apr 19 10:54:02 2010 +++ /trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Collections.java Tue Jun 22 06:26:45 2010
@@ -110,13 +110,13 @@
         List instance) throws SerializationException {
     }

-    @SuppressWarnings({"unused", "unchecked"})
+    @SuppressWarnings("unchecked")
     public static List instantiate(SerializationStreamReader streamReader)
         throws SerializationException {
return java.util.Collections.singletonList(streamReader.readObject());
     }

-    @SuppressWarnings({"unused", "unchecked"})
+    @SuppressWarnings("unchecked")
     public static void serialize(SerializationStreamWriter streamWriter,
         List instance) throws SerializationException {
       streamWriter.writeObject(instance.get(0));
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/FastStringMap.java Thu Apr 17 14:40:44 2008 +++ /trunk/user/src/com/google/gwt/user/client/ui/FastStringMap.java Tue Jun 22 06:26:45 2010
@@ -47,7 +47,7 @@

     @Override
     public boolean equals(Object a) {
-      if (a instanceof Map.Entry) {
+      if (a instanceof Map.Entry<?, ?>) {
         Map.Entry<?, ?> s = (Map.Entry<?, ?>) a;
         if (equalsWithNullCheck(key, s.getKey())
             && equalsWithNullCheck(value, s.getValue())) {
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java Tue Jun 22 06:26:45 2010
@@ -53,7 +53,6 @@
  *
  * @see SplitLayoutPanel
  */
-...@suppresswarnings("deprecation")
 @Deprecated
 public final class HorizontalSplitPanel extends SplitPanel {
   /**
@@ -175,8 +174,7 @@
      * @param rightElem
      * @param newRightWidth
      */
- public void updateRightWidth(@SuppressWarnings("unused") Element rightElem,
-        @SuppressWarnings("unused") int newRightWidth) {
+    public void updateRightWidth(Element rightElem, int newRightWidth) {
       // No need to update the width of the right side; this will be
       // recomputed automatically by CSS. This is helpful, as we do not
       // have to worry about watching for resize events and adjusting the
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java Tue Jun 22 06:26:45 2010
@@ -68,7 +68,6 @@
  */

//Cannot do anything about tab panel implementing TabListener until next release.
-...@suppresswarnings("deprecation")
 @Deprecated
 public class TabPanel extends Composite implements TabListener,
     SourcesTabEvents, HasWidgets, HasAnimation, IndexedPanel,
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java Tue Jun 22 06:26:45 2010
@@ -53,7 +53,6 @@
  *
  * @see SplitLayoutPanel
  */
-...@suppresswarnings("deprecation")
 @Deprecated
 public final class VerticalSplitPanel extends SplitPanel {
   /**
@@ -140,7 +139,7 @@
      * @param bottomHeight
      */
     protected void updateElements(Element topElem, Element splitElem,
- Element bottomElem, int topHeight, int bottomTop, @SuppressWarnings("unused") int bottomHeight) { + Element bottomElem, int topHeight, int bottomTop, int bottomHeight) {
       setHeight(topElem, topHeight + "px");

       setTop(splitElem, topHeight + "px");
=======================================
--- /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java Wed Mar 3 09:01:30 2010 +++ /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java Tue Jun 22 06:26:45 2010
@@ -377,6 +377,8 @@

   /**
    * Generate any fields required by the proxy.
+   *
+   * @param serializableTypeOracle the type oracle
    */
   protected void generateProxyFields(SourceWriter srcWriter,
       SerializableTypeOracle serializableTypeOracle,
@@ -394,6 +396,8 @@

   /**
    * Generates the client's asynchronous proxy method.
+   *
+   * @param serializableTypeOracle the type oracle
    */
   protected void generateProxyMethod(SourceWriter w,
       SerializableTypeOracle serializableTypeOracle, JMethod syncMethod,
=======================================
--- /trunk/user/src/com/google/gwt/user/rebind/rpc/SerializationUtils.java Fri Mar 19 08:12:41 2010 +++ /trunk/user/src/com/google/gwt/user/rebind/rpc/SerializationUtils.java Tue Jun 22 06:26:45 2010
@@ -66,8 +66,9 @@
* Returns the set of fields that are serializable for a given class type.
    * This method does not consider any superclass fields.
    *
+   * @param typeOracle the type oracle
    * @param classType the class for which we want serializable fields
-   * @return array of fields that meet the serialization criteria.
+   * @return array of fields that meet the serialization criteria
    */
   public static JField[] getSerializableFields(TypeOracle typeOracle,
       JClassType classType) {
=======================================
--- /trunk/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java Tue May 5 13:08:14 2009 +++ /trunk/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java Tue Jun 22 06:26:45 2010
@@ -156,7 +156,7 @@
     return Collections.unmodifiableMap(typeStrings);
   }

- public String realize(TreeLogger logger) throws UnableToCompleteException {
+  public String realize(TreeLogger logger) {
     logger = logger.branch(TreeLogger.DEBUG,
         "Generating TypeSerializer for service interface '"
             + getTypeSerializerClassName() + "'", null);
=======================================
--- /trunk/user/src/com/google/gwt/util/regexfilter/RegexFilter.java Fri Mar 26 13:29:42 2010 +++ /trunk/user/src/com/google/gwt/util/regexfilter/RegexFilter.java Tue Jun 22 06:26:45 2010
@@ -16,7 +16,6 @@

 package com.google.gwt.util.regexfilter;

-import com.google.gwt.core.ext.ConfigurationProperty;
 import com.google.gwt.core.ext.TreeLogger;
 import com.google.gwt.core.ext.UnableToCompleteException;

@@ -39,7 +38,6 @@

   public RegexFilter(TreeLogger logger, List<String> values)
       throws UnableToCompleteException {
-    ConfigurationProperty prop;
     this.values = values;
     int size = values.size();
     typePatterns = new ArrayList<Pattern>(size);
=======================================
--- /trunk/user/test/com/google/gwt/emultest/benchmarks/java/util/ArrayListBenchmark.java Thu Jun 17 12:36:29 2010 +++ /trunk/user/test/com/google/gwt/emultest/benchmarks/java/util/ArrayListBenchmark.java Tue Jun 22 06:26:45 2010
@@ -15,7 +15,6 @@
  */
 package com.google.gwt.emultest.benchmarks.java.util;

-
 import java.util.List;
 import java.util.ArrayList;

=======================================
--- /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java Mon Apr 19 10:16:17 2010 +++ /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java Tue Jun 22 06:26:45 2010
@@ -198,7 +198,7 @@
    * Need to file an HtmlUnit bug. TODO(amitmanjhi): contribute an HtmlUnit
    * patch.
    */
-  @DoNotRunWith( {Platform.HtmlUnitBug})
+  @DoNotRunWith({Platform.HtmlUnitBug})
   public void testSend_HEAD() throws RequestException {
     RequestBuilder builder = new RequestBuilder(RequestBuilder.HEAD,
         getTestBaseURL());
@@ -237,7 +237,7 @@
    * Need to file an HtmlUnit bug. TODO(amitmanjhi): contribute an HtmlUnit
    * patch.
    */
-  @DoNotRunWith( {Platform.HtmlUnitBug})
+  @DoNotRunWith({Platform.HtmlUnitBug})
   public void testSendRequest_HEAD() throws RequestException {
     RequestBuilder builder = new RequestBuilder(RequestBuilder.HEAD,
         getTestBaseURL());
=======================================
--- /trunk/user/test/com/google/gwt/uibinder/test/client/FooImage.java Fri Apr 2 07:37:08 2010 +++ /trunk/user/test/com/google/gwt/uibinder/test/client/FooImage.java Tue Jun 22 06:26:45 2010
@@ -18,7 +18,7 @@
 import com.google.gwt.user.client.ui.Image;

 /**
- * Tests that custom Image subclasses work
+ * Tests that custom Image subclasses work.
  */
 public class FooImage extends Image {
   public FooImage() {
=======================================
--- /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java Fri Apr 2 11:04:34 2010 +++ /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java Tue Jun 22 06:26:45 2010
@@ -201,7 +201,7 @@
     assertEquals("Custom dialog am I", widgetUi.fooDialog.getText());
     Widget body = widgetUi.fooDialog.iterator().next();
     assertTrue(body instanceof Label);
-    assertEquals("body", ((Label)body).getText());
+    assertEquals("body", ((Label) body).getText());
   }

   public void testDomAccessAndComputedAttributeOnPlaceholderedElement() {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to