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

LPS-131506 jacoco #699

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -965,7 +965,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.account.rest.dto.v1_0.Account.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -999,7 +999,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -1158,6 +1158,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -988,7 +988,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.account.rest.dto.v1_0.AccountRole.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -1022,7 +1022,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -1163,6 +1163,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -1064,7 +1064,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.account.rest.dto.v1_0.AccountUser.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -1098,7 +1098,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -1274,6 +1274,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -1209,7 +1209,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
graphQLFields.add(new GraphQLField("siteId"));

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.app.builder.rest.dto.v1_0.App.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -1243,7 +1243,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -1484,6 +1484,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -290,7 +290,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.bulk.rest.dto.v1_0.Keyword.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -324,7 +324,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -410,6 +410,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -298,7 +298,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.bulk.rest.dto.v1_0.Selection.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -332,7 +332,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -418,6 +418,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -294,7 +294,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.bulk.rest.dto.v1_0.Status.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -328,7 +328,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -415,6 +415,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -309,7 +309,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.bulk.rest.dto.v1_0.TaxonomyCategory.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -343,7 +343,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -448,6 +448,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -344,7 +344,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.bulk.rest.dto.v1_0.TaxonomyVocabulary.class)) {

if (!ArrayUtil.contains(
Expand Down Expand Up @@ -378,7 +378,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -516,6 +516,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -1086,7 +1086,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.headless.commerce.admin.account.dto.v1_0.
AccountAddress.class)) {

Expand Down Expand Up @@ -1121,7 +1121,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -1383,6 +1383,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down
Expand Up @@ -635,7 +635,7 @@ protected List<GraphQLField> getGraphQLFields() throws Exception {
List<GraphQLField> graphQLFields = new ArrayList<>();

for (Field field :
ReflectionUtil.getDeclaredFields(
getDeclaredFields(
com.liferay.headless.commerce.admin.account.dto.v1_0.
AccountGroup.class)) {

Expand Down Expand Up @@ -670,7 +670,7 @@ protected List<GraphQLField> getGraphQLFields(Field... fields)
}

List<GraphQLField> childrenGraphQLFields = getGraphQLFields(
ReflectionUtil.getDeclaredFields(clazz));
getDeclaredFields(clazz));

graphQLFields.add(
new GraphQLField(field.getName(), childrenGraphQLFields));
Expand Down Expand Up @@ -792,6 +792,17 @@ protected java.util.Collection<EntityField> getEntityFields()
return entityFieldsMap.values();
}

protected Field[] getDeclaredFields(Class clazz) throws Exception {
Stream<Field> stream = Stream.of(
ReflectionUtil.getDeclaredFields(clazz));

return stream.filter(
field -> !field.isSynthetic()
).toArray(
Field[]::new
);
}

protected List<EntityField> getEntityFields(EntityField.Type type)
throws Exception {

Expand Down