Skip to content

Commit fb9cfec

Browse files
committed
Fix build errors
1 parent 4ef3582 commit fb9cfec

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

archLintRules/src/main/java/me/ycdev/android/arch/lint/MyBroadcastHelperDetector.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class MyBroadcastHelperDetector : WrapperDetectorBase() {
2727
internal val ISSUE = Issue.create(
2828
"MyBroadcastHelper",
2929
"BroadcastHelper should be used.",
30-
"Please use the wrapper class 'BroadcastHelper' to register broadcast receivers"
31-
+ " and send broadcasts to avoid security issues.",
30+
"Please use the wrapper class 'BroadcastHelper' to register broadcast receivers" +
31+
" and send broadcasts to avoid security issues.",
3232
Category.CORRECTNESS, 5, Severity.ERROR,
3333
Implementation(MyBroadcastHelperDetector::class.java, Scope.JAVA_FILE_SCOPE)
3434
)

archLintRules/src/main/java/me/ycdev/android/arch/lint/base/InheritDetectorBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class InheritDetectorBase : Detector(), Detector.UastScanner {
1717
val wrappers = wrapperClasses
1818
val className = declaration.qualifiedName
1919
if (wrappers.contains(className)) {
20-
return // ignore the wrapper classes
20+
return // ignore the wrapper classes
2121
}
2222

2323
val evaluator = context.evaluator

archLintRules/src/test/java/me/ycdev/android/arch/lint/MyBaseActivityDetectorTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ class MyBaseActivityDetectorTest {
257257
)
258258
}
259259

260-
261260
@Test
262261
fun testLintViolationActivity_kotlin() {
263262
val testFile = TestFiles.kotlin(

bintray-upload.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ artifacts {
3535

3636
// For the plugin 'com.jfrog.bintray'
3737
Properties properties = new Properties()
38-
properties.load(rootProject.file('local.properties').newDataInputStream())
38+
if (rootProject.file('local.properties').exists()) {
39+
properties.load(rootProject.file('local.properties').newDataInputStream())
40+
}
3941

4042
bintray {
4143
user = properties.getProperty('bintray.user')

0 commit comments

Comments
 (0)