JAL-4090 fix JAL-4236 - just put the name of the class in rather than look it up...
authorJames Procter <j.procter@dundee.ac.uk>
Mon, 13 Nov 2023 16:11:29 +0000 (16:11 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Mon, 13 Nov 2023 16:11:29 +0000 (16:11 +0000)
src/jalview/fts/service/uniprot/UniProtFTSRestClient.java

index df48c0d..980dac6 100644 (file)
@@ -21,7 +21,6 @@
 
 package jalview.fts.service.uniprot;
 
-import java.lang.invoke.MethodHandles;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.ArrayList;
@@ -80,7 +79,7 @@ public class UniProtFTSRestClient extends FTSRestClient
   private static final String USER_AGENT = ChannelProperties
           .getProperty("app_name", "Jalview") + " "
           + Cache.getDefault("VERSION", "Unknown") + " "
-          + MethodHandles.lookup().lookupClass() + " help@jalview.org";
+          + UniProtFTSRestClient.class.toString() + " help@jalview.org";
 
   static
   {