Skip to content

Commit

Permalink
Regenerates the golden files with the update script.
Browse files Browse the repository at this point in the history
Previously, these files were updated manually, leading to inconsistencies such as missing comments and extra imports.

PiperOrigin-RevId: 687331118
  • Loading branch information
jDramaix authored and copybara-github committed Oct 18, 2024
1 parent b9cb6a6 commit 1872dc6
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ public class MyLibThirdPartyClass<T> extends ThirdPartyClass<T> {
public ThirdParty2Class extraField;

public MyLibThirdPartyClass(ThirdPartyClass.ConstructorFooUnionType foo) {
// This super call is here only for the code to compile; it is never executed.
super((ThirdPartyClass.ConstructorFooUnionType) null);
}

public MyLibThirdPartyClass(String foo) {
// This super call is here only for the code to compile; it is never executed.
super((ThirdPartyClass.ConstructorFooUnionType) null);
}

public MyLibThirdPartyClass(double foo) {
// This super call is here only for the code to compile; it is never executed.
super((ThirdPartyClass.ConstructorFooUnionType) null);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.dependency;


import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.generator.externs.dependency.parentthirdparty.ParentThirdPartyInterface;
Expand All @@ -12,6 +11,7 @@ public class SimpleClass extends ThirdPartyClass implements ThirdPartyInterface
public ThirdPartyClass field;

public SimpleClass() {
// This super call is here only for the code to compile; it is never executed.
super((ThirdPartyClass.ConstructorFooUnionType) null);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package jsinterop.generator.externs.entitiesrenaming;

import java.lang.Double;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.functiontype;

import java.lang.String;
import jsinterop.annotations.JsFunction;

@JsFunction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class SimpleClassChild extends SimpleClass<String> {
public SimpleClassChild() {
// This super call is here only for the code to compile; it is never executed.
super((String) null);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.globalscope;

import java.lang.String;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.inheritance;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.inheritance;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

Expand All @@ -9,7 +8,7 @@ public class ParentClass extends GreatParentClass {
public double parentClassProperty;

public ParentClass() {
// This call is only there for java compilation purpose.
// This super call is here only for the code to compile; it is never executed.
super((String) null, false, 0);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.inheritance;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.iobjectiarraylike;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.JsPropertyMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, name = "namespacewithtypeonly.Interface", namespace = JsPackage.GLOBAL)
public interface Interface {}
public interface Interface {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ import jsinterop.annotations.JsType;
isNative = true,
name = "namespace.nestednamespace.InterfaceFromNestedNamespace",
namespace = JsPackage.GLOBAL)
public interface InterfaceFromNestedNamespace {}
public interface InterfaceFromNestedNamespace {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public class Nestednamespace {
public static NamespacedInterface staticProperty;

public static native void staticFunction();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.optionalparameters;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package jsinterop.generator.externs.simpleclass;

import java.lang.String;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

Expand Down

0 comments on commit 1872dc6

Please sign in to comment.