public class io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl extends java.lang.Object implements io.quarkiverse.githubaction.GitHubFileDownloader
{
private static final org.jboss.logging.Logger LOG;
io.quarkus.runtime.LaunchMode launchMode;
public void <init>()
{
io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl v;
v := @this: io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public java.util.Optional getFileContent(org.kohsuke.github.GitHub, java.lang.String, java.lang.String)
{
java.lang.IllegalStateException v, v;
io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl v;
org.kohsuke.github.GHRepository v;
org.jboss.logging.Logger v;
io.quarkus.runtime.LaunchMode v;
org.kohsuke.github.GHFileNotFoundException v;
java.lang.String v, v, v, v, v;
org.kohsuke.github.GitHub v;
boolean v, v;
org.kohsuke.github.GHContent v;
java.io.IOException v;
java.util.Optional v, v;
v := @this: io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl;
v := @parameter: org.kohsuke.github.GitHub;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = virtualinvoke v.<org.kohsuke.github.GitHub: boolean isOffline()>();
if v == 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("A connected GitHub API client is necessary to read a config file and no token was provided. Please provide a token as input of the action.");
throw v;
label:
v = virtualinvoke v.<org.kohsuke.github.GitHub: org.kohsuke.github.GHRepository getRepository(java.lang.String)>(v);
v = virtualinvoke v.<org.kohsuke.github.GHRepository: org.kohsuke.github.GHContent getFileContent(java.lang.String)>(v);
v = virtualinvoke v.<org.kohsuke.github.GHContent: java.lang.String getContent()>();
v = staticinvoke <java.util.Optional: java.util.Optional of(java.lang.Object)>(v);
label:
return v;
label:
v := @caughtexception;
v = v.<io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl: io.quarkus.runtime.LaunchMode launchMode>;
v = virtualinvoke v.<io.quarkus.runtime.LaunchMode: boolean isDevOrTest()>();
if v == 0 goto label;
v = <io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl: org.jboss.logging.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Unable to read file \u for repository \u. Either the file does not exist or the \'Contents\' permission has not been set for the application.");
virtualinvoke v.<org.jboss.logging.Logger: void warn(java.lang.Object)>(v);
label:
v = staticinvoke <java.util.Optional: java.util.Optional empty()>();
return v;
label:
v := @caughtexception;
v = new java.lang.IllegalStateException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Error downloading file \u for repository \u0001");
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
catch org.kohsuke.github.GHFileNotFoundException from label to label with label;
catch java.io.IOException from label to label with label;
}
static void <clinit>()
{
org.jboss.logging.Logger v;
v = staticinvoke <org.jboss.logging.Logger: org.jboss.logging.Logger getLogger(java.lang.Class)>(class "Lio/quarkiverse/githubaction/runtime/github/GitHubFileDownloaderImpl;");
<io.quarkiverse.githubaction.runtime.github.GitHubFileDownloaderImpl: org.jboss.logging.Logger LOG> = v;
return;
}
}