james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r1683360 - in /james/hupa/trunk: client/src/test/java/org/apache/hupa/client/mock/ mock/src/main/java/org/apache/hupa/server/guice/ mock/src/main/java/org/apache/hupa/server/mock/ server/src/main/java/org/apache/hupa/server/service/ server/...
Date Wed, 03 Jun 2015 15:07:10 GMT
Author: dongxu
Date: Wed Jun  3 15:07:09 2015
New Revision: 1683360

URL: http://svn.apache.org/r1683360
Log:
remove some warnings for the source code.

Modified:
    james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
    james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
    james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java
    james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java
    james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java
    james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java
    james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java
    james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java
    james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java
    james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java
    james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java

Modified: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
(original)
+++ james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
Wed Jun  3 15:07:09 2015
@@ -27,7 +27,6 @@ import org.apache.hupa.widgets.ui.HasEna
 
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.dom.client.HasFocusHandlers;
-import com.google.gwt.user.client.TakesValue;
 import com.google.gwt.user.client.ui.Focusable;
 import com.google.gwt.user.client.ui.HasHTML;
 import com.google.gwt.user.client.ui.HasText;

Modified: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
(original)
+++ james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
Wed Jun  3 15:07:09 2015
@@ -75,7 +75,8 @@ import com.google.inject.name.Named;
  */
 public abstract class AbstractGuiceTestModule extends AbstractModule{
 
-    protected static class TestUser extends UserImpl {
+    @SuppressWarnings("serial")
+	protected static class TestUser extends UserImpl {
 
         @Inject
         public TestUser(@Named("Username") String username,

Modified: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java (original)
+++ james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java Wed
Jun  3 15:07:09 2015
@@ -33,7 +33,8 @@ public class MockConstants {
 
     public static String SESSION_ID = "MockID";
 
-    public final static Settings mockSettings = new SettingsImpl() {
+    @SuppressWarnings("serial")
+	public final static Settings mockSettings = new SettingsImpl() {
         {
             setInboxFolderName(MockIMAPStore.MOCK_INBOX_FOLDER);
             setSentFolderName(MockIMAPStore.MOCK_SENT_FOLDER);
@@ -69,7 +70,8 @@ public class MockConstants {
         }
     };
 
-    public final static User mockUser = new UserImpl() {
+    @SuppressWarnings("serial")
+	public final static User mockUser = new UserImpl() {
         {
             setName(MockIMAPStore.MOCK_LOGIN);
             setPassword(MockIMAPStore.MOCK_LOGIN);

Modified: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java (original)
+++ james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java Wed
Jun  3 15:07:09 2015
@@ -50,7 +50,7 @@ public class MockHttpSession implements
     }
 
 
-    @SuppressWarnings("rawtypes")
+    @SuppressWarnings({ "rawtypes", "unchecked" })
     public Enumeration getAttributeNames() {
         return new Enumeration() {
             Iterator it = attributeMap.keySet().iterator();

Modified: james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java
(original)
+++ james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java
Wed Jun  3 15:07:09 2015
@@ -59,13 +59,6 @@ import javax.mail.internet.MimeMessage;
 import org.apache.hupa.server.utils.MessageUtils;
 import org.apache.hupa.shared.data.GetMessageDetailsResultImpl;
 import org.apache.hupa.shared.data.MailHeaderImpl;
-import javax.mail.Multipart;
-import javax.mail.Part;
-import javax.mail.internet.MimeMessage;
-
-import org.apache.hupa.server.utils.MessageUtils;
-import org.apache.hupa.shared.data.GetMessageDetailsResultImpl;
-import org.apache.hupa.shared.data.MailHeaderImpl;
 import org.apache.hupa.shared.data.MessageDetailsImpl;
 import org.apache.hupa.shared.domain.GetMessageDetailsAction;
 import org.apache.hupa.shared.domain.GetMessageDetailsResult;

Modified: james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java
(original)
+++ james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java
Wed Jun  3 15:07:09 2015
@@ -55,7 +55,8 @@ public class StoreBugTest {
 
     Session session = Session.getDefaultInstance(new Properties(), null);
     static InMemoryIMAPStoreCache cache = new InMemoryIMAPStoreCache(new MockLog(), 2, 60000,
false, truststore, truststorePassword, false);
-    static User user = new UserImpl() {
+    @SuppressWarnings("serial")
+	static User user = new UserImpl() {
        {setName(imapUser); setPassword(imapPass);}
     };
 

Modified: james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java (original)
+++ james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java Wed
Jun  3 15:07:09 2015
@@ -24,7 +24,6 @@ import java.io.InputStream;
 import java.io.OutputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.List;
 
 import javax.mail.BodyPart;
 import javax.mail.Folder;

Modified: james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java
(original)
+++ james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java
Wed Jun  3 15:07:09 2015
@@ -51,7 +51,8 @@ public class ColorPicker extends PopupPa
             this(Long.toHexString(color));
         }
 
-        public ColorCell(String color) {
+        @SuppressWarnings("deprecation")
+		public ColorCell(String color) {
             super();
             setColor(color);
             setTitle(rgbColor);
@@ -74,7 +75,8 @@ public class ColorPicker extends PopupPa
             return rgbColor;
         }
 
-        public void setBorderColor(String color) {
+        @SuppressWarnings("deprecation")
+		public void setBorderColor(String color) {
             DOM.setStyleAttribute(getElement(), "border", "1px solid " + color);
         }
 
@@ -101,7 +103,8 @@ public class ColorPicker extends PopupPa
         0xffccff, 0xff99ff, 0xcc66cc, 0xcb32cb, 0x983298, 0x653265, 0x320032,
     };
 
-    public ColorPicker() {
+    @SuppressWarnings("deprecation")
+	public ColorPicker() {
         super(true);
         FlexTable t = new FlexTable();
         t.setCellPadding(0);

Modified: james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java (original)
+++ james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java Wed
Jun  3 15:07:09 2015
@@ -39,6 +39,7 @@ import com.google.gwt.user.client.ui.Ric
 /**
  * Wysiwyg editor for composing and editing emails in Hupa
  */
+@SuppressWarnings("deprecation")
 public class Editor extends FlowPanel implements HasHTML, Focusable {
 
     RichTextArea area = new RichTextArea();

Modified: james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java
(original)
+++ james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java
Wed Jun  3 15:07:09 2015
@@ -44,12 +44,13 @@ import com.google.gwt.user.client.ui.Ric
 /**
  * Font picker for rich editor
  */
+@SuppressWarnings("deprecation")
 public class FontPicker extends PopupPanel implements ClickHandler, HasValueChangeHandlers<FontPicker>
{
 
     private class FontCell extends HTML {
         String cellFont;
 
-        public FontCell(String font) {
+		public FontCell(String font) {
             super(font);
             this.cellFont = font;
             DOM.setStyleAttribute(getElement(), "backgroundColor", "#D8ECFD");

Modified: james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java?rev=1683360&r1=1683359&r2=1683360&view=diff
==============================================================================
--- james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java
(original)
+++ james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java
Wed Jun  3 15:07:09 2015
@@ -45,6 +45,7 @@ public class MultiValueSuggestArea exten
      *
      * @author manolo
      */
+    @SuppressWarnings("deprecation")
     private class CustomSuggestBox extends SuggestBox {
 
         public CustomSuggestBox(SuggestOracle oracle) {
@@ -86,7 +87,7 @@ public class MultiValueSuggestArea exten
         // We have to use getValue and setValue to get/set the entire text of the textarea
         // because setText and getText have different behavior since we have modified
         // this methods in the the box implementation
-        @Override
+		@Override
         public String getValue() {
             return DOM.getElementProperty(getValueBox().getElement(), "value");
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message