Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Whoops, getOrDefault is also new in Java 8.
  • Loading branch information
JoshRosen committed Jun 4, 2016
commit 38e8a9935e3ae0a166f7bcd3231bef50ef7ec71b
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ object BindReferences extends Logging {
}
expression.transform { case a: AttributeReference =>
attachTree(a, "Binding attribute") {
val ordinal = inputToOrdinal.getOrDefault(a.exprId, -1)
val ordinal = Option(inputToOrdinal.get(a.exprId)).getOrElse(-1)
if (ordinal == -1) {
if (allowFailures) {
a
Expand Down