Changed: Marked GithubUpdater#getLatestVersion as private to prevent people from calling it in a sync context
This commit is contained in:
		
							parent
							
								
									03e120d24d
								
							
						
					
					
						commit
						4b9a99dcf8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -45,7 +45,7 @@ public final class GithubUpdater {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    @Blocking
 | 
			
		||||
    public PEVersion getLatestVersion() throws IOException {
 | 
			
		||||
    private PEVersion getLatestVersion() throws IOException {
 | 
			
		||||
        URL url = new URL("https://api.github.com/repos/" + org + "/" + repo + "/releases/latest");
 | 
			
		||||
        URLConnection connection = url.openConnection();
 | 
			
		||||
        connection.addRequestProperty("User-Agent", "Mozilla/5.0");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue