Skip to content
Permalink
Browse files

Resolve build issue with Model files

  • Loading branch information...
npurushe committed May 13, 2019
1 parent 962fc8b commit bfca810193584732c157a5d0687dfd27db7fa9cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 requery-processor/src/main/java/io/requery/processor/EntityProcessor.java
@@ -45,6 +45,7 @@
import java.util.Optional;
import java.util.Queue;
import java.util.Set;
import java.util.TreeSet;
import java.util.stream.Collectors;

import static io.requery.processor.EntityProcessor.GENERATE_ALWAYS;
@@ -269,9 +270,8 @@ private boolean getOption(String key, boolean defaultValue) {

private String findModelPackageName(EntityGraph graph) {
String packageName = "";
List<String> packageNames = graph.entities().stream().map(
entity -> entity.typeName().packageName()).collect(Collectors.toList());
packageNames.sort(null);
Set<String> packageNames = graph.entities().stream().map(
entity -> entity.typeName().packageName()).collect(Collectors.toCollection(TreeSet::new));

if (packageNames.size() == 1) {
// all the types are in the same package...

0 comments on commit bfca810

Please sign in to comment.
You can’t perform that action at this time.