Code quality: import static

This commit is contained in:
Benoit Marty 2019-07-09 15:35:27 +02:00
parent d08778c674
commit e80473903e
2 changed files with 9 additions and 8 deletions

View File

@ -18,12 +18,13 @@ package im.vector.matrix.android.internal.di;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope; import javax.inject.Scope;
import static java.lang.annotation.RetentionPolicy.RUNTIME; // TODO convert the 3 scope to Java?
@Scope @Scope
@Documented @Documented
@Retention(RUNTIME) @Retention(RetentionPolicy.RUNTIME)
public @interface MatrixScope {} public @interface MatrixScope {
}

View File

@ -18,12 +18,12 @@ package im.vector.matrix.android.internal.session;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope; import javax.inject.Scope;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Scope @Scope
@Documented @Documented
@Retention(RUNTIME) @Retention(RetentionPolicy.RUNTIME)
public @interface SessionScope {} public @interface SessionScope {
}