All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cedarsoft.annotations.instrumentation.test.RunnerClass Maven / Gradle / Ivy

There is a newer version: 8.9.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy