From df129fdc50ba03988b5be528c219c6781fc96d07 Mon Sep 17 00:00:00 2001 From: Chris Midgley Date: Sun, 29 May 2022 11:38:28 +0100 Subject: [PATCH] Fix build error with static call --- .../commonjs/module/provider/UrlModuleSourceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java b/src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java index bd898c91c7..7ada3f8bc9 100644 --- a/src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java +++ b/src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java @@ -156,7 +156,7 @@ protected ModuleSource loadFromActualUri(URI uri, URI base, Object validator) } } - private static Reader getReader(URLConnection urlConnection) throws IOException { + private Reader getReader(URLConnection urlConnection) throws IOException { return new InputStreamReader( urlConnection.getInputStream(), getCharacterEncoding(urlConnection)); }