From 85edc2bc95ece212234f8896f00afc75dce8c0e9 Mon Sep 17 00:00:00 2001 From: Tobias Thierer Date: Tue, 3 Oct 2017 12:15:02 +0100 Subject: Fix documentation generation with OpenJDK 9 javadoc. "make docs" breaks ("lint: @attr must be a field") on three @attr ref statements in LinearLayoutManager. These are the only @attr ref statements that reference the support library's resources from framework (the others are within framework or within the support library); it may be that the R class that they're referencing is merely in the wrong package, but changing it to com.android.internal.R or android.R didn't fix the issue. Since LinearLayoutManager is an internal class, it's not worth the effort of trying to make this work. This CL drops the three offending @attr ref statements, thereby fixing the build. Bug: 62049770 Test: Treehugger Change-Id: Ife01201019f4fffd5552da11591661539ca40fdd --- core/java/com/android/internal/widget/LinearLayoutManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/java/com/android/internal/widget/LinearLayoutManager.java b/core/java/com/android/internal/widget/LinearLayoutManager.java index d82c746649e2..0000a74f8249 100644 --- a/core/java/com/android/internal/widget/LinearLayoutManager.java +++ b/core/java/com/android/internal/widget/LinearLayoutManager.java @@ -168,10 +168,6 @@ public class LinearLayoutManager extends RecyclerView.LayoutManager implements /** * Constructor used when layout manager is set in XML by RecyclerView attribute * "layoutManager". Defaults to vertical orientation. - * - * @attr ref android.support.v7.recyclerview.R.styleable#RecyclerView_android_orientation - * @attr ref android.support.v7.recyclerview.R.styleable#RecyclerView_reverseLayout - * @attr ref android.support.v7.recyclerview.R.styleable#RecyclerView_stackFromEnd */ public LinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { -- cgit v1.2.3-59-g8ed1b