You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/01/02 19:58:46 UTC

svn commit: r1427903 - in /pivot/branches/2.0.x: core/src/org/apache/pivot/beans/ wtk-terra/src/org/apache/pivot/wtk/skin/terra/ wtk/src/org/apache/pivot/wtk/ wtk/src/org/apache/pivot/wtk/content/ wtk/src/org/apache/pivot/wtk/skin/

Author: smartini
Date: Wed Jan  2 18:58:45 2013
New Revision: 1427903

URL: http://svn.apache.org/viewvc?rev=1427903&view=rev
Log:
remove no more necessary (now with latest eclipse) SuppressWarnings in some sources

Modified:
    pivot/branches/2.0.x/core/src/org/apache/pivot/beans/BXMLSerializer.java
    pivot/branches/2.0.x/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TreeView.java
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ListViewItemRenderer.java
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinVerticalElementView.java

Modified: pivot/branches/2.0.x/core/src/org/apache/pivot/beans/BXMLSerializer.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/core/src/org/apache/pivot/beans/BXMLSerializer.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/core/src/org/apache/pivot/beans/BXMLSerializer.java (original)
+++ pivot/branches/2.0.x/core/src/org/apache/pivot/beans/BXMLSerializer.java Wed Jan  2 18:58:45 2013
@@ -392,7 +392,6 @@ public class BXMLSerializer implements S
     }
 
     /** DO NOT USE. see https://issues.apache.org/jira/browse/PIVOT-742 */
-    @SuppressWarnings("unused")
     @Deprecated
     public BXMLSerializer(final ClassLoader classLoader) {
         throw new UnsupportedOperationException("https://issues.apache.org/jira/browse/PIVOT-742");

Modified: pivot/branches/2.0.x/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java (original)
+++ pivot/branches/2.0.x/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFileBrowserSkin.java Wed Jan  2 18:58:45 2013
@@ -1177,7 +1177,6 @@ public class TerraFileBrowserSkin extend
 
         refreshFileListTask = new RefreshFileListTask(includeFileFilter, disabledFileFilter, fileComparator);
         refreshFileListTask.execute(new TaskAdapter<ArrayList<File>>(new TaskListener<ArrayList<File>>() {
-            @SuppressWarnings("unchecked")
             @Override
             public void taskExecuted(Task<ArrayList<File>> task) {
                 if (task == refreshFileListTask) {

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TreeView.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TreeView.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TreeView.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TreeView.java Wed Jan  2 18:58:45 2013
@@ -1666,7 +1666,6 @@ public class TreeView extends Component 
                 Path ancestorPath = new Path(path, path.getLength() - 1);
 
                 for (int i = ancestorPath.getLength() - 1; i >= 0; i--) {
-                    @SuppressWarnings("null")  // false warning from eclipse
                     NodeCheckState ancestorPreviousCheckState = ancestorCheckStates.get(i);
                     NodeCheckState ancestorCheckState = getNodeCheckState(ancestorPath);
 

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ListViewItemRenderer.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ListViewItemRenderer.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ListViewItemRenderer.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ListViewItemRenderer.java Wed Jan  2 18:58:45 2013
@@ -87,7 +87,7 @@ public class ListViewItemRenderer extend
     }
 
     protected void renderStyles(ListView listView, boolean selected,
-        @SuppressWarnings("unused") boolean highlighted, boolean disabled) {
+        boolean highlighted, boolean disabled) {
         imageView.getStyles().put("opacity", listView.isEnabled() ? 1.0f : 0.5f);
 
         Font font = (Font)listView.getStyles().get("font");

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java Wed Jan  2 18:58:45 2013
@@ -308,7 +308,6 @@ public class TableViewMultiCellRenderer 
         return STYLES;
     }
 
-    @SuppressWarnings("null")  // false warning from eclipse
     @Override
     public void render(Object row, int rowIndex, int columnIndex,
         TableView tableView, String columnName,
@@ -347,7 +346,6 @@ public class TableViewMultiCellRenderer 
         }
     }
 
-    @SuppressWarnings("null")  // false warning from eclipse
     @Override
     public String toString(Object row, String columnName) {
         Object cellData = JSON.get(row, columnName);

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinVerticalElementView.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinVerticalElementView.java?rev=1427903&r1=1427902&r2=1427903&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinVerticalElementView.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinVerticalElementView.java Wed Jan  2 18:58:45 2013
@@ -101,7 +101,6 @@ abstract class TextPaneSkinVerticalEleme
         return offset;
     }
 
-    @SuppressWarnings("null")  // false warning from eclipse
     @Override
     public int getNextInsertionPoint(int x, int from, TextPane.ScrollDirection direction) {
         int offset = -1;