@@ -62,7 +62,7 @@ object DatabaseSanityCheck {
6262 val dlg = ProgressDialog .factory(" Running Sanity Check" , " checks remaining" , checks.size)
6363 dlg.setVisibleLater()
6464
65- val sanityErrors = mutableListOf<AbstractSanityCheckResult >()
65+ val sanityErrors = mutableListOf<SanityCheckResult >()
6666
6767 try {
6868 checks.forEach { check ->
@@ -79,7 +79,7 @@ object DatabaseSanityCheck {
7979 runOnEventThread { sanityCheckComplete(sanityErrors) }
8080 }
8181
82- private fun sanityCheckComplete (sanityErrors : List <AbstractSanityCheckResult >) {
82+ private fun sanityCheckComplete (sanityErrors : List <SanityCheckResult >) {
8383 logger.info(
8484 CODE_SANITY_CHECK_COMPLETED ,
8585 " Completed sanity check and found ${sanityErrors.size} issues" ,
@@ -88,8 +88,8 @@ object DatabaseSanityCheck {
8888 sanityErrors.forEach { error ->
8989 logger.info(
9090 CODE_SANITY_CHECK_RESULT ,
91- " ${error.getCount()} ${error.getDescription() } " ,
92- KEY_SANITY_DESCRIPTION to error.getDescription() ,
91+ " ${error.getCount()} ${error.description } " ,
92+ KEY_SANITY_DESCRIPTION to error.description ,
9393 KEY_SANITY_COUNT to error.getCount(),
9494 )
9595 }
@@ -129,9 +129,7 @@ object DatabaseSanityCheck {
129129 }
130130 }
131131
132- private fun buildResultsModel (
133- sanityErrors : List <AbstractSanityCheckResult >
134- ): DefaultTableModel {
132+ private fun buildResultsModel (sanityErrors : List <SanityCheckResult >): DefaultTableModel {
135133 val model = DefaultModel ()
136134 model.addColumn(" Description" )
137135 model.addColumn(" Count" )
@@ -140,19 +138,14 @@ object DatabaseSanityCheck {
140138
141139 for (result in sanityErrors) {
142140 val row =
143- arrayOf<Any >(
144- result.getDescription(),
145- result.getCount(),
146- " View Results >" ,
147- " Auto-fix" ,
148- )
141+ arrayOf<Any >(result.description, result.getCount(), " View Results >" , " Auto-fix" )
149142 model.addRow(row)
150143 }
151144
152145 return model
153146 }
154147
155- private fun showResultsBreakdown (result : AbstractSanityCheckResult ) {
148+ private fun showResultsBreakdown (result : SanityCheckResult ) {
156149 val dlg = result.getResultsDialog()
157150 dlg.setSize(800 , 600 )
158151 dlg.setLocationRelativeTo(ScreenCache .mainScreen)
0 commit comments