Skip to content

Commit a137cd5

Browse files
committed
Suppress warnings about JSM removal
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent 0fc2750 commit a137cd5

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

client/src/com/mirth/connect/client/ui/OSXAdapter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ protected static Object getApplication() throws Exception {
278278
return macOSXApplication;
279279
}
280280

281+
@SuppressWarnings("removal")
281282
protected static void setHandler(InvocationHandler adapter, String interfaceName, String applicationSetter) throws Exception {
282283
Class<?> handlerInterface = Class.forName(interfaceName);
283284
Object handlerImpl = Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(handlerInterface)), new Class[] {

client/src/com/mirth/connect/client/ui/panels/connectors/ConnectorSettingsPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public final <T> T getServlet(final Class<T> servletInterface, final String work
197197
* A custom error message to display if an exception occurs during connector service
198198
* invocation
199199
*/
200-
@SuppressWarnings("unchecked")
200+
@SuppressWarnings({"removal", "unchecked"})
201201
public final <T> T getServlet(final Class<T> servletInterface, final String workerDisplayText, final String errorText, final ResponseHandler responseHandler, final String workerId) {
202202
return (T) Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(servletInterface)), new Class[] {
203203
servletInterface }, new InvocationHandler() {

server/src/com/mirth/connect/client/core/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public <T> T getServlet(Class<T> servletInterface, ExecuteType executeType) {
243243
return getServlet(servletInterface, executeType, null);
244244
}
245245

246-
@SuppressWarnings("unchecked")
246+
@SuppressWarnings({"removal", "unchecked"})
247247
public <T> T getServlet(final Class<T> servletInterface, final ExecuteType executeType, final Map<String, List<String>> customHeaders) {
248248
return (T) Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(servletInterface)), new Class[] {
249249
servletInterface }, new InvocationHandler() {

server/src/com/mirth/connect/server/util/javascript/MirthJavaScriptThreadFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class MirthJavaScriptThreadFactory implements ThreadFactory {
1818
private final AtomicInteger threadNumber = new AtomicInteger(1);
1919
private final String namePrefix;
2020

21+
@SuppressWarnings("removal")
2122
MirthJavaScriptThreadFactory() {
2223
SecurityManager securityManager = System.getSecurityManager();
2324
group = (securityManager != null) ? securityManager.getThreadGroup() : Thread.currentThread().getThreadGroup();

server/src/org/glassfish/jersey/client/proxy/WebResourceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public static <C> C newResource(final Class<C> resourceInterface, final WebTarge
140140
* @return Instance of a class implementing the resource interface that can
141141
* be used for making requests to the server.
142142
*/
143-
@SuppressWarnings("unchecked")
143+
@SuppressWarnings({"removal", "unchecked"})
144144
public static <C> C newResource(final Class<C> resourceInterface,
145145
final WebTarget target,
146146
final boolean ignoreResourcePath,

0 commit comments

Comments
 (0)