OSDN Git Service

Workaround for javac compilation issue of lambda code
authorMark Renouf <mrenouf@google.com>
Tue, 1 Nov 2016 15:48:24 +0000 (11:48 -0400)
committerMark Renouf <mrenouf@google.com>
Tue, 1 Nov 2016 17:48:20 +0000 (17:48 +0000)
commite065f7c5a9ad4e47f5490793401445660af37624
tree24eca05b61e6a109554e9382356c80676163b5a2
parentc0ff60f272b5da3759079a8be1ae95b195645494
Workaround for javac compilation issue of lambda code

Since ag/32554459 some Robolectric tests are compiling
framework code with javac. For reasons unclear so far this
code fails to compile with javac:

> ShortcutService.java:408: error: variable ri might not have been initialized

https://android-build.googleplex.com/builds/submitted/3416256/angelfish-userdebug/latest/logs

Removing the lambda expressions corrects the issue.

BUG: 32554459

Change-Id: I189c8ef02dc93b46ef6418c1ff14f2312097898a
services/core/java/com/android/server/pm/ShortcutService.java