From 931c30e3bc6a99acbd43856eadc6c9df4336e808 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Fri, 27 Mar 2015 11:16:14 -0400 Subject: [PATCH] tmf remote: comply with naming convention in RemoteSystemProxyFactory Change-Id: I164204b2849272a777cf05291bd0fbf9137b3c61 Signed-off-by: Bernd Hufmann Reviewed-on: https://git.eclipse.org/r/44772 Reviewed-by: Patrick Tasse Tested-by: Patrick Tasse Reviewed-by: Hudson CI --- .../core/proxy/RemoteSystemProxyFactory.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/RemoteSystemProxyFactory.java b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/RemoteSystemProxyFactory.java index 85c1a4868f..eed45f5615 100644 --- a/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/RemoteSystemProxyFactory.java +++ b/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/RemoteSystemProxyFactory.java @@ -28,7 +28,7 @@ import org.eclipse.remote.internal.jsch.core.JSchConnection; import org.eclipse.tracecompass.internal.tmf.remote.core.messages.Messages; /** - * Connection factory. + * RemoteSystemProxy factory. * * @author Bernd Hufmann */ @@ -39,14 +39,14 @@ public class RemoteSystemProxyFactory { // ------------------------------------------------------------------------ // Attributes // ------------------------------------------------------------------------ - private static final Map fConnectionFactories = new HashMap<>(); - private static final DefaultConnectionFactory fDefaultConnectionFactory = new DefaultConnectionFactory(); + private static final Map CONNECTION_FACTORIES = new HashMap<>(); + private static final DefaultConnectionFactory DEFAULT_CONNECTION_FACTORY = new DefaultConnectionFactory(); static { // Add local services IRemoteServicesManager manager = RemoteSystemProxy.getService(IRemoteServicesManager.class); if (manager != null) { - fConnectionFactories.put(manager.getLocalConnectionType().getId(), new LocalConnectionFactory()); + CONNECTION_FACTORIES.put(manager.getLocalConnectionType().getId(), new LocalConnectionFactory()); } } @@ -63,7 +63,7 @@ public class RemoteSystemProxyFactory { * the factory implementation */ public static void registerConnectionFactory(String connectionTypeId, IConnectionFactory factory) { - fConnectionFactories.put(connectionTypeId, factory); + CONNECTION_FACTORIES.put(connectionTypeId, factory); } /** @@ -90,12 +90,12 @@ public class RemoteSystemProxyFactory { throw new RemoteConnectionException(MessageFormat.format(Messages.RemoteConnection_ConnectionError, hostUri)); } - IConnectionFactory connectionFactory = fConnectionFactories.get(connectionType.getId()); + IConnectionFactory connectionFactory = CONNECTION_FACTORIES.get(connectionType.getId()); // Create a new connection if (connectionFactory != null) { connection = connectionFactory.createConnection(connectionType, hostUri, hostName); } else { - connection = fDefaultConnectionFactory.createConnection(connectionType, hostUri, hostName); + connection = DEFAULT_CONNECTION_FACTORY.createConnection(connectionType, hostUri, hostName); } return new RemoteSystemProxy(connection); -- 2.34.1