Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@RestrictTo should not be used for classes that are used for the generated #391

Merged
merged 1 commit into from
Mar 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions library/src/main/java/com/github/gfx/android/orma/Selector.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private String getLimitClause() {
}
}

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
@SuppressWarnings("unchecked")
public S resetLimitClause() {
limit = -1;
Expand All @@ -174,23 +174,23 @@ public S resetLimitClause() {
return (S) this;
}

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
public boolean hasLimit() {
return limit != -1;
}

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
public long getLimit() {
assert hasLimit();
return limit;
}

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
public boolean hasOffset() {
return offset != -1 || (limit != -1 && page != -1);
}

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
public long getOffset() {
assert hasOffset();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* limitations under the License.
*/

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
/**
* This package provides internal utilities that are used in generated classes.
*/
package com.github.gfx.android.orma.internal;

import android.support.annotation.RestrictTo;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
@RestrictTo(RestrictTo.Scope.LIBRARY)
package com.github.gfx.android.orma.migration.sqliteparser;

import android.support.annotation.RestrictTo;