Convert file to Kotlin

This commit is contained in:
Benoit Marty 2019-07-09 15:50:15 +02:00
parent d92c090c30
commit ffe0b9712c
3 changed files with 15 additions and 31 deletions

View File

@ -14,16 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */


package im.vector.riotx.core.di; package im.vector.matrix.android.internal.di


import java.lang.annotation.Documented; import javax.inject.Scope
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import javax.inject.Scope;


@Scope @Scope
@Documented @MustBeDocumented
@Retention(RetentionPolicy.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
public @interface ScreenScope { annotation class MatrixScope
}

View File

@ -14,16 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */


package im.vector.matrix.android.internal.session; package im.vector.matrix.android.internal.session


import java.lang.annotation.Documented; import javax.inject.Scope
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import javax.inject.Scope;


@Scope @Scope
@Documented @MustBeDocumented
@Retention(RetentionPolicy.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
public @interface SessionScope { annotation class SessionScope
}

View File

@ -14,17 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */


package im.vector.matrix.android.internal.di; package im.vector.riotx.core.di


import java.lang.annotation.Documented; import javax.inject.Scope
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;


import javax.inject.Scope;

// TODO convert the 3 scope to Java?
@Scope @Scope
@Documented @MustBeDocumented
@Retention(RetentionPolicy.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
public @interface MatrixScope { annotation class ScreenScope
}