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.
*/
package im.vector.riotx.core.di;
package im.vector.matrix.android.internal.di
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
import javax.inject.Scope
@Scope
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface ScreenScope {
}
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class MatrixScope

View File

@ -14,16 +14,11 @@
* limitations under the License.
*/
package im.vector.matrix.android.internal.session;
package im.vector.matrix.android.internal.session
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
import javax.inject.Scope
@Scope
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface SessionScope {
}
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class SessionScope

View File

@ -14,17 +14,11 @@
* limitations under the License.
*/
package im.vector.matrix.android.internal.di;
package im.vector.riotx.core.di
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope
import javax.inject.Scope;
// TODO convert the 3 scope to Java?
@Scope
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface MatrixScope {
}
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class ScreenScope