Skip to content

Commit 298c7e5

Browse files
author
Michael Whapples
committed
Suppress some warnings.
1 parent 139a67b commit 298c7e5

7 files changed

Lines changed: 17 additions & 4 deletions

File tree

brailleblaster-core/src/main/java/org/brailleblaster/AppProperties.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ object AppProperties {
2929
val version = properties.getProperty("app.version") ?: "Unknown"
3030
val vendor = properties.getProperty("app.vendor") ?: "Unknown"
3131
val buildDate = properties.getProperty("app.build-date") ?: "Unknown"
32+
@Suppress("Unused")
3233
val fsname = properties.getProperty("app.fsname") ?: "brailleblaster"
3334
val buildHash: String? = properties.getProperty("app.build-hash")
35+
@Suppress("Unused")
3436
val vcsUrl = properties.getProperty("app.vcs-url") ?: "https://github.com/aphtech/brailleblaster"
37+
@Suppress("Unused")
3538
val downloadUrl = properties.getProperty("app.site.base-url") ?: "https://github.com/aphtech/brailleblaster/releases/latest"
3639
val websiteUrl = properties.getProperty("app.website-url") ?: "https://www.brailleblaster.org"
3740
}

brailleblaster-core/src/main/java/org/brailleblaster/bbx/utd/BBXElementMatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class BBXElementMatcher : AbstractBBXUtil, INodeMatcher {
101101
return false
102102
}
103103

104-
@Suppress("UNUSED", "UNUSED_PARAMETER")
104+
@Suppress("Unused")
105105
fun afterUnmarshal(unmarshaller: Unmarshaller?, parent: Any?) {
106106
validateOnlyOneBBXFieldSet(coreType, fixerTodo)
107107
}

brailleblaster-core/src/main/java/org/brailleblaster/usage/UsageManager.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ interface UsageManager {
2929
var trackingEnabled: Boolean
3030
}
3131

32-
class SimpleUsageManager @JvmOverloads constructor(logger: UsageLogger = ListUsageLogger(SizeLimit.Max(0))) : UsageManager {
32+
class SimpleUsageManager @JvmOverloads constructor(logger: UsageLogger = ListUsageLogger(SizeLimit.Max(0))) :
33+
UsageManager {
3334
override var trackingEnabled: Boolean = true
3435
override val logger: UsageLogger = logger.filterLogger { trackingEnabled }
3536
}
@@ -50,9 +51,10 @@ class BBUsageManager(
5051
set(value) {
5152
settings.saveAsBoolean(USAGE_TRACKING_SETTING, value)
5253
}
53-
private var reportHandler: ScheduledFuture<*> ? = null
54+
private var reportHandler: ScheduledFuture<*>? = null
55+
@Suppress("Unused")
5456
val isReportingData: Boolean
55-
get() = reportHandler != null
57+
get() = reportHandler != null
5658

5759
override fun close() {
5860
sqlLogger.close()
@@ -75,6 +77,7 @@ class BBUsageManager(
7577
reportHandler?.cancel(false)
7678
reportHandler = executorService.scheduleWithFixedDelay({ reportData(url) }, initial, period, units)
7779
}
80+
7881
fun stopPeriodicDataReporting() {
7982
reportHandler?.cancel(false)
8083
}

gui-utils/src/main/kotlin/org/brailleblaster/utils/swt/AccessibilityUtils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ object AccessibilityUtils {
7373
requireNotNull(name) { "Name cannot be null" }
7474
}
7575

76+
@Suppress("Unused")
7677
fun addLabelRelation(control: Control, label: Control) {
7778
val accCtrl = control.accessible
7879
val accLabel = label.accessible
7980
accLabel.addRelation(ACC.RELATION_LABEL_FOR, accCtrl)
8081
accCtrl.addRelation(ACC.RELATION_LABELLED_BY, accLabel)
8182
}
8283

84+
@Suppress("Unused")
8385
fun addMemberRelation(control: Control, group: Control) {
8486
val accCtrl = control.accessible
8587
val accGroup = group.accessible

utd/src/main/java/org/brailleblaster/utd/exceptions/BadPoetryException.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ package org.brailleblaster.utd.exceptions
1717

1818
class BadPoetryException : Exception {
1919
constructor() : super()
20+
@Suppress("Unused")
2021
constructor(message: String?) : super(message)
2122
}

utd/src/main/java/org/brailleblaster/utd/exceptions/BadSimpleTableException.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ package org.brailleblaster.utd.exceptions
1717

1818
class BadSimpleTableException : Exception {
1919
constructor() : super()
20+
@Suppress("Unused")
2021
constructor(message: String?) : super(message)
22+
@Suppress("Unused")
2123
constructor(message: String?, cause: Throwable?) : super(message, cause)
2224
}

utd/src/main/java/org/brailleblaster/utd/exceptions/CellOccupiedException.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ package org.brailleblaster.utd.exceptions
2020
* allocated to that cell.
2121
*/
2222
class CellOccupiedException : UTDException {
23+
@Suppress("Unused")
2324
constructor()
2425
constructor(message: String?) : super(message)
26+
@Suppress("Unused")
2527
constructor(message: String?, cause: Throwable?) : super(message, cause)
2628
}

0 commit comments

Comments
 (0)