aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3 ↵HEADandroid-14.0.0_r37android-14.0.0_r36android-14.0.0_r35android-14.0.0_r34android-14.0.0_r33android-14.0.0_r32android-14.0.0_r31android-14.0.0_r30android-14.0.0_r29mastermainandroid14-qpr2-s5-releaseandroid14-qpr2-s4-releaseandroid14-qpr2-s3-releaseandroid14-qpr2-s2-releaseandroid14-qpr2-s1-releaseandroid14-qpr2-releaseYifei Zhang
am: 278edfeffb am: 5ff202242e am: 820217dbd2 am: ea1cf67d10 Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: I83c10ceb7d338fd1791d717b833e2c7d589f7704 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3 ↵Yifei Zhang
am: 278edfeffb am: 5ff202242e am: 820217dbd2 Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: I7133f1496be2737fd4712e0991e5dfbe7845e8f5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3 ↵Yifei Zhang
am: 278edfeffb am: 5ff202242e Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: I6be35c08194a231d004d7c64fb4ec11f8da5a1b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3 ↵Yifei Zhang
am: 278edfeffb Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: I5e9f4c41529197d1ee784ba4a404373677406e8f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3Yifei Zhang
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: Iec79e1caf4aed1694b26b55f5f1a9564fd9fcf5b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186Yifei Zhang
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update turbine For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Bug: 292639985 Change-Id: Id7afe14197778d0dec6a746edfbd59c3a07e1795
2023-07-04Only emit package-info's if the source file's path is 'package-info.java'Liam Miller-Cushon
To avoid emitting duplicate symbols when there are other files that contain no classes, and to match javac's behaviour. PiperOrigin-RevId: 545473342
2023-06-26Write `package-info`s even if the package info doesn't contain any annotationsLiam Miller-Cushon
Similar to javac's `-Xpkginfo:always` PiperOrigin-RevId: 543487269
2023-06-02Prepare for stricter nullness stub for `Files.createDirectories`.cpovirk
PiperOrigin-RevId: 537332469
2023-05-31Add a debug option to enable emitting private fieldsLiam Miller-Cushon
By default, turbine doesn't emit private fields in class files, because they don't affect downstream compilations. This makes it possible to emit private fields by setting a javac debug flag. PiperOrigin-RevId: 536836786
2023-05-17Add support for source jars to `OverlayCompiler`.Éamonn McManus
This also implies adding that support to `TurbineTool`. PiperOrigin-RevId: 532899495
2023-05-17Ensure that source jars are closed after being read.Éamonn McManus
PiperOrigin-RevId: 532885339
2023-05-08Handle synthetic method parameters entries that don't have namesLiam Miller-Cushon
> If the value of the name_index item is zero, then this parameters element indicates a formal parameter with no name. https://docs.oracle.com/javase/specs/jvms/se20/html/jvms-4.html#jvms-4.7.24 PiperOrigin-RevId: 530356139
2023-04-07Use `java.util.function.Function` instead of `com.google.common.base.Function`.Éamonn McManus
Also rewrite some cases of `new Function<...>() {...}` to use lambdas or method references. PiperOrigin-RevId: 522676112
2023-02-27Update ci.ymlLiam Miller-Cushon
2023-01-23Check interface and non-interface types in `extends` and `implements` listsLiam Miller-Cushon
PiperOrigin-RevId: 504078954
2023-01-23Don't crash on duplicate type parameter declarationsLiam Miller-Cushon
PiperOrigin-RevId: 504070824
2023-01-19Fix handling of implicit record constructorsLiam Miller-Cushon
A record has to have a primary constructor with parameters that correspond to the component types. https://github.com/bazelbuild/bazel/issues/17250 PiperOrigin-RevId: 503164403
2023-01-15Delete dependabot.ymlLiam Miller-Cushon
2023-01-12Don't emit duplicate `toString`, `equals`, and `hashCode` methods in recordsLiam Miller-Cushon
These methods are only emitted if they don't already exist, per JLS 8.10.3. https://github.com/bazelbuild/bazel/issues/17181 PiperOrigin-RevId: 501618070
2023-01-05Fix a bug with javadoc comments followed by unicode escapesLiam Miller-Cushon
The lexer was advancing to the next character and then reading the string contents of the javadoc comment. It assumed that the next token corresponded to exactly one character in the input stream, which isn't true of unicode escapes. PiperOrigin-RevId: 499989979
2022-12-27Automatic code cleanup.Kurt Alfred Kluever
PiperOrigin-RevId: 498035708
2022-12-27Remove workaround for b/188833569 - AutoValue is supposed to add `@Nullable` ↵Liam Miller-Cushon
to `equals` methods now PiperOrigin-RevId: 498034435
2022-12-16Update ASM API levelLiam Miller-Cushon
PiperOrigin-RevId: 495922973
2022-12-05Merge remote-tracking branch 'aosp/upstream-main' into aosp/master am: ↵android-14.0.0_r45android-14.0.0_r44android-14.0.0_r43android-14.0.0_r42android-14.0.0_r41android-14.0.0_r40android-14.0.0_r39android-14.0.0_r38android-14.0.0_r27android-14.0.0_r26android-14.0.0_r25android-14.0.0_r24android-14.0.0_r23android-14.0.0_r22android-14.0.0_r21android-14.0.0_r20android-14.0.0_r19android-14.0.0_r18android-14.0.0_r17android-14.0.0_r16aml_rkp_341510000aml_rkp_341311000aml_rkp_341114000aml_rkp_341015010aml_rkp_341012000aml_hef_341717050aml_hef_341613000aml_hef_341512030aml_hef_341415040aml_hef_341311010aml_hef_341114030aml_cfg_341510000android14-qpr1-s2-releaseandroid14-qpr1-releaseandroid14-mainline-healthfitness-releaseandroid14-devandroid14-d2-s5-releaseandroid14-d2-s4-releaseandroid14-d2-s3-releaseandroid14-d2-s2-releaseandroid14-d2-s1-releaseandroid14-d2-releaseAdrian Roos
1317f29ad0 am: 8742e9d19f am: 210c7d0174 Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2327873 Change-Id: I6dec4d2861f797e01e4f2fa71e0b001740c03849 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05Merge remote-tracking branch 'aosp/upstream-main' into aosp/master am: ↵android-u-beta-1-gplAdrian Roos
1317f29ad0 am: 8742e9d19f Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2327873 Change-Id: Ied4766e3be049c753596ae8f2f221e2e1a59a7ab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05Merge remote-tracking branch 'aosp/upstream-main' into aosp/master am: ↵main-16k-with-phonesAdrian Roos
1317f29ad0 Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2327873 Change-Id: I0099fce4abf1000278bd9ceb16c816a0a7c74959 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05Merge remote-tracking branch 'aosp/upstream-main' into aosp/masterAdrian Roos
* aosp/upstream-main: turbine: attach javadoc to enum members Improve implementation of `asMemberOf` Update Error Prone version Default to `SourceVersion.latestSupported()` if an unrecognized source version shows up Update ci.yml Update ci.yml Add support for native-image builds for turbine to maven build Fix a CCE Use `JarEntry#setTimeLocal` Update string representation of annotated types Use `InputStream#readAllBytes` instead of `ByteStreams#toByteArray` Automatic code cleanup. Change-Id: Ie2f1582cf101c96b2206a4c3b7373d3d2bcb86f3
2022-11-30turbine: attach javadoc to enum membersJavac Team
PiperOrigin-RevId: 491951825
2022-11-08Improve implementation of `asMemberOf`Liam Miller-Cushon
PiperOrigin-RevId: 487077153
2022-10-26Fix errorprone warnings that should be errors am: f4521a3e14 am: 71299e7af9 ↵Cole Faust
am: 0a1bffd725 Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2254825 Change-Id: I5edf17bf04a20b568703b8dd024ed0e14ff95ede Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26Fix errorprone warnings that should be errors am: f4521a3e14 am: 71299e7af9Cole Faust
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2254825 Change-Id: If7d2d93058a4f567068c533d05e1289270fb6eb7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26Fix errorprone warnings that should be errors am: f4521a3e14Cole Faust
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2254825 Change-Id: Ifd7962a84b1b70753ccdbad778167d85812662a4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25Update Error Prone versionLiam Miller-Cushon
PiperOrigin-RevId: 483696374
2022-10-25Default to `SourceVersion.latestSupported()` if an unrecognized source ↵Liam Miller-Cushon
version shows up PiperOrigin-RevId: 483693422
2022-10-24Update ci.ymlLiam Miller-Cushon
Pin to JDK 11.0.16 to work around https://bugs.openjdk.org/browse/JDK-8295850
2022-10-15Fix errorprone warnings that should be errorsCole Faust
This commit is part of a large scale change to fix errorprone errors that have been downgraded to warnings in the android source tree, so that they can be promoted to errors again. The full list of changes include the following, but not all will be present in any one individual commit: BadAnnotationImplementation BadShiftAmount BanJNDI BoxedPrimitiveEquality ComparableType ComplexBooleanConstant CollectionToArraySafeParameter ConditionalExpressionNumericPromotion DangerousLiteralNull DoubleBraceInitialization DurationFrom DurationTemporalUnit EmptyTopLevelDeclaration EqualsNull EqualsReference FormatString FromTemporalAccessor GetClassOnAnnotation GetClassOnClass HashtableContains IdentityBinaryExpression IdentityHashMapBoxing InstantTemporalUnit InvalidTimeZoneID InvalidZoneId IsInstanceIncompatibleType JUnitParameterMethodNotFound LockOnBoxedPrimitive MathRoundIntLong MislabeledAndroidString MisusedDayOfYear MissingSuperCall MisusedWeekYear ModifyingCollectionWithItself NoCanIgnoreReturnValueOnClasses NonRuntimeAnnotation NullableOnContainingClass NullTernary OverridesJavaxInjectableMethod ParcelableCreator PeriodFrom PreconditionsInvalidPlaceholder ProtoBuilderReturnValueIgnored ProtoFieldNullComparison RandomModInteger RectIntersectReturnValueIgnored ReturnValueIgnored SelfAssignment SelfComparison SelfEquals SizeGreaterThanOrEqualsZero StringBuilderInitWithChar TreeToString TryFailThrowable UnnecessaryCheckNotNull UnusedCollectionModifiedInPlace XorPower See https://errorprone.info/bugpatterns for more information on the checks. Bug: 253827323 Test: m RUN_ERROR_PRONE=true javac-check Change-Id: Idc9dfee8f682d3dfaccb73537cd4a8cfbadc19a7
2022-10-06Update ci.ymlLiam Miller-Cushon
2022-09-07Add support for native-image builds for turbine to maven buildLiam Miller-Cushon
PiperOrigin-RevId: 472798197
2022-09-06Fix a CCELiam Miller-Cushon
PiperOrigin-RevId: 472497302
2022-08-30Use `JarEntry#setTimeLocal`Liam Miller-Cushon
This method was added in JDK 9, and allows setting jar entry times without going through a `long` of milliseconds. Both `setTime` and `setTimeLocal` implicitly use the default timezone. PiperOrigin-RevId: 471079483
2022-08-18Update string representation of annotated typesLiam Miller-Cushon
to match https://bugs.openjdk.org/browse/JDK-8281238, and only run the tests on JDK 19. Fixes e.g. ``` expected: DECLARED java.util.@p.Test4.A List<java.lang.@p.Test4.B Integer> but was : DECLARED @p.Test4.A java.util.List<@p.Test4.B java.lang.Integer> ``` PiperOrigin-RevId: 468587631
2022-08-15Use `InputStream#readAllBytes` instead of `ByteStreams#toByteArray`Liam Miller-Cushon
PiperOrigin-RevId: 467718127
2022-06-15Automatic code cleanup.Kurt Alfred Kluever
PiperOrigin-RevId: 455184757
2022-06-06Merge remote-tracking branch 'aosp/upstream-main' am: ed997d53d2 am: ↵Colin Cross
775443427c am: 00d0443c3a am: 1a8d917eee am: 349641106f Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2113022 Change-Id: I81cddd4f253a3b8f2c796580c279e3c5b0d1d736 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06Merge remote-tracking branch 'aosp/upstream-main' am: ed997d53d2 am: ↵Colin Cross
775443427c am: 00d0443c3a am: 1a8d917eee Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2113022 Change-Id: I5de074b1a19384bd77aed08f4ecde85b1653e4ce Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06Merge remote-tracking branch 'aosp/upstream-main' am: ed997d53d2 am: ↵Colin Cross
775443427c am: 00d0443c3a Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2113022 Change-Id: If27eb031c5bfa2869c0d79529a7f5b55b6a2e13f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06Merge remote-tracking branch 'aosp/upstream-main' am: ed997d53d2 am: 775443427cColin Cross
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2113022 Change-Id: I28e8a56d5b30b58878a6b199bc5e6ee8effbf0a8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06Merge remote-tracking branch 'aosp/upstream-main' am: ed997d53d2Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2113022 Change-Id: Iba3165222d4b49afd0e710c9696632953524b428 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01Merge remote-tracking branch 'aosp/upstream-main'Colin Cross
* aosp/upstream-main: Handle `sealed` psuedo-modifier on nested classes Update ASM version Update ci.yml Use well-formed URIs for `FileObject#toURI` Follow-up to https://github.com/google/turbine/commit/9bf393cbcfc281bbac6e3d3f042b4444156567ac Support zip64 extensible data sectors Initial support for text blocks Test: m checkbuild Bug: 234108066 Bug: 234109366 Change-Id: Ib4a8b0be490af955e03e34b0180e9836e20b80db