Various cleanup around the code base

Change-Id: I3cb498d8228f33508ba7b2b23c10a3f6aec3afb0
(cherry picked from commit 51efd1dee50d9e5e8acb77daf93cf5bbd2f78ee2)
diff --git a/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java b/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java
index 70c56db..909a9cc 100644
--- a/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java
+++ b/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java
@@ -390,7 +390,7 @@
     options.foldConstants = true;
     options.coalesceVariableNames = true;
     options.deadAssignmentElimination = true;
-    options.extractPrototypeMemberDeclarations = true;
+    options.setExtractPrototypeMemberDeclarations(true);
     options.collapseVariableDeclarations = true;
     options.convertToDottedProperties = true;
     options.rewriteFunctionExpressions = true;
diff --git a/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java b/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java
index 881435e..fba9390 100644
--- a/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java
+++ b/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java
@@ -23,19 +23,6 @@
 
   private static ShellJavaScriptHost sHost;
 
-  /**
-   * Throws {@code NullPointerException} if {@code o} is null.
-   *<p>
-   * Used by {@code RewriteJsniMethods} to ensure JSO instance methods
-   * are not called against null instances.
-   */
-  public static Object checkNotNull(Object o) {
-    if (o == null) {
-      throw new NullPointerException("JSO instance was null");
-    }
-    return o;
-  }
-
   public static void exceptionCaught(Object exception) {
     sHost.exceptionCaught(exception);
   }
diff --git a/dev/core/src/com/google/gwt/dev/util/arg/JsInteropMode.java~HEAD b/dev/core/src/com/google/gwt/dev/util/arg/JsInteropMode.java~HEAD
deleted file mode 100644
index 2f9dfb7..0000000
--- a/dev/core/src/com/google/gwt/dev/util/arg/JsInteropMode.java~HEAD
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.google.gwt.dev.util.arg;
-
-/**
- * Specifies which level of JsInterop support is enabled in the compiler,
- * NONE, JS, and CLOSURE.
- */
-public enum JsInteropMode {
-  /**
-   * Disabled, interop annotations are no-ops.
-   */
-  NONE,
-  /**
-   * For hand coded, external JS, not run through an external compiler.
-   */
-  JS,
-  /**
-   * For cases where GWT code is post-optimized and checked with the Closure Compiler.
-   */
-  CLOSURE;
-}
diff --git a/user/src/com/google/gwt/animation/client/AnimationScheduler.java b/user/src/com/google/gwt/animation/client/AnimationScheduler.java
index fddd16e..d4d44a4 100644
--- a/user/src/com/google/gwt/animation/client/AnimationScheduler.java
+++ b/user/src/com/google/gwt/animation/client/AnimationScheduler.java
@@ -72,8 +72,8 @@
       AnimationSupportDetector supportDetector = GWT.create(AnimationSupportDetector.class);
       instance = (supportDetector != null && supportDetector.isNativelySupported())
              ? new AnimationSchedulerImplStandard() : new AnimationSchedulerImplTimer();
-   }
-   return instance;
+    }
+    return instance;
   }
 
   /**
diff --git a/user/src/com/google/gwt/cell/client/IconCellDecorator.java b/user/src/com/google/gwt/cell/client/IconCellDecorator.java
index bfcad46..7aeee08 100644
--- a/user/src/com/google/gwt/cell/client/IconCellDecorator.java
+++ b/user/src/com/google/gwt/cell/client/IconCellDecorator.java
@@ -24,7 +24,6 @@
 import com.google.gwt.safecss.shared.SafeStylesBuilder;
 import com.google.gwt.safecss.shared.SafeStylesUtils;
 import com.google.gwt.safehtml.client.SafeHtmlTemplates;
-import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
 import com.google.gwt.safehtml.shared.SafeHtml;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import com.google.gwt.safehtml.shared.SafeHtmlUtils;
diff --git a/user/src/com/google/gwt/core/client/impl/Impl.java b/user/src/com/google/gwt/core/client/impl/Impl.java
index 83bfd60..1aa1cb0 100644
--- a/user/src/com/google/gwt/core/client/impl/Impl.java
+++ b/user/src/com/google/gwt/core/client/impl/Impl.java
@@ -366,4 +366,4 @@
   private static native int watchdogEntryDepthSchedule() /*-{
     return $wnd.setTimeout(@Impl::watchdogEntryDepthRun(), 10);
   }-*/;
-}
\ No newline at end of file
+}
diff --git a/user/src/com/google/gwt/logging/server/JsonLogRecordServerUtil.java b/user/src/com/google/gwt/logging/server/JsonLogRecordServerUtil.java
index f6fc288..f52d5bc 100644
--- a/user/src/com/google/gwt/logging/server/JsonLogRecordServerUtil.java
+++ b/user/src/com/google/gwt/logging/server/JsonLogRecordServerUtil.java
@@ -1,12 +1,12 @@
 /*
  * Copyright 2010 Google Inc.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy of
  * the License at
- * 
+ *
  * http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the