[java-idp-plugin-scripting] 08/15: Tabs and spaces
Ian Young
ian at iay.org.uk
Mon Jun 22 13:03:44 UTC 2020
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch master
in repository java-idp-plugin-scripting.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-scripting.git;a=commit;h=9badf225850848dc70169ac346a29ff5a431048c
commit 9badf225850848dc70169ac346a29ff5a431048c
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat May 16 16:06:03 2020 +0100
Tabs and spaces
---
.../plugins/scripting/AbstractScriptEngine.java | 3 +-
.../scripting/nashorn/NashornDescription.java | 76 +++++++++++-----------
2 files changed, 39 insertions(+), 40 deletions(-)
diff --git a/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/AbstractScriptEngine.java b/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/AbstractScriptEngine.java
index 330810b..3b474bf 100644
--- a/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/AbstractScriptEngine.java
+++ b/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/AbstractScriptEngine.java
@@ -105,7 +105,6 @@ public abstract class AbstractScriptEngine implements ScriptEngine, Compilable {
/** {@inheritDoc} */
public CompiledScript compile(final Reader script) throws ScriptException {
- throw new ScriptException("Cannot compile from a reader");
+ throw new ScriptException("Cannot compile from a reader");
}
-
}
diff --git a/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/nashorn/NashornDescription.java b/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/nashorn/NashornDescription.java
index 5453729..dfa687c 100644
--- a/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/nashorn/NashornDescription.java
+++ b/nashorn-impl/src/main/java/net/shibboleth/plugins/scripting/nashorn/NashornDescription.java
@@ -36,49 +36,49 @@ import net.shibboleth.utilities.java.support.resource.Resource;
*/
public class NashornDescription extends PluginDescription {
- @Override
- public String getPluginId() {
- return "net.shibboleth.plugins.scripting.nashorn";
- }
+ @Override
+ public String getPluginId() {
+ return "net.shibboleth.plugins.scripting.nashorn";
+ }
- @Override
- public List<Resource> getUpdateResources() {
- return List.of(ResourceHelper.of(new ClassPathResource("META-INF/plugins/")));
- }
+ @Override
+ public List<Resource> getUpdateResources() {
+ return List.of(ResourceHelper.of(new ClassPathResource("META-INF/plugins/")));
+ }
- @Override
- public List<Pair<Resource, Path>> getExternalFilePathsToCopy() throws IOException {
+ @Override
+ public List<Pair<Resource, Path>> getExternalFilePathsToCopy() throws IOException {
- final HttpClientBuilder builder = new HttpClientBuilder();
- HTTPResource resource ;
- try {
- resource = new HTTPResource(builder.buildClient(), "https://repo1.maven.org/maven2/org/graalvm/sdk/graal-sdk/20.0.0/graal-sdk-20.0.0.jar");
- } catch (Exception e) {
- throw new IOException("Construction client failed:", e);
- }
- final Path to = Path.of("dist", "edit-webapp-" + getPluginId(), "WEB-INF", "lib");
- final Pair<Resource, Path> pair = new Pair<>(resource, to);
- return List.of(pair);
- }
-
- @Override
- public List<Path> getFilePathsToCopy() {
- return List.of(Path.of("conf", "testfile.xml"));
- }
+ final HttpClientBuilder builder = new HttpClientBuilder();
+ HTTPResource resource ;
+ try {
+ resource = new HTTPResource(builder.buildClient(), "https://repo1.maven.org/maven2/org/graalvm/sdk/graal-sdk/20.0.0/graal-sdk-20.0.0.jar");
+ } catch (Exception e) {
+ throw new IOException("Construction client failed:", e);
+ }
+ final Path to = Path.of("dist", "edit-webapp-" + getPluginId(), "WEB-INF", "lib");
+ final Pair<Resource, Path> pair = new Pair<>(resource, to);
+ return List.of(pair);
+ }
+
+ @Override
+ public List<Path> getFilePathsToCopy() {
+ return List.of(Path.of("conf", "testfile.xml"));
+ }
- @Override
- public int getMajorVersion() {
- return 0;
- }
+ @Override
+ public int getMajorVersion() {
+ return 0;
+ }
- @Override
- public int getMinorVersion() {
- return 0;
- }
+ @Override
+ public int getMinorVersion() {
+ return 0;
+ }
- @Override
- public int getPatchVersion() {
- return 1;
- }
+ @Override
+ public int getPatchVersion() {
+ return 1;
+ }
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list