Solved ambiguity regarding match() API and auto-boxing