summaryrefslogtreecommitdiff
path: root/javax
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-01-09 20:42:36 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-01-09 20:42:36 +0000
commit7aa3cc0b7dc8206eb1910ca9ad195dcfb819b67f (patch)
treef342ed3be31a43a267a16272ec1f0bebc8a6eafc /javax
parentefeb92bcee2e59df89813bbb46742fca1fafc6e3 (diff)
downloadclasspath-7aa3cc0b7dc8206eb1910ca9ad195dcfb819b67f.tar.gz
2008-01-09 Stefan Huehner <stefan@huehner.org>
* examples/gnu/classpath/examples/java2d/J2dBenchmark.java, * gnu/CORBA/OrbFocused.java, * gnu/CORBA/CDR/HeadlessInput.java, * gnu/java/awt/peer/gtk/CairoGraphics2D.java, * gnu/java/awt/peer/gtk/GtkFramePeer.java, * gnu/java/awt/peer/qt/QtMenuPeer.java, * gnu/java/nio/FileChannelImpl.java, * gnu/java/nio/SocketChannelSelectionKeyImpl.java, * gnu/java/security/Engine.java, * gnu/javax/imageio/jpeg/JPEGComponent.java, * gnu/javax/imageio/jpeg/JPEGDecoder.java, * gnu/javax/imageio/jpeg/JPEGFrame.java, * gnu/javax/print/PrinterDialog.java, * gnu/javax/security/auth/Password.java, * gnu/javax/swing/text/html/parser/support/Parser.java, * gnu/javax/swing/text/html/parser/support/parameterDefaulter.java, * gnu/xml/pipeline/DomConsumer.java, * java/awt/AWTKeyStroke.java, * java/awt/DefaultKeyboardFocusManager.java, * java/awt/GridBagLayout.java, * java/awt/dnd/DragGestureRecognizer.java, * java/awt/geom/Arc2D.java, * java/awt/geom/CubicCurve2D.java, * java/awt/geom/QuadCurve2D.java, * java/awt/im/InputContext.java, * java/awt/image/AffineTransformOp.java, * java/beans/Encoder.java, * java/io/ObjectInputStream.java, * java/io/ObjectStreamClass.java, * java/net/ResolverCache.java, * java/nio/charset/Charset.java, * java/security/SecureClassLoader.java, * java/text/MessageFormat.java, * java/util/jar/Manifest.java, * javax/accessibility/AccessibleRelationSet.java, * javax/imageio/ImageReader.java, * javax/imageio/metadata/IIOMetadataNode.java, * javax/print/attribute/standard/MediaSize.java, * javax/print/attribute/standard/PrinterStateReasons.java, * javax/swing/JTree.java, * javax/swing/table/DefaultTableColumnModel.java, * javax/swing/text/html/MinimalHTMLWriter.java, * javax/swing/text/html/parser/DTD.java, * javax/swing/tree/DefaultMutableTreeNode.java, * javax/swing/undo/UndoManager.java, * org/omg/CosNaming/NamingContextExtPOA.java, * org/omg/CosNaming/NamingContextPOA.java, * org/omg/CosNaming/_NamingContextExtImplBase.java, * org/omg/CosNaming/_NamingContextImplBase.java, * tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java: Remove unneeded casts
Diffstat (limited to 'javax')
-rw-r--r--javax/accessibility/AccessibleRelationSet.java4
-rw-r--r--javax/imageio/ImageReader.java2
-rw-r--r--javax/imageio/metadata/IIOMetadataNode.java2
-rw-r--r--javax/print/attribute/standard/MediaSize.java4
-rw-r--r--javax/print/attribute/standard/PrinterStateReasons.java2
-rw-r--r--javax/swing/JTree.java2
-rw-r--r--javax/swing/table/DefaultTableColumnModel.java8
-rw-r--r--javax/swing/text/html/MinimalHTMLWriter.java2
-rw-r--r--javax/swing/text/html/parser/DTD.java6
-rw-r--r--javax/swing/tree/DefaultMutableTreeNode.java4
-rw-r--r--javax/swing/undo/UndoManager.java12
11 files changed, 24 insertions, 24 deletions
diff --git a/javax/accessibility/AccessibleRelationSet.java b/javax/accessibility/AccessibleRelationSet.java
index 768c9cd79..49161d77e 100644
--- a/javax/accessibility/AccessibleRelationSet.java
+++ b/javax/accessibility/AccessibleRelationSet.java
@@ -168,7 +168,7 @@ public class AccessibleRelationSet
{
int i = relations.size();
while (--i >= 0)
- if (((AccessibleRelation) relations.get(i)).key.equals(key))
+ if ((relations.get(i)).key.equals(key))
return true;
return false;
}
@@ -184,7 +184,7 @@ public class AccessibleRelationSet
int i = relations.size();
while (--i >= 0)
{
- AccessibleRelation r = (AccessibleRelation) relations.get(i);
+ AccessibleRelation r = relations.get(i);
if (r.key.equals(key))
return r;
}
diff --git a/javax/imageio/ImageReader.java b/javax/imageio/ImageReader.java
index a51eb4221..269493f23 100644
--- a/javax/imageio/ImageReader.java
+++ b/javax/imageio/ImageReader.java
@@ -1734,7 +1734,7 @@ public abstract class ImageReader
public ImageTypeSpecifier getRawImageType (int imageIndex)
throws IOException
{
- return (ImageTypeSpecifier) getImageTypes(imageIndex).next();
+ return getImageTypes(imageIndex).next();
}
/**
diff --git a/javax/imageio/metadata/IIOMetadataNode.java b/javax/imageio/metadata/IIOMetadataNode.java
index 2d52e4670..37269f539 100644
--- a/javax/imageio/metadata/IIOMetadataNode.java
+++ b/javax/imageio/metadata/IIOMetadataNode.java
@@ -334,7 +334,7 @@ public class IIOMetadataNode
*/
public void setAttribute(String name, String value)
{
- Attr attr = (Attr) getAttributeNode(name);
+ Attr attr = getAttributeNode(name);
if (attr != null)
attr.setValue(value);
else
diff --git a/javax/print/attribute/standard/MediaSize.java b/javax/print/attribute/standard/MediaSize.java
index be3f15678..f2fa100a0 100644
--- a/javax/print/attribute/standard/MediaSize.java
+++ b/javax/print/attribute/standard/MediaSize.java
@@ -214,7 +214,7 @@ public class MediaSize extends Size2DSyntax
for (int i = 0; i < mediaCache.size(); i++)
{
- MediaSize size = (MediaSize) mediaCache.get(i);
+ MediaSize size = mediaCache.get(i);
int dist = (Math.abs(size.getXMicrometers() - xMicro)
+ Math.abs(size.getYMicrometers() - yMicro));
@@ -240,7 +240,7 @@ public class MediaSize extends Size2DSyntax
{
for (int i = 0; i < mediaCache.size(); i++)
{
- MediaSize size = (MediaSize) mediaCache.get(i);
+ MediaSize size = mediaCache.get(i);
if (size.getMediaSizeName().equals(media))
return size;
diff --git a/javax/print/attribute/standard/PrinterStateReasons.java b/javax/print/attribute/standard/PrinterStateReasons.java
index c58dd5379..3e77e181e 100644
--- a/javax/print/attribute/standard/PrinterStateReasons.java
+++ b/javax/print/attribute/standard/PrinterStateReasons.java
@@ -178,7 +178,7 @@ public final class PrinterStateReasons
if (severity == null)
throw new NullPointerException("severity is null");
- return super.put((PrinterStateReason) reason, (Severity) severity);
+ return super.put(reason, severity);
}
/**
diff --git a/javax/swing/JTree.java b/javax/swing/JTree.java
index 332ec7424..c0365bc38 100644
--- a/javax/swing/JTree.java
+++ b/javax/swing/JTree.java
@@ -3105,7 +3105,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
{
while (toRemove.hasMoreElements())
{
- TreePath current = (TreePath) toRemove.nextElement();
+ TreePath current = toRemove.nextElement();
Enumeration descendants = getDescendantToggledPaths(current);
while (descendants.hasMoreElements())
diff --git a/javax/swing/table/DefaultTableColumnModel.java b/javax/swing/table/DefaultTableColumnModel.java
index e4e7201b1..717ea9868 100644
--- a/javax/swing/table/DefaultTableColumnModel.java
+++ b/javax/swing/table/DefaultTableColumnModel.java
@@ -243,7 +243,7 @@ public class DefaultTableColumnModel
int columnCount = tableColumns.size();
for (int i = 0; i < columnCount; i++)
{
- TableColumn tc = (TableColumn) tableColumns.get(i);
+ TableColumn tc = tableColumns.get(i);
if (identifier.equals(tc.getIdentifier()))
return i;
}
@@ -264,7 +264,7 @@ public class DefaultTableColumnModel
*/
public TableColumn getColumn(int columnIndex)
{
- return (TableColumn) tableColumns.get(columnIndex);
+ return tableColumns.get(columnIndex);
}
/**
@@ -299,7 +299,7 @@ public class DefaultTableColumnModel
{
for (int i = 0; i < tableColumns.size(); ++i)
{
- int w = ((TableColumn) tableColumns.get(i)).getWidth();
+ int w = (tableColumns.get(i)).getWidth();
if (0 <= x && x < w)
return i;
else
@@ -654,7 +654,7 @@ public class DefaultTableColumnModel
totalColumnWidth = 0;
for (int i = 0; i < tableColumns.size(); ++i)
{
- totalColumnWidth += ((TableColumn) tableColumns.get(i)).getWidth();
+ totalColumnWidth += tableColumns.get(i).getWidth();
}
}
}
diff --git a/javax/swing/text/html/MinimalHTMLWriter.java b/javax/swing/text/html/MinimalHTMLWriter.java
index d42951a05..acb2c04ac 100644
--- a/javax/swing/text/html/MinimalHTMLWriter.java
+++ b/javax/swing/text/html/MinimalHTMLWriter.java
@@ -321,7 +321,7 @@ public class MinimalHTMLWriter extends AbstractWriter
}
else
{ // What else to do here?
- Style s = (Style)doc.getStyle("default");
+ Style s = doc.getStyle("default");
if(s != null)
writeStyle( s );
}
diff --git a/javax/swing/text/html/parser/DTD.java b/javax/swing/text/html/parser/DTD.java
index ae3c184f1..09b50fee7 100644
--- a/javax/swing/text/html/parser/DTD.java
+++ b/javax/swing/text/html/parser/DTD.java
@@ -181,7 +181,7 @@ public class DTD
public static DTD getDTD(String name)
throws IOException
{
- DTD d = (DTD) dtdHash.get(name);
+ DTD d = dtdHash.get(name);
if (d == null)
{
@@ -210,7 +210,7 @@ public class DTD
*/
public Element getElement(int index)
{
- return (Element) elements.get(index);
+ return elements.get(index);
}
/**
@@ -235,7 +235,7 @@ public class DTD
*/
public Entity getEntity(String entity_name)
{
- return (Entity) entityHash.get(entity_name);
+ return entityHash.get(entity_name);
}
/**
diff --git a/javax/swing/tree/DefaultMutableTreeNode.java b/javax/swing/tree/DefaultMutableTreeNode.java
index 9f587946f..218d31473 100644
--- a/javax/swing/tree/DefaultMutableTreeNode.java
+++ b/javax/swing/tree/DefaultMutableTreeNode.java
@@ -202,7 +202,7 @@ public class DefaultMutableTreeNode
*/
public void remove(int index)
{
- MutableTreeNode child = (MutableTreeNode) children.remove(index);
+ MutableTreeNode child = children.remove(index);
child.setParent(null);
}
@@ -553,7 +553,7 @@ public class DefaultMutableTreeNode
{
node = node.getParent();
size = node.getChildCount();
- index = ((Integer) stack.pop()).intValue() + 1;
+ index = stack.pop().intValue() + 1;
current--;
}
while (index >= size
diff --git a/javax/swing/undo/UndoManager.java b/javax/swing/undo/UndoManager.java
index b9e6de675..1f47d5170 100644
--- a/javax/swing/undo/UndoManager.java
+++ b/javax/swing/undo/UndoManager.java
@@ -196,7 +196,7 @@ public class UndoManager
size = edits.size();
for (int i = size - 1; i >= 0; i--)
- ((UndoableEdit) edits.get(i)).die();
+ edits.get(i).die();
indexOfNextAdd = 0;
edits.clear();
}
@@ -244,7 +244,7 @@ public class UndoManager
return;
for (int i = to; i >= from; i--)
- ((UndoableEdit) edits.get(i)).die();
+ edits.get(i).die();
// Remove the range [from .. to] from edits. If from == to, which
// is likely to be a very common case, we can do better than
@@ -275,7 +275,7 @@ public class UndoManager
for (int i = indexOfNextAdd - 1; i >= 0; i--)
{
- result = (UndoableEdit) edits.get(i);
+ result = edits.get(i);
if (result.isSignificant())
return result;
}
@@ -298,7 +298,7 @@ public class UndoManager
for (int i = indexOfNextAdd; i < edits.size(); i++)
{
- result = (UndoableEdit) edits.get(i);
+ result = edits.get(i);
if (result.isSignificant())
return result;
}
@@ -324,7 +324,7 @@ public class UndoManager
while (true)
{
indexOfNextAdd -= 1;
- cur = (UndoableEdit) edits.get(indexOfNextAdd);
+ cur = edits.get(indexOfNextAdd);
cur.undo();
if (cur == edit)
return;
@@ -348,7 +348,7 @@ public class UndoManager
while (true)
{
- cur = (UndoableEdit) edits.get(indexOfNextAdd);
+ cur = edits.get(indexOfNextAdd);
indexOfNextAdd += 1;
cur.redo();
if (cur == edit)