Skip to content

Commit 8e4eb96

Browse files
authored
test: exclude UnsafeNativeLong for duplicate class (#5160)
GWT classes are excluded. Guava-GWT is added because we start using guava-bom. However GWT (the technology that works on browser) is not intended to communicate with Google Cloud through Cloud Java client library.
1 parent eb90067 commit 8e4eb96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/src/test/java/com/google/cloud/BomContentTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,14 @@ private static void assertUniqueClasses(List<Artifact> allArtifacts)
138138
for (String className : classPathEntry.getFileNames()) {
139139
if (className.contains("javax.annotation")
140140
|| className.contains("$")
141+
|| className.endsWith("package-info")
141142
|| className.equals("com.google.cloud.location.LocationsGrpc")
142-
|| className.endsWith("package-info")) {
143+
|| className.equals("com.google.gwt.core.client.UnsafeNativeLong")
144+
) {
143145
// Ignore annotations, nested classes, and package-info files.
144146
// Ignore LocationsGrpc classes which are duplicated in generated grpc libraries.
147+
// Ignore GWT's UnsafeNativeLong, which appear in om.google.gwt:gwt-dev:2.9.0 and
148+
// com.google.jsinterop:base:1.0.0.
145149
continue;
146150
}
147151

0 commit comments

Comments
 (0)