From c4cea76c0d7914a841816445e995224d1d85b833 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 30 Dec 2019 17:32:47 +0000 Subject: [PATCH] java_sdk_library: Rename createDocs to createStubsSources The createDocs(...) method was obviously named because it created a droiddocs target that generated the stubs source but it now creates a droidstubs target so the name was misleading. Bug: 145998881 Test: m checkbuild Change-Id: I7419b0a01ee87ecb2b396e4817e5e88a88a8b7b6 --- java/sdk_library.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/sdk_library.go b/java/sdk_library.go index b2040475d..091889dbc 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -478,7 +478,7 @@ func (module *SdkLibrary) createStubsLibrary(mctx android.LoadHookContext, apiSc // Creates a droiddoc module that creates stubs source files from the given full source // files -func (module *SdkLibrary) createDocs(mctx android.LoadHookContext, apiScope apiScope) { +func (module *SdkLibrary) createStubsSources(mctx android.LoadHookContext, apiScope apiScope) { props := struct { Name *string Srcs []string @@ -728,17 +728,17 @@ func (module *SdkLibrary) CreateInternalModules(mctx android.LoadHookContext) { // for public API stubs module.createStubsLibrary(mctx, apiScopePublic) - module.createDocs(mctx, apiScopePublic) + module.createStubsSources(mctx, apiScopePublic) sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library)) if sdkDep.hasStandardLibs() { // for system API stubs module.createStubsLibrary(mctx, apiScopeSystem) - module.createDocs(mctx, apiScopeSystem) + module.createStubsSources(mctx, apiScopeSystem) // for test API stubs module.createStubsLibrary(mctx, apiScopeTest) - module.createDocs(mctx, apiScopeTest) + module.createStubsSources(mctx, apiScopeTest) // for runtime module.createXmlFile(mctx)