Skip to content

Commit

Permalink
Remove deprecated or internal types, mark unused code deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Feb 12, 2024
1 parent a848ffa commit ed68198
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 216 deletions.
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
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
32 changes: 0 additions & 32 deletions dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerLibraries.java

This file was deleted.

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

This file was deleted.

This file was deleted.

0 comments on commit ed68198

Please sign in to comment.