FIX
This commit is contained in:
Binary file not shown.
@@ -81,7 +81,7 @@ public abstract class AbstractWithLimitPlugin extends PluginAdapter implements I
|
||||
"offset",
|
||||
JavaVisibility.PROTECTED,
|
||||
integerWrapper,
|
||||
null
|
||||
"null"
|
||||
);
|
||||
topLevelClass.addField(offsetField);
|
||||
|
||||
@@ -89,7 +89,7 @@ public abstract class AbstractWithLimitPlugin extends PluginAdapter implements I
|
||||
"rows",
|
||||
JavaVisibility.PROTECTED,
|
||||
integerWrapper,
|
||||
null
|
||||
"null"
|
||||
);
|
||||
topLevelClass.addField(rowsField);
|
||||
|
||||
@@ -139,6 +139,7 @@ public abstract class AbstractWithLimitPlugin extends PluginAdapter implements I
|
||||
);
|
||||
setLimit = ElementTools.generateMethodBody(
|
||||
setLimit,
|
||||
"this.offset = null;",
|
||||
"this.rows = rows;",
|
||||
"return this;"
|
||||
);
|
||||
@@ -205,7 +206,7 @@ public abstract class AbstractWithLimitPlugin extends PluginAdapter implements I
|
||||
getPageSize = ElementTools.generateMethodBody(
|
||||
getPageSize,
|
||||
"if (this.rows == null) {",
|
||||
"return 0;",
|
||||
"return this.ignorePageSize;",
|
||||
"}",
|
||||
"return this.rows;"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user