Permalink
Browse files

merge from 2.0.x - remove some SuppressWarnings, no more necessary no…

…w using the latest eclipse

git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1427908 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 36e89a4 commit a79b3edd3fd7b60d895019c87aaa2f872ed67ec7 Sandro Martini committed Jan 2, 2013
@@ -392,7 +392,6 @@ public int size() {
}
/** 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");
@@ -1177,7 +1177,6 @@ private void refreshFileList() {
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) {
@@ -1666,7 +1666,6 @@ public void setNodeChecked(Path path, boolean checked) {
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);
@@ -87,7 +87,7 @@ public void render(Object item, int index, ListView listView, boolean selected,
}
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");
@@ -308,7 +308,6 @@ public int getBaseline(int widthArgument, int heightArgument) {
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 void render(Object row, int rowIndex, int columnIndex,
}
}
- @SuppressWarnings("null") // false warning from eclipse
@Override
public String toString(Object row, String columnName) {
Object cellData = JSON.get(row, columnName);
@@ -101,7 +101,6 @@ public int getInsertionPoint(int x, int y) {
return offset;
}
- @SuppressWarnings("null") // false warning from eclipse
@Override
public int getNextInsertionPoint(int x, int from, TextPane.ScrollDirection direction) {
int offset = -1;

0 comments on commit a79b3ed

Please sign in to comment.