Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated or internal types, mark unused code deprecated #9925

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions dev/core/src/com/google/gwt/dev/DevMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import com.google.gwt.dev.util.InstalledHelpInfo;
import com.google.gwt.dev.util.Util;
import com.google.gwt.dev.util.arg.ArgHandlerDeployDir;
import com.google.gwt.dev.util.arg.ArgHandlerDeprecatedDisableUpdateCheck;
import com.google.gwt.dev.util.arg.ArgHandlerExtraDir;
import com.google.gwt.dev.util.arg.ArgHandlerFilterJsInteropExports;
import com.google.gwt.dev.util.arg.ArgHandlerGenerateJsInteropExports;
Expand Down Expand Up @@ -246,7 +245,6 @@ public ArgProcessor(HostedModeOptions options) {
registerHandler(new ArgHandlerExtraDir(options));
registerHandler(new ArgHandlerModulePathPrefix(options));
registerHandler(new ArgHandlerWorkDirOptional(options));
registerHandler(new ArgHandlerDeprecatedDisableUpdateCheck());
registerHandler(new ArgHandlerMethodNameDisplayMode(options));
registerHandler(new ArgHandlerSourceLevel(options));
registerHandler(new ArgHandlerGenerateJsInteropExports(options));
Expand Down
5 changes: 5 additions & 0 deletions dev/core/src/com/google/gwt/dev/GetJreEmulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
/**
* Entry point that outputs the GWT JRE support.
*/
@Deprecated
public class GetJreEmulation {

/**
Expand Down Expand Up @@ -68,6 +69,10 @@ public static void main(String[] args) {
PrintWriterTreeLogger logger = new PrintWriterTreeLogger(new PrintWriter(
System.err, true));
logger.setMaxDetail(TreeLogger.WARN);
logger.log(TreeLogger.Type.WARN,
"GetJreEmulation is deprecated for removal, please consider other options to get " +
"this information from the GWT jar. See https://github.com/gwtproject/gwt/issues/9923 " +
"to discuss other options.");
CompilerContext.Builder compilerContextBuilder = new CompilerContext.Builder();
CompilerContext compilerContext = compilerContextBuilder.build();
ModuleDef module =
Expand Down
10 changes: 0 additions & 10 deletions dev/core/src/com/google/gwt/dev/PrecompileTaskArgProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.google.gwt.dev.util.arg.ArgHandlerClosureFormattedOutput;
import com.google.gwt.dev.util.arg.ArgHandlerCompileReport;
import com.google.gwt.dev.util.arg.ArgHandlerCompilerMetrics;
import com.google.gwt.dev.util.arg.ArgHandlerDeprecatedDisableUpdateCheck;
import com.google.gwt.dev.util.arg.ArgHandlerDeprecatedOptimizeDataflow;
import com.google.gwt.dev.util.arg.ArgHandlerDisableCastChecking;
import com.google.gwt.dev.util.arg.ArgHandlerDisableClassMetadata;
Expand All @@ -38,21 +37,17 @@
import com.google.gwt.dev.util.arg.ArgHandlerFragmentMerge;
import com.google.gwt.dev.util.arg.ArgHandlerGenDir;
import com.google.gwt.dev.util.arg.ArgHandlerGenerateJsInteropExports;
import com.google.gwt.dev.util.arg.ArgHandlerIncrementalCompileWarnings;
import com.google.gwt.dev.util.arg.ArgHandlerJsonSoyc;
import com.google.gwt.dev.util.arg.ArgHandlerMethodNameDisplayMode;
import com.google.gwt.dev.util.arg.ArgHandlerMissingDepsFile;
import com.google.gwt.dev.util.arg.ArgHandlerNamespace;
import com.google.gwt.dev.util.arg.ArgHandlerOptimize;
import com.google.gwt.dev.util.arg.ArgHandlerOverlappingSourceWarnings;
import com.google.gwt.dev.util.arg.ArgHandlerSaveSource;
import com.google.gwt.dev.util.arg.ArgHandlerScriptStyle;
import com.google.gwt.dev.util.arg.ArgHandlerSetProperties;
import com.google.gwt.dev.util.arg.ArgHandlerSourceLevel;
import com.google.gwt.dev.util.arg.ArgHandlerSoyc;
import com.google.gwt.dev.util.arg.ArgHandlerSoycDetailed;
import com.google.gwt.dev.util.arg.ArgHandlerStrict;
import com.google.gwt.dev.util.arg.ArgHandlerStrictResources;
import com.google.gwt.dev.util.arg.ArgHandlerValidateOnlyFlag;

class PrecompileTaskArgProcessor extends CompileArgProcessor {
Expand All @@ -71,29 +66,24 @@ public PrecompileTaskArgProcessor(PrecompileTaskOptions options) {
registerHandler(new ArgHandlerDisableOrdinalizeEnums(options));
registerHandler(new ArgHandlerDisableRunAsync(options));
registerHandler(new ArgHandlerDisableSoycHtml(options));
registerHandler(new ArgHandlerDeprecatedDisableUpdateCheck());
registerHandler(new ArgHandlerDraftCompile(options));
registerHandler(new ArgHandlerDumpSignatures());
registerHandler(new ArgHandlerEnableAssertions(options));
registerHandler(new ArgHandlerFragmentCount(options));
registerHandler(new ArgHandlerFragmentMerge(options));
registerHandler(new ArgHandlerGenDir(options));
registerHandler(new ArgHandlerIncrementalCompileWarnings());
registerHandler(new ArgHandlerGenerateJsInteropExports(options));
registerHandler(new ArgHandlerFilterJsInteropExports(options));
registerHandler(new ArgHandlerMethodNameDisplayMode(options));
registerHandler(new ArgHandlerMissingDepsFile());
registerHandler(new ArgHandlerNamespace(options));
registerHandler(new ArgHandlerOptimize(options));
registerHandler(new ArgHandlerOverlappingSourceWarnings());
registerHandler(new ArgHandlerSaveSource(options));
registerHandler(new ArgHandlerSetProperties(options));
registerHandler(new ArgHandlerScriptStyle(options));
registerHandler(new ArgHandlerSoyc(options));
registerHandler(new ArgHandlerSoycDetailed(options));
registerHandler(new ArgHandlerJsonSoyc(options));
registerHandler(new ArgHandlerStrict(options));
registerHandler(new ArgHandlerStrictResources());
registerHandler(new ArgHandlerValidateOnlyFlag(options));
registerHandler(new ArgHandlerSourceLevel(options));
}
Expand Down
4 changes: 4 additions & 0 deletions dev/core/src/com/google/gwt/dev/RunWebApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* An utility class for running web apps with Jetty and launching the default
* browser.
*/
@Deprecated
public class RunWebApp {

interface RunWebAppOptions extends OptionStartupURLs, OptionPort {
Expand Down Expand Up @@ -130,6 +131,9 @@ public RunWebApp(RunWebAppOptions options) {

protected void run() {
PrintWriterTreeLogger logger = new PrintWriterTreeLogger();
logger.log(TreeLogger.Type.WARN,
"RunWebApp is deprecated for removal, please run your server directly. Visit " +
"https://github.com/gwtproject/gwt/issues/9923 to discuss other options.");
logger.setMaxDetail(TreeLogger.WARN);
int port = options.getPort();
try {
Expand Down
1 change: 1 addition & 0 deletions dev/core/src/com/google/gwt/dev/SignatureDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import java.io.PrintStream;

@Deprecated
class SignatureDumper {

public interface Filter {
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions dev/core/src/com/google/gwt/dev/shell/WorkDirs.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* Provides information about work directories.
*/
@Deprecated
public interface WorkDirs {
/**
* Gets the compiler output directory for a particular module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/**
* Tree logger that logs servlet context information.
*/
@Deprecated
public class ServletContextTreeLogger extends AbstractTreeLogger {

private final ServletContext ctx;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ public byte[] rewrite(TypeOracle typeOracle, String className,

v = new RewriteJsniMethods(v, anonymousClassMap);

if (Double.parseDouble(System.getProperty("java.class.version")) < Opcodes.V1_8) {
// TODO(cromwellian) implement Retrolambda?
v = new ForceClassVersion15(v);
}

new ClassReader(classBytes).accept(v, 0);
classBytesRewriteEvent.end();
return writer.toByteArray();
Expand Down

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerLibraries.java

This file was deleted.