You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
19 lines
474 B
package org.jetbrains.plugins.template.services;
|
|
|
|
import com.intellij.openapi.components.Service;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
@Service(Service.Level.PROJECT)
|
|
public final class JavaService {
|
|
|
|
public JavaService() {
|
|
System.out.println("FOO1");
|
|
|
|
getRandomNumber(null);
|
|
}
|
|
|
|
public String getRandomNumber(@NotNull String text) {
|
|
return text.replaceAll("[^0-9]", ""); // set a breakpoint here and debug the `runIde` task
|
|
}
|
|
}
|