Skip to content

Commit

Permalink
Rewrite in Scala
Browse files Browse the repository at this point in the history
  • Loading branch information
novakov-alexey committed Jun 30, 2024
1 parent 40fa161 commit 17a5d6d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ class DefaultScalaProductFieldAccessorFactory extends ScalaProductFieldAccessorF

if (pos < 0 || pos >= arity)
throw new CompositeType.InvalidFieldReferenceException(
<<<<<<< HEAD
s"Tried to select $pos. field on \"$typeInfo\", which is an invalid index."
=======
s"""Tried to select $pos. field on "$typeInfo", which is an invalid index."""
>>>>>>> d5aec93 (Rewrite in Scala)
)

fieldType = typeInfo.asInstanceOf[TupleTypeInfoBase[T]].getTypeAt(pos)
Expand Down Expand Up @@ -71,7 +75,7 @@ class DefaultScalaProductFieldAccessorFactory extends ScalaProductFieldAccessorF

if (pos < 0 || pos >= arity)
throw new CompositeType.InvalidFieldReferenceException(
s"Tried to select ${pos.asInstanceOf[Integer]}. field on \"$typeInfo\", which is an invalid index."
s"""Tried to select ${pos.asInstanceOf[Integer]}. field on "$typeInfo", which is an invalid index."""
)
checkNotNull(innerAccessor, "innerAccessor must not be null.")

Expand Down

0 comments on commit 17a5d6d

Please sign in to comment.