diff options
Diffstat (limited to 'plugins/org.eclipse.net4j/src')
28 files changed, 75 insertions, 75 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/DescriptionUtil.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/DescriptionUtil.java index 04e73f14f0..400f1da818 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/DescriptionUtil.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/DescriptionUtil.java @@ -47,7 +47,7 @@ public final class DescriptionUtil for (Object element : elements) { - builder.append(":"); + builder.append(":"); //$NON-NLS-1$ if (element != null) { builder.append(element); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/ExecutorServiceFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/ExecutorServiceFactory.java index 52206c6e6e..30e6dda59e 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/ExecutorServiceFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/ExecutorServiceFactory.java @@ -25,11 +25,11 @@ import java.util.concurrent.ThreadFactory; */ public class ExecutorServiceFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.executorServices"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.executorServices"; //$NON-NLS-1$ - public static final String TYPE = "default"; + public static final String TYPE = "default"; //$NON-NLS-1$ - public static final String DEFAULT_THREAD_GROUP_NAME = "net4j"; + public static final String DEFAULT_THREAD_GROUP_NAME = "net4j"; //$NON-NLS-1$ public ExecutorServiceFactory() { diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/TransportConfig.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/TransportConfig.java index 1aa47841d6..eb96518923 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/TransportConfig.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/TransportConfig.java @@ -118,7 +118,7 @@ public class TransportConfig implements ITransportConfig public String toString() { return MessageFormat.format( - "TransportConfig[receiveExecutor={0}, bufferProvider={1}, protocolProvider={2}, negotiator={3}]", + "TransportConfig[receiveExecutor={0}, bufferProvider={1}, protocolProvider={2}, negotiator={3}]", //$NON-NLS-1$ receiveExecutor, bufferProvider, protocolProvider, negotiator); } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferPool.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferPool.java index 218cef987c..3b27fede7a 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferPool.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferPool.java @@ -197,7 +197,7 @@ public class BufferPool extends BufferProvider implements IBufferPool, IBufferPo { public Monitor() { - setName("BufferPoolMonitor"); + setName("BufferPoolMonitor"); //$NON-NLS-1$ setDaemon(true); } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferProviderFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferProviderFactory.java index 730f740fba..7896cceb6a 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferProviderFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/BufferProviderFactory.java @@ -20,9 +20,9 @@ import org.eclipse.net4j.util.factory.Factory; */ public class BufferProviderFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.bufferProviders"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.bufferProviders"; //$NON-NLS-1$ - public static final String TYPE = "default"; + public static final String TYPE = "default"; //$NON-NLS-1$ public static final short BUFFER_CAPACITY = 4096; diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/ContainerProtocolProvider.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/ContainerProtocolProvider.java index 87f1eb21a6..76c4ca9147 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/ContainerProtocolProvider.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/ContainerProtocolProvider.java @@ -48,7 +48,7 @@ public abstract class ContainerProtocolProvider implements IProtocolProvider public IProtocol<?> getProtocol(String type) { - return (IProtocol<?>)container.getElement(productGroup, type, "protocol-" + counter.increment(), false); + return (IProtocol<?>)container.getElement(productGroup, type, "protocol-" + counter.increment(), false); //$NON-NLS-1$ } /** diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/Net4jUtil.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/Net4jUtil.java index 38c012544f..ecc2670964 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/Net4jUtil.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/Net4jUtil.java @@ -35,7 +35,7 @@ import java.util.concurrent.ExecutorService; */ public final class Net4jUtil { - public static final String SCHEME_SEPARATOR = "://"; + public static final String SCHEME_SEPARATOR = "://"; //$NON-NLS-1$ public static final short DEFAULT_BUFFER_CAPACITY = 4096; @@ -76,7 +76,7 @@ public final class Net4jUtil int pos = description.indexOf(SCHEME_SEPARATOR); if (pos <= 0) { - throw new IllegalArgumentException("Connector type (scheme) missing: " + description); + throw new IllegalArgumentException("Connector type (scheme) missing: " + description); //$NON-NLS-1$ } String factoryType = description.substring(0, pos); @@ -84,7 +84,7 @@ public final class Net4jUtil String connectorDescription = description.substring(pos + SCHEME_SEPARATOR.length()); if (StringUtil.isEmpty(connectorDescription)) { - throw new IllegalArgumentException("Illegal connector description: " + description); + throw new IllegalArgumentException("Illegal connector description: " + description); //$NON-NLS-1$ } return (IConnector)container.getElement(ConnectorFactory.PRODUCT_GROUP, factoryType, connectorDescription); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/TransportConfigurator.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/TransportConfigurator.java index a5774b8dfa..6142358eda 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/TransportConfigurator.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/TransportConfigurator.java @@ -64,12 +64,12 @@ public class TransportConfigurator { if (TRACER.isEnabled()) { - TRACER.trace("Configuring Net4j server from " + configFile.getAbsolutePath()); + TRACER.trace("Configuring Net4j server from " + configFile.getAbsolutePath()); //$NON-NLS-1$ } List<IAcceptor> acceptors = new ArrayList<IAcceptor>(); Document document = getDocument(configFile); - NodeList acceptorConfigs = document.getElementsByTagName("acceptor"); + NodeList acceptorConfigs = document.getElementsByTagName("acceptor"); //$NON-NLS-1$ for (int i = 0; i < acceptorConfigs.getLength(); i++) { Element acceptorConfig = (Element)acceptorConfigs.item(i); @@ -82,17 +82,17 @@ public class TransportConfigurator protected IAcceptor configureAcceptor(Element acceptorConfig) { - String type = acceptorConfig.getAttribute("type"); + String type = acceptorConfig.getAttribute("type"); //$NON-NLS-1$ // TODO Make the following dependent on the "type" attribute value - String listenAddr = acceptorConfig.getAttribute("listenAddr"); - String port = acceptorConfig.getAttribute("port"); - String description = (listenAddr == null ? "" : listenAddr) + (port == null ? "" : ":" + port); + String listenAddr = acceptorConfig.getAttribute("listenAddr"); //$NON-NLS-1$ + String port = acceptorConfig.getAttribute("port"); //$NON-NLS-1$ + String description = (listenAddr == null ? "" : listenAddr) + (port == null ? "" : ":" + port); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ Acceptor acceptor = (Acceptor)container.getElement(AcceptorFactory.PRODUCT_GROUP, type, description, false); - NodeList negotiatorConfigs = acceptorConfig.getElementsByTagName("negotiator"); + NodeList negotiatorConfigs = acceptorConfig.getElementsByTagName("negotiator"); //$NON-NLS-1$ if (negotiatorConfigs.getLength() > 1) { - throw new IllegalStateException("A maximum of one negotiator can be configured for acceptor " + acceptor); + throw new IllegalStateException("A maximum of one negotiator can be configured for acceptor " + acceptor); //$NON-NLS-1$ } if (negotiatorConfigs.getLength() == 1) @@ -108,8 +108,8 @@ public class TransportConfigurator protected INegotiator configureNegotiator(Element negotiatorConfig) { - String type = negotiatorConfig.getAttribute("type"); - String description = negotiatorConfig.getAttribute("description"); + String type = negotiatorConfig.getAttribute("type"); //$NON-NLS-1$ + String description = negotiatorConfig.getAttribute("description"); //$NON-NLS-1$ return (INegotiator)container.getElement(NegotiatorFactory.PRODUCT_GROUP, type, description); } @@ -122,11 +122,11 @@ public class TransportConfigurator protected Element getStoreConfig(Element repositoryConfig) { - NodeList storeConfigs = repositoryConfig.getElementsByTagName("store"); + NodeList storeConfigs = repositoryConfig.getElementsByTagName("store"); //$NON-NLS-1$ if (storeConfigs.getLength() != 1) { - String repositoryName = repositoryConfig.getAttribute("name"); - throw new IllegalStateException("Exactly one store must be configured for repository " + repositoryName); + String repositoryName = repositoryConfig.getAttribute("name"); //$NON-NLS-1$ + throw new IllegalStateException("Exactly one store must be configured for repository " + repositoryName); //$NON-NLS-1$ } return (Element)storeConfigs.item(0); @@ -135,18 +135,18 @@ public class TransportConfigurator public static Map<String, String> getProperties(Element element, int levels) { Map<String, String> properties = new HashMap<String, String>(); - collectProperties(element, "", properties, levels); + collectProperties(element, "", properties, levels); //$NON-NLS-1$ return properties; } private static void collectProperties(Element element, String prefix, Map<String, String> properties, int levels) { - if ("property".equals(element.getNodeName())) + if ("property".equals(element.getNodeName())) //$NON-NLS-1$ { - String name = element.getAttribute("name"); - String value = element.getAttribute("value"); + String name = element.getAttribute("name"); //$NON-NLS-1$ + String value = element.getAttribute("value"); //$NON-NLS-1$ properties.put(prefix + name, value); - prefix += name + "."; + prefix += name + "."; //$NON-NLS-1$ } if (levels > 0) diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledIndication.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledIndication.java index f11278a3a2..8a671cf531 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledIndication.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledIndication.java @@ -33,7 +33,7 @@ class MonitorCanceledIndication extends Indication int correlationID = in.readInt(); if (TRACER.isEnabled()) { - TRACER.format("Canceling monitor of signal {0}", correlationID); + TRACER.format("Canceling monitor of signal {0}", correlationID); //$NON-NLS-1$ } getProtocol().handleMonitorCanceled(correlationID); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledRequest.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledRequest.java index de2e7c1775..6602dcfae2 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledRequest.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorCanceledRequest.java @@ -35,7 +35,7 @@ class MonitorCanceledRequest extends Request { if (TRACER.isEnabled()) { - TRACER.format("Canceling monitor of signal {0}", correlationID); + TRACER.format("Canceling monitor of signal {0}", correlationID); //$NON-NLS-1$ } out.writeInt(correlationID); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressIndication.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressIndication.java index 35ddcee89e..6b054833e6 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressIndication.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressIndication.java @@ -35,7 +35,7 @@ class MonitorProgressIndication extends Indication double work = in.readDouble(); if (TRACER.isEnabled()) { - TRACER.format("Progress of signal {0}: totalWork={1}, work={2}", correlationID, totalWork, work); + TRACER.format("Progress of signal {0}: totalWork={1}, work={2}", correlationID, totalWork, work); //$NON-NLS-1$ } getProtocol().handleMonitorProgress(correlationID, totalWork, work); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressRequest.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressRequest.java index f17563b068..4c4f0f1105 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressRequest.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/MonitorProgressRequest.java @@ -41,7 +41,7 @@ class MonitorProgressRequest extends Request { if (TRACER.isEnabled()) { - TRACER.format("Progress of signal {0}: totalWork={1}, work={2}", correlationID, totalWork, work); + TRACER.format("Progress of signal {0}: totalWork={1}, work={2}", correlationID, totalWork, work); //$NON-NLS-1$ } out.writeInt(correlationID); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionIndication.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionIndication.java index 2956cdf9e9..6ccfaebbb0 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionIndication.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionIndication.java @@ -38,7 +38,7 @@ class RemoteExceptionIndication extends Indication if (TRACER.isEnabled()) { String msg = RemoteExceptionRequest.getFirstLine(message); - TRACER.format("Reading remote exception for signal {0}: {1}", correlationID, msg); + TRACER.format("Reading remote exception for signal {0}: {1}", correlationID, msg); //$NON-NLS-1$ } try diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionRequest.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionRequest.java index cd84df3c3b..c817675df6 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionRequest.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RemoteExceptionRequest.java @@ -46,7 +46,7 @@ class RemoteExceptionRequest extends Request if (TRACER.isEnabled()) { String msg = getFirstLine(message); - TRACER.format("Writing remote exception for signal {0}: {1}", correlationID, msg); + TRACER.format("Writing remote exception for signal {0}: {1}", correlationID, msg); //$NON-NLS-1$ } out.writeInt(correlationID); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RequestWithMonitoring.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RequestWithMonitoring.java index 68c6172b7a..7e0f879ef0 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RequestWithMonitoring.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/RequestWithMonitoring.java @@ -120,7 +120,7 @@ public abstract class RequestWithMonitoring<RESULT> extends RequestWithConfirmat double remoteWork = OMMonitor.HUNDRED - getRequestingWorkPercent() - getConfirmingWorkPercent(); if (remoteWork < OMMonitor.ZERO) { - throw new ImplementationError("Remote work must not be negative: " + remoteWork); + throw new ImplementationError("Remote work must not be negative: " + remoteWork); //$NON-NLS-1$ } mainMonitor.begin(OMMonitor.HUNDRED); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/Signal.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/Signal.java index 61e8fdd0c8..e7421a7594 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/Signal.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/Signal.java @@ -127,7 +127,7 @@ public abstract class Signal implements Runnable @Override public String toString() { - return MessageFormat.format("Signal[protocol={0}, id={1}, name={2}, correlation={3}]", getProtocol().getType(), + return MessageFormat.format("Signal[protocol={0}, id={1}, name={2}, correlation={3}]", getProtocol().getType(), //$NON-NLS-1$ getID(), getName(), getCorrelationID()); } @@ -152,7 +152,7 @@ public abstract class Signal implements Runnable { if (threadName != null) { - Thread.currentThread().setName(threadName + "(FINISHED)"); + Thread.currentThread().setName(threadName + "(FINISHED)"); //$NON-NLS-1$ } } } @@ -243,7 +243,7 @@ public abstract class Signal implements Runnable TRACER.trace(ex); } - throw new TimeoutException("Timeout"); + throw new TimeoutException("Timeout"); //$NON-NLS-1$ } catch (Exception ex) { diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java index 0eef688e55..81059aca8b 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java @@ -87,12 +87,12 @@ public abstract class SignalActor extends Signal @Override String getInputMeaning() { - return "Confirming"; + return "Confirming"; //$NON-NLS-1$ } @Override String getOutputMeaning() { - return "Requesting"; + return "Requesting"; //$NON-NLS-1$ } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalProtocol.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalProtocol.java index dd7fbd8c13..15c89e0220 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalProtocol.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalProtocol.java @@ -161,7 +161,7 @@ public class SignalProtocol<INFRA_STRUCTURE> extends Protocol<INFRA_STRUCTURE> i */ public IChannel open() { - checkState(failOverStrategy, "failOverStrategy"); + checkState(failOverStrategy, "failOverStrategy"); //$NON-NLS-1$ failOverStrategy.handleOpen(this); return getChannel(); } @@ -267,7 +267,7 @@ public class SignalProtocol<INFRA_STRUCTURE> extends Protocol<INFRA_STRUCTURE> i if (signal instanceof RequestWithConfirmation<?>) { RequestWithConfirmation<?> request = (RequestWithConfirmation<?>)signal; - request.setRemoteException(new IllegalStateException("Request canceled due to protocol deactivation"), false); + request.setRemoteException(new IllegalStateException("Request canceled due to protocol deactivation"), false); //$NON-NLS-1$ } } @@ -322,7 +322,7 @@ public class SignalProtocol<INFRA_STRUCTURE> extends Protocol<INFRA_STRUCTURE> i SignalReactor signal = createSignalReactor(signalID); if (signal == null) { - throw new IllegalArgumentException("Invalid signalID " + signalID); + throw new IllegalArgumentException("Invalid signalID " + signalID); //$NON-NLS-1$ } return signal; @@ -404,7 +404,7 @@ public class SignalProtocol<INFRA_STRUCTURE> extends Protocol<INFRA_STRUCTURE> i void startSignal(SignalActor signalActor, long timeout) throws Exception { - checkArg(signalActor.getProtocol() == this, "Wrong protocol"); + checkArg(signalActor.getProtocol() == this, "Wrong protocol"); //$NON-NLS-1$ short signalID = signalActor.getID(); int correlationID = signalActor.getCorrelationID(); signalActor.setBufferOutputStream(new SignalOutputStream(correlationID, signalID, true)); @@ -560,7 +560,7 @@ public class SignalProtocol<INFRA_STRUCTURE> extends Protocol<INFRA_STRUCTURE> i IChannel channel = getChannel(); if (channel == null) { - throw new IORuntimeException("No channel for protocol " + SignalProtocol.this); + throw new IORuntimeException("No channel for protocol " + SignalProtocol.this); //$NON-NLS-1$ } IBuffer buffer = delegate.provideBuffer(); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalReactor.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalReactor.java index 358988a569..15461e88eb 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalReactor.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalReactor.java @@ -42,12 +42,12 @@ public abstract class SignalReactor extends Signal @Override String getInputMeaning() { - return "Indicating"; + return "Indicating"; //$NON-NLS-1$ } @Override String getOutputMeaning() { - return "Responding"; + return "Responding"; //$NON-NLS-1$ } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/failover/NOOPFailOverStrategy.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/failover/NOOPFailOverStrategy.java index 625e9704d7..1db5e60d1f 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/failover/NOOPFailOverStrategy.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/failover/NOOPFailOverStrategy.java @@ -67,6 +67,6 @@ public class NOOPFailOverStrategy extends Notifier implements IFailOverStrategy @Override public String toString() { - return "NOOP"; + return "NOOP"; //$NON-NLS-1$ } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/AcceptorFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/AcceptorFactory.java index a961a018ea..ba32fca881 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/AcceptorFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/AcceptorFactory.java @@ -17,7 +17,7 @@ import org.eclipse.net4j.util.factory.Factory; */ public abstract class AcceptorFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.acceptors"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.acceptors"; //$NON-NLS-1$ public AcceptorFactory(String type) { diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Channel.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Channel.java index d9130f02f6..ea5e56fb31 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Channel.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Channel.java @@ -236,7 +236,7 @@ public class Channel extends Lifecycle implements InternalChannel @Override protected String getThreadName() { - return "ReceiveSerializer-" + Channel.this; + return "ReceiveSerializer-" + Channel.this; //$NON-NLS-1$ } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ChannelMultiplexer.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ChannelMultiplexer.java index 8879ecde16..efe87d5bb6 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ChannelMultiplexer.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ChannelMultiplexer.java @@ -84,7 +84,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements { if (openChannelTimeout == IChannelMultiplexer.DEFAULT_OPEN_CHANNEL_TIMEOUT) { - return OM.BUNDLE.getDebugSupport().getDebugOption("open.channel.timeout", 10000); + return OM.BUNDLE.getDebugSupport().getDebugOption("open.channel.timeout", 10000); //$NON-NLS-1$ } return openChannelTimeout; @@ -127,7 +127,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements IProtocol<?> protocol = createProtocol(protocolID, infraStructure); if (protocol == null) { - throw new IllegalArgumentException("Unknown protocolID: " + protocolID); + throw new IllegalArgumentException("Unknown protocolID: " + protocolID); //$NON-NLS-1$ } return openChannel(protocol); @@ -158,7 +158,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements catch (TimeoutRuntimeException ex) { // Adjust the message for the complete timeout time - String message = "Registration timeout after " + getOpenChannelTimeout() + " milliseconds"; + String message = "Registration timeout after " + getOpenChannelTimeout() + " milliseconds"; //$NON-NLS-1$ //$NON-NLS-2$ throw new TimeoutRuntimeException(message, ex); } } @@ -214,7 +214,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements if (TRACER.isEnabled()) { String protocolType = protocol == null ? null : protocol.getType(); - TRACER.format("Opening channel with protocol {0}", protocolType); + TRACER.format("Opening channel with protocol {0}", protocolType); //$NON-NLS-1$ } channel.setReceiveHandler(protocol); @@ -223,7 +223,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements { if (TRACER.isEnabled()) { - TRACER.trace("Opening channel without protocol"); + TRACER.trace("Opening channel without protocol"); //$NON-NLS-1$ } } } @@ -239,13 +239,13 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements IProtocolProvider protocolProvider = getConfig().getProtocolProvider(); if (protocolProvider == null) { - throw new ChannelException("No protocol provider configured"); + throw new ChannelException("No protocol provider configured"); //$NON-NLS-1$ } IProtocol<INFRA_STRUCTURE> protocol = (IProtocol<INFRA_STRUCTURE>)protocolProvider.getProtocol(type); if (protocol == null) { - throw new ChannelException("Invalid protocol factory: " + type); + throw new ChannelException("Invalid protocol factory: " + type); //$NON-NLS-1$ } if (infraStructure != null) @@ -314,7 +314,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements ++lastChannelID; if (lastChannelID == start) { - throw new ChannelException("Too many channels"); + throw new ChannelException("Too many channels"); //$NON-NLS-1$ } if (lastChannelID > maxValue) @@ -336,7 +336,7 @@ public abstract class ChannelMultiplexer extends Container<IChannel> implements short channelID = channel.getID(); if (channelID == IBuffer.CONTROL_CHANNEL || channelID == IBuffer.NO_CHANNEL) { - throw new ChannelException("Invalid channel ID: " + channelID); + throw new ChannelException("Invalid channel ID: " + channelID); //$NON-NLS-1$ } channels.put(channelID, channel); diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ClientProtocolFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ClientProtocolFactory.java index 7aaa7ee47b..e683c6f553 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ClientProtocolFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ClientProtocolFactory.java @@ -18,7 +18,7 @@ import org.eclipse.net4j.util.factory.Factory; */ public abstract class ClientProtocolFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.clientProtocols"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.clientProtocols"; //$NON-NLS-1$ public ClientProtocolFactory(String type) { diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java index 6c623f0efb..c2574fc705 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java @@ -92,10 +92,10 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo public void setUserID(String userID) { - checkState(getState() != ConnectorState.CONNECTED, "Connector is already connected"); + checkState(getState() != ConnectorState.CONNECTED, "Connector is already connected"); //$NON-NLS-1$ if (TRACER.isEnabled()) { - TRACER.format("Setting userID {0} for {1}", userID, this); + TRACER.format("Setting userID {0} for {1}", userID, this); //$NON-NLS-1$ } this.userID = userID; @@ -113,7 +113,7 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo { if (TRACER.isEnabled()) { - TRACER.format("Setting state {0} (was {1}) for {2}", newState, oldState.toString().toLowerCase(), this); + TRACER.format("Setting state {0} (was {1}) for {2}", newState, oldState.toString().toLowerCase(), this); //$NON-NLS-1$ } connectorState = newState; @@ -177,7 +177,7 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo { if (negotiationException != null) { - throw new ConnectorException("Connector negotiation failed", negotiationException); + throw new ConnectorException("Connector negotiation failed", negotiationException); //$NON-NLS-1$ } return connectorState == ConnectorState.CONNECTED; @@ -208,7 +208,7 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo { if (TRACER.isEnabled()) { - TRACER.trace("Waiting for connection..."); + TRACER.trace("Waiting for connection..."); //$NON-NLS-1$ } for (;;) @@ -357,11 +357,11 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo protected void doBeforeActivate() throws Exception { super.doBeforeActivate(); - checkState(getConfig().getBufferProvider(), "getConfig().getBufferProvider()"); + checkState(getConfig().getBufferProvider(), "getConfig().getBufferProvider()"); //$NON-NLS-1$ if (userID != null && getConfig().getNegotiator() == null) { - throw new IllegalStateException("A UserID on this connector requires a negotiator to be configured"); + throw new IllegalStateException("A UserID on this connector requires a negotiator to be configured"); //$NON-NLS-1$ } } @@ -415,7 +415,7 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo @Override public String toString() { - return MessageFormat.format("ConnectorStateEvent[source={0}, oldState={1}, newState={2}]", getSource(), + return MessageFormat.format("ConnectorStateEvent[source={0}, oldState={1}, newState={2}]", getSource(), //$NON-NLS-1$ getOldState(), getNewState()); } } diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ConnectorFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ConnectorFactory.java index 19fd2282cc..7b99259949 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ConnectorFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ConnectorFactory.java @@ -17,7 +17,7 @@ import org.eclipse.net4j.util.factory.Factory; */ public abstract class ConnectorFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.connectors"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.connectors"; //$NON-NLS-1$ public ConnectorFactory(String type) { diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Protocol.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Protocol.java index 80405c044f..4bd411e61f 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Protocol.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Protocol.java @@ -144,9 +144,9 @@ public abstract class Protocol<INFRA_STRUCTURE> extends Lifecycle implements IPr protected void doBeforeActivate() throws Exception { super.doBeforeActivate(); - checkState(channel, "channel"); - checkState(bufferProvider, "bufferProvider"); - checkState(executorService, "executorService"); + checkState(channel, "channel"); //$NON-NLS-1$ + checkState(bufferProvider, "bufferProvider"); //$NON-NLS-1$ + checkState(executorService, "executorService"); //$NON-NLS-1$ } @Override diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ServerProtocolFactory.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ServerProtocolFactory.java index 9118240790..9747b12b6b 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ServerProtocolFactory.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/ServerProtocolFactory.java @@ -18,7 +18,7 @@ import org.eclipse.net4j.util.factory.Factory; */ public abstract class ServerProtocolFactory extends Factory { - public static final String PRODUCT_GROUP = "org.eclipse.net4j.serverProtocols"; + public static final String PRODUCT_GROUP = "org.eclipse.net4j.serverProtocols"; //$NON-NLS-1$ public ServerProtocolFactory(String type) { |