Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2009-02-14 20:47:09 +0000
committerrsuen2009-02-14 20:47:09 +0000
commitfab3f2641c78f9c266d45b1da880d254222f4de7 (patch)
tree7067fec3cd777429d6ff46203eabdbbe2e97833d /protocols/bundles/org.eclipse.ecf.protocol.msn/src
parent55b3a09b7561d7383c19afa9c69ff5fa408eb2a5 (diff)
downloadorg.eclipse.ecf-fab3f2641c78f9c266d45b1da880d254222f4de7.tar.gz
org.eclipse.ecf-fab3f2641c78f9c266d45b1da880d254222f4de7.tar.xz
org.eclipse.ecf-fab3f2641c78f9c266d45b1da880d254222f4de7.zip
Bug 264887 - correct/remove warnings on ECF projects
Diffstat (limited to 'protocols/bundles/org.eclipse.ecf.protocol.msn/src')
-rw-r--r--protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/NotificationSession.java8
-rw-r--r--protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Session.java2
-rw-r--r--protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Status.java2
-rw-r--r--protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/internal/encode/Challenge.java2
4 files changed, 7 insertions, 7 deletions
diff --git a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/NotificationSession.java b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/NotificationSession.java
index 8ddcff2ba..49c4b5a8e 100644
--- a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/NotificationSession.java
+++ b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/NotificationSession.java
@@ -100,20 +100,20 @@ final class NotificationSession extends DispatchSession {
password = null;
if (ticket == null) {
- throw new ConnectException("Wrong username and/or password.");
+ throw new ConnectException("Wrong username and/or password."); //$NON-NLS-1$
}
write("USR", "TWN S " + ticket); //$NON-NLS-1$ //$NON-NLS-2$
ticket = null;
String input = super.read();
if (!input.startsWith("USR")) { //$NON-NLS-1$
- throw new ConnectException("An error occurred while attempting to authenticate " + "with the Tweener server.");
+ throw new ConnectException("An error occurred while attempting to authenticate with the Tweener server."); //$NON-NLS-1$
}
retrieveBuddyList();
this.username = userEmail;
return true;
} else if (!response.getCommand().equals("XFR")) { //$NON-NLS-1$
- throw new ConnectException("Unable to connect to the MSN server.");
+ throw new ConnectException("Unable to connect to the MSN server."); //$NON-NLS-1$
} else {
alternateServer = response.getParam(2);
return false;
@@ -211,7 +211,7 @@ final class NotificationSession extends DispatchSession {
*/
ResponseCommand getChatSession() throws IOException {
if (client.getStatus() == Status.APPEAR_OFFLINE || client.getStatus() == Status.OFFLINE) {
- throw new ConnectException("Switchboards cannot be created when " + "the user is hidden or offline.");
+ throw new ConnectException("Switchboards cannot be created when the user is hidden or offline."); //$NON-NLS-1$
}
write("XFR", "SB"); //$NON-NLS-1$ //$NON-NLS-2$
String command = response.getCommand();
diff --git a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Session.java b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Session.java
index 7970491c7..7e2724f12 100644
--- a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Session.java
+++ b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Session.java
@@ -292,7 +292,7 @@ abstract class Session {
} catch (IOException e) {
return;
} catch (RuntimeException e) {
- System.out.println("Exception occurred: ");
+ System.out.println("Exception occurred:"); //$NON-NLS-1$
e.printStackTrace();
}
}
diff --git a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Status.java b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Status.java
index b435f5e27..757813e39 100644
--- a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Status.java
+++ b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/Status.java
@@ -63,7 +63,7 @@ public final class Status {
} else if (literal.equals("HDN")) { //$NON-NLS-1$
return APPEAR_OFFLINE;
} else {
- throw new IllegalArgumentException("Unknown literal: " + literal);
+ throw new IllegalArgumentException("Unknown literal: " + literal); //$NON-NLS-1$
}
}
diff --git a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/internal/encode/Challenge.java b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/internal/encode/Challenge.java
index 2a7b2a24a..d7f19dd43 100644
--- a/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/internal/encode/Challenge.java
+++ b/protocols/bundles/org.eclipse.ecf.protocol.msn/src/org/eclipse/ecf/protocol/msn/internal/encode/Challenge.java
@@ -25,7 +25,7 @@ public final class Challenge {
try {
instance = MessageDigest.getInstance("MD5"); //$NON-NLS-1$
} catch (NoSuchAlgorithmException e) {
- throw new RuntimeException("No MD5 digest found");
+ throw new RuntimeException("No MD5 digest found"); //$NON-NLS-1$
}
}

Back to the top