From 1d924a0cd73b3525e919688111076f8ec50c252d Mon Sep 17 00:00:00 2001 From: Jeff Boek Date: Wed, 18 Jul 2018 14:48:10 -0700 Subject: [PATCH] For #191 - Changes access control levels for the response parsers --- .../components/browser/search/suggestions/Parser.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/browser/search/src/main/java/mozilla/components/browser/search/suggestions/Parser.kt b/components/browser/search/src/main/java/mozilla/components/browser/search/suggestions/Parser.kt index 396f9d38562..7c6f0a0fee5 100644 --- a/components/browser/search/src/main/java/mozilla/components/browser/search/suggestions/Parser.kt +++ b/components/browser/search/src/main/java/mozilla/components/browser/search/suggestions/Parser.kt @@ -63,15 +63,15 @@ private fun buildQwantParser(): ResponseParser { /** * The available Parsers */ -val defaultResponseParser = buildJSONArrayParser(1) -val azerdictResponseParser = buildJSONObjectParser("suggestions") -val daumResponseParser = buildJSONObjectParser("items") -val qwantResponseParser = buildQwantParser() +internal val defaultResponseParser = buildJSONArrayParser(1) +internal val azerdictResponseParser = buildJSONObjectParser("suggestions") +internal val daumResponseParser = buildJSONObjectParser("items") +internal val qwantResponseParser = buildQwantParser() /** * Selects a Parser based on a SearchEngine */ -fun selectResponseParser(searchEngine: SearchEngine): ResponseParser = when (searchEngine.name) { +internal fun selectResponseParser(searchEngine: SearchEngine): ResponseParser = when (searchEngine.name) { "Azerdict" -> azerdictResponseParser "다음지도" -> daumResponseParser "Qwant" -> qwantResponseParser