Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/src/com/mirth/connect/client/ui/OSXAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ protected static Object getApplication() throws Exception {
return macOSXApplication;
}

@SuppressWarnings("removal")
protected static void setHandler(InvocationHandler adapter, String interfaceName, String applicationSetter) throws Exception {
Class<?> handlerInterface = Class.forName(interfaceName);
Object handlerImpl = Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(handlerInterface)), new Class[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public final <T> T getServlet(final Class<T> servletInterface, final String work
* A custom error message to display if an exception occurs during connector service
* invocation
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({"removal", "unchecked"})
public final <T> T getServlet(final Class<T> servletInterface, final String workerDisplayText, final String errorText, final ResponseHandler responseHandler, final String workerId) {
return (T) Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(servletInterface)), new Class[] {
servletInterface }, new InvocationHandler() {
Expand Down
2 changes: 1 addition & 1 deletion server/src/com/mirth/connect/client/core/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public <T> T getServlet(Class<T> servletInterface, ExecuteType executeType) {
return getServlet(servletInterface, executeType, null);
}

@SuppressWarnings("unchecked")
@SuppressWarnings({"removal", "unchecked"})
public <T> T getServlet(final Class<T> servletInterface, final ExecuteType executeType, final Map<String, List<String>> customHeaders) {
return (T) Proxy.newProxyInstance(AccessController.doPrivileged(ReflectionHelper.getClassLoaderPA(servletInterface)), new Class[] {
servletInterface }, new InvocationHandler() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class MirthJavaScriptThreadFactory implements ThreadFactory {
private final AtomicInteger threadNumber = new AtomicInteger(1);
private final String namePrefix;

@SuppressWarnings("removal")
MirthJavaScriptThreadFactory() {
SecurityManager securityManager = System.getSecurityManager();
group = (securityManager != null) ? securityManager.getThreadGroup() : Thread.currentThread().getThreadGroup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static <C> C newResource(final Class<C> resourceInterface, final WebTarge
* @return Instance of a class implementing the resource interface that can
* be used for making requests to the server.
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({"removal", "unchecked"})
public static <C> C newResource(final Class<C> resourceInterface,
final WebTarget target,
final boolean ignoreResourcePath,
Expand Down