File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
jep/src/main/kotlin/by/jprof/telegram/bot/jep
votes/voting-processor/src/main/kotlin/by/jprof/telegram/bot/votes/voting_processor Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ class JEPUpdateProcessor(
3636 bot,
3737), UpdateProcessor {
3838 companion object {
39- val logger = LogManager .getLogger(JEPUpdateProcessor ::class .java)!!
40- val linkRegex = " https?://openjdk\\ .java\\ .net/jeps/(\\ d+)/?" .toRegex()
39+ private val logger = LogManager .getLogger(JEPUpdateProcessor ::class .java)!!
40+ private val linkRegex = " https?://openjdk\\ .java\\ .net/jeps/(\\ d+)/?" .toRegex()
4141 }
4242
4343 override suspend fun process (update : Update ) {
@@ -99,6 +99,4 @@ class JEPUpdateProcessor(
9999 replyMarkup = votes.toInlineKeyboardMarkup()
100100 )
101101 }
102-
103- private fun String.toVotesID () = " JEP-$this "
104102}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ abstract class VotingProcessor(
1717 private val bot : RequestsExecutor ,
1818) {
1919 companion object {
20- val logger = LogManager .getLogger(VotingProcessor ::class .java)!!
20+ private val logger = LogManager .getLogger(VotingProcessor ::class .java)!!
2121 }
2222
2323 suspend fun processCallbackQuery (callbackQuery : CallbackQuery ) {
@@ -40,4 +40,6 @@ abstract class VotingProcessor(
4040 )
4141 }
4242 }
43+
44+ protected fun String.toVotesID () = " $prefix -$this "
4345}
You can’t perform that action at this time.
0 commit comments