Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
d5ff92cb
Commit
d5ff92cb
authored
Apr 15, 2019
by
Sebastian Kaspari
Committed by
Christian Sadilek
Apr 15, 2019
Browse files
Update ktlint to 0.31.0.
parent
3681ee89
Changes
5
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
d5ff92cb
...
...
@@ -232,7 +232,7 @@ configurations {
}
dependencies
{
ktlint
"com.github.shyiko:ktlint:0.
29
.0"
ktlint
"com.github.shyiko:ktlint:0.
31
.0"
}
task
ktlint
(
type:
JavaExec
,
group:
"verification"
)
{
...
...
components/browser/engine-system/src/main/java/mozilla/components/browser/engine/system/matcher/ReversibleString.kt
View file @
d5ff92cb
...
...
@@ -41,9 +41,11 @@ abstract class ReversibleString private constructor(
ReverseString
(
string
,
offsetStart
,
offsetEnd
)
}
private
class
ForwardString
(
string
:
String
,
offsetStart
:
Int
,
offsetEnd
:
Int
)
:
ReversibleString
(
string
,
offsetStart
,
offsetEnd
)
{
private
class
ForwardString
(
string
:
String
,
offsetStart
:
Int
,
offsetEnd
:
Int
)
:
ReversibleString
(
string
,
offsetStart
,
offsetEnd
)
{
override
val
isReversed
:
Boolean
=
false
override
fun
charAt
(
position
:
Int
):
Char
{
...
...
@@ -58,9 +60,11 @@ abstract class ReversibleString private constructor(
}
}
private
class
ReverseString
(
string
:
String
,
offsetStart
:
Int
,
offsetEnd
:
Int
)
:
ReversibleString
(
string
,
offsetStart
,
offsetEnd
)
{
private
class
ReverseString
(
string
:
String
,
offsetStart
:
Int
,
offsetEnd
:
Int
)
:
ReversibleString
(
string
,
offsetStart
,
offsetEnd
)
{
override
val
isReversed
:
Boolean
=
true
override
fun
charAt
(
position
:
Int
):
Char
{
...
...
components/browser/icons/src/test/java/mozilla/components/browser/icons/decoder/ICOIconDecoderTest.kt
View file @
d5ff92cb
...
...
@@ -87,7 +87,7 @@ class ICOIconDecoderTest {
entries
.
sortedBy
{
entry
->
entry
.
width
}
.
forEachIndexed
{
index
,
entry
->
assertEquals
(
expectedEntries
[
index
],
entry
)
}
.
forEachIndexed
{
index
,
entry
->
assertEquals
(
expectedEntries
[
index
],
entry
)
}
}
@Test
...
...
@@ -114,7 +114,7 @@ class ICOIconDecoderTest {
entries
.
sortedByDescending
{
entry
->
entry
.
width
}
.
forEachIndexed
{
index
,
entry
->
assertEquals
(
expectedEntries
[
index
],
entry
)
}
.
forEachIndexed
{
index
,
entry
->
assertEquals
(
expectedEntries
[
index
],
entry
)
}
}
private
fun
loadIcon
(
fileName
:
String
):
ByteArray
=
...
...
components/feature/sync/src/main/java/mozilla/components/feature/sync/BackgroundSyncManager.kt
View file @
d5ff92cb
...
...
@@ -78,8 +78,7 @@ private val registry = ObserverRegistry<SyncStatusObserver>()
* - periodic sync is requested to stop
*/
@SuppressWarnings
(
"TooManyFunctions"
)
abstract
class
GeneralSyncManager
:
SyncManager
,
Observable
<
SyncStatusObserver
>
by
registry
,
SyncStatusObserver
{
abstract
class
GeneralSyncManager
:
SyncManager
,
Observable
<
SyncStatusObserver
>
by
registry
,
SyncStatusObserver
{
companion
object
{
// Periodically sync in the background, to make our syncs a little more incremental.
// This isn't strictly necessary, and could be considered an optimization.
...
...
components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/FirefoxAccount.kt
View file @
d5ff92cb
...
...
@@ -42,8 +42,10 @@ class FirefoxAccount internal constructor(private val inner: InternalFxAcct) : O
* Note that it is not necessary to `close` the Config if this constructor is used (however
* doing so will not cause an error).
*/
constructor
(
config
:
Config
,
persistCallback
:
PersistCallback
?
=
null
)
:
this
(
InternalFxAcct
(
config
,
persistCallback
))
constructor
(
config
:
Config
,
persistCallback
:
PersistCallback
?
=
null
)
:
this
(
InternalFxAcct
(
config
,
persistCallback
))
override
fun
close
()
{
job
.
cancel
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment