From 1697e24996dc9b3cc149070dd7c9891cd9aedb14 Mon Sep 17 00:00:00 2001 From: Dave Dresser Date: Wed, 23 Mar 2022 10:19:56 -0400 Subject: [PATCH] ZENG-253105 Derive RemoteSystemProperties from MasterToSlaveCallable --- .../zadviser/build/RemoteSystemProperties.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/compuware/jenkins/zadviser/build/RemoteSystemProperties.java b/src/main/java/com/compuware/jenkins/zadviser/build/RemoteSystemProperties.java index e2c8a50..09d1129 100644 --- a/src/main/java/com/compuware/jenkins/zadviser/build/RemoteSystemProperties.java +++ b/src/main/java/com/compuware/jenkins/zadviser/build/RemoteSystemProperties.java @@ -1,7 +1,7 @@ /** * The MIT License (MIT) * - * Copyright (c) 2020 Compuware Corporation + * Copyright (c) 2022 Compuware Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, @@ -16,28 +16,18 @@ */ package com.compuware.jenkins.zadviser.build; -import hudson.remoting.Callable; import java.util.Properties; -import org.jenkinsci.remoting.RoleChecker; + +import jenkins.security.MasterToSlaveCallable; /** * Get remote system properties */ -public class RemoteSystemProperties implements Callable { +public class RemoteSystemProperties extends MasterToSlaveCallable { private static final long serialVersionUID = 4501207510446994815L; public Properties call() { return System.getProperties(); } - - /* - * (non-Javadoc) - * - * @see org.jenkinsci.remoting.RoleSensitive#checkRoles(org.jenkinsci.remoting.RoleChecker) - */ - @Override - public void checkRoles(RoleChecker checker) { - // Implementation required by interface, but not using - } }