More Schema diff work by andimarek · Pull Request #3200 · graphql-java/graphql-java · GitHub
Skip to content
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
152 changes: 73 additions & 79 deletions src/main/java/graphql/schema/diffing/DiffImpl.java
23 changes: 0 additions & 23 deletions src/main/java/graphql/schema/diffing/GraphPrinter.java

This file was deleted.

6 changes: 5 additions & 1 deletion src/main/java/graphql/schema/diffing/Mapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public int size() {
return fixedMappings.size() + map.size();
}

public int fixedSize() {
return fixedMappings.size();
}

public int nonFixedSize() {
return map.size();
}
Expand All @@ -109,7 +113,7 @@ public void add(Vertex source, Vertex target) {
this.targetList.add(target);
}

public Mapping removeLastElement() {
public Mapping copyMappingWithLastElementRemoved() {
HashBiMap<Vertex, Vertex> newMap = HashBiMap.create(map);
newMap.remove(this.sourceList.get(this.sourceList.size() - 1));
List<Vertex> newSourceList = new ArrayList<>(this.sourceList.subList(0, this.sourceList.size() - 1));
Expand Down
Loading