com.cedarsoft.annotations.instrumentation.test.RunnerClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instrumentation-test Show documentation
Show all versions of instrumentation-test Show documentation
Test module for annotations based instrumentation
package com.cedarsoft.annotations.instrumentation.test;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.cedarsoft.annotations.NonUiThread;
import com.cedarsoft.annotations.UiThread;
/**
* @author Johannes Schneider ([email protected])
*/
public class RunnerClass {
@CustomThreadAnnotation
public void methodCustomThread() {
System.out.println("--> custom thread");
}
@UiThread
public void methodOnlyFromUi() {
System.out.println( "--> only from UI" );
}
@NonUiThread
public void methodOnlyFromNonUi() {
System.out.println( "--> only from Non UI" );
}
@Nonnull
public String nonNullMethod() {
return null;
}
@Nullable
public String nullMethod(@Nonnull String param, @Nullable String param2) {
return null;
}
}