mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor internals OrmQueryProperties invert isEmpty() -> nonEmpty()
This commit is contained in:
@@ -111,7 +111,7 @@ public class OrmQueryDetail implements Serializable {
|
||||
*/
|
||||
public String asStringDebug() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!baseProps.isEmpty()) {
|
||||
if (baseProps.notEmpty()) {
|
||||
baseProps.asStringDebug("select ", sb);
|
||||
}
|
||||
if (fetchPaths != null) {
|
||||
|
||||
@@ -214,7 +214,7 @@ public class OrmQueryProperties implements Serializable {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void configureBeanQuery(SpiQuery<?> query) {
|
||||
if (!isEmpty()) {
|
||||
if (notEmpty()) {
|
||||
query.selectProperties(this);
|
||||
}
|
||||
|
||||
@@ -252,8 +252,8 @@ public class OrmQueryProperties implements Serializable {
|
||||
/**
|
||||
* Return true if the properties and configuration are empty.
|
||||
*/
|
||||
boolean isEmpty() {
|
||||
return !allProperties && included == null;
|
||||
boolean notEmpty() {
|
||||
return allProperties || included != null;
|
||||
}
|
||||
|
||||
public void asStringDebug(String prefix, StringBuilder sb) {
|
||||
|
||||
Reference in New Issue
Block a user