This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: Removing redundant modifiers (Part 3)
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 11 Oct 2003 20:15:28 +0200
- Subject: FYI: Patch: Removing redundant modifiers (Part 3)
Hi list,
Just more removing of redundant modifiers.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2237
diff -u -b -B -r1.2237 ChangeLog
--- ChangeLog 11 Oct 2003 18:01:34 -0000 1.2237
+++ ChangeLog 11 Oct 2003 18:10:20 -0000
@@ -1,5 +1,32 @@
2003-10-11 Michael Koch <konqueror@gmx.de>
+ * java/awt/peer/ButtonPeer.java,
+ java/awt/peer/CheckboxMenuItemPeer.java,
+ java/awt/peer/CheckboxPeer.java,
+ java/awt/peer/ChoicePeer.java,
+ java/awt/peer/ComponentPeer.java,
+ java/awt/peer/ContainerPeer.java,
+ java/awt/peer/DialogPeer.java,
+ java/awt/peer/FileDialogPeer.java,
+ java/awt/peer/FramePeer.java,
+ java/awt/peer/LabelPeer.java,
+ java/awt/peer/ListPeer.java,
+ java/awt/peer/MenuBarPeer.java,
+ java/awt/peer/MenuComponentPeer.java,
+ java/awt/peer/MenuItemPeer.java,
+ java/awt/peer/MenuPeer.java,
+ java/awt/peer/PopupMenuPeer.java,
+ java/awt/peer/RobotPeer.java,
+ java/awt/peer/ScrollPanePeer.java,
+ java/awt/peer/ScrollbarPeer.java,
+ java/awt/peer/TextAreaPeer.java,
+ java/awt/peer/TextComponentPeer.java,
+ java/awt/peer/TextFieldPeer.java,
+ java/awt/peer/WindowPeer.java:
+ Removed redundant modifiers.
+
+2003-10-11 Michael Koch <konqueror@gmx.de>
+
* gnu/java/nio/NIOSocket.java (setChannel): Initialize impl.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Made it a NIOServerSocket.
Index: java/awt/peer/ButtonPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ButtonPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 ButtonPeer.java
--- java/awt/peer/ButtonPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/ButtonPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,6 +40,7 @@
public interface ButtonPeer extends ComponentPeer
{
- public void setLabel(String label);
+ void setLabel (String label);
+
} // interface ButtonPeer
Index: java/awt/peer/CheckboxMenuItemPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/CheckboxMenuItemPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 CheckboxMenuItemPeer.java
--- java/awt/peer/CheckboxMenuItemPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/CheckboxMenuItemPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,6 +40,7 @@
public interface CheckboxMenuItemPeer extends MenuItemPeer
{
- public void setState(boolean state);
+ void setState (boolean state);
+
} // interface CheckboxMenuItemPeer
Index: java/awt/peer/CheckboxPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/CheckboxPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 CheckboxPeer.java
--- java/awt/peer/CheckboxPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/CheckboxPeer.java 11 Oct 2003 18:10:20 -0000
@@ -38,10 +38,15 @@
package java.awt.peer;
+import java.awt.CheckboxGroup;
+
public interface CheckboxPeer extends ComponentPeer
{
- public void setCheckboxGroup(java.awt.CheckboxGroup group);
- public void setLabel(String label);
- public void setState(boolean state);
+ void setCheckboxGroup (CheckboxGroup group);
+
+ void setLabel (String label);
+
+ void setState (boolean state);
+
} // interface CheckboxPeer
Index: java/awt/peer/ChoicePeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ChoicePeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 ChoicePeer.java
--- java/awt/peer/ChoicePeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/ChoicePeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,10 +40,15 @@
public interface ChoicePeer extends ComponentPeer
{
- public void add(String item, int index);
- public void addItem(String item, int index);
- public void remove(int index);
- public void removeAll();
- public void select(int index);
+ void add (String item, int index);
+
+ void addItem (String item, int index);
+
+ void remove (int index);
+
+ void removeAll();
+
+ void select (int index);
+
} // interface ChoicePeer
Index: java/awt/peer/ComponentPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ComponentPeer.java,v
retrieving revision 1.11
diff -u -b -B -r1.11 ComponentPeer.java
--- java/awt/peer/ComponentPeer.java 5 Jun 2003 19:58:40 -0000 1.11
+++ java/awt/peer/ComponentPeer.java 11 Oct 2003 18:10:20 -0000
@@ -39,7 +39,10 @@
package java.awt.peer;
import java.awt.AWTEvent;
+import java.awt.AWTException;
+import java.awt.BufferCapabilities;
import java.awt.Color;
+import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
@@ -57,79 +60,79 @@
public interface ComponentPeer
{
- public int checkImage(Image img, int width, int height,
+ int checkImage(Image img, int width, int height,
ImageObserver ob);
- public Image createImage(ImageProducer prod);
- public Image createImage(int width, int height);
- public void disable();
- public void dispose();
- public void enable();
- public ColorModel getColorModel();
- public FontMetrics getFontMetrics(Font f);
- public Graphics getGraphics();
- public Point getLocationOnScreen();
- public Dimension getMinimumSize();
- public Dimension getPreferredSize();
- public Toolkit getToolkit();
- public void handleEvent(AWTEvent e);
- public void hide();
+ Image createImage(ImageProducer prod);
+ Image createImage(int width, int height);
+ void disable();
+ void dispose();
+ void enable();
+ ColorModel getColorModel();
+ FontMetrics getFontMetrics(Font f);
+ Graphics getGraphics();
+ Point getLocationOnScreen();
+ Dimension getMinimumSize();
+ Dimension getPreferredSize();
+ Toolkit getToolkit();
+ void handleEvent(AWTEvent e);
+ void hide();
/**
* Part of the earlier 1.1 API, replaced by isFocusable().
*/
- public boolean isFocusTraversable();
- public boolean isFocusable();
- public Dimension minimumSize();
- public Dimension preferredSize();
- public void paint(Graphics graphics);
- public boolean prepareImage(Image img, int width, int height,
+ boolean isFocusTraversable();
+ boolean isFocusable();
+ Dimension minimumSize();
+ Dimension preferredSize();
+ void paint(Graphics graphics);
+ boolean prepareImage(Image img, int width, int height,
ImageObserver ob);
- public void print(Graphics graphics);
- public void repaint(long tm, int x, int y, int width, int height);
+ void print(Graphics graphics);
+ void repaint(long tm, int x, int y, int width, int height);
/**
* Part of the earlier 1.1 API, apparently replaced by argument
* form of the same method.
*/
- public void requestFocus();
- public boolean requestFocus(java.awt.Component source, boolean bool1, boolean bool2, long x);
+ void requestFocus();
+ boolean requestFocus (Component source, boolean bool1, boolean bool2, long x);
- public void reshape(int x, int y, int width, int height);
- public void setBackground(Color color);
- public void setBounds(int x, int y, int width, int height);
+ void reshape(int x, int y, int width, int height);
+ void setBackground(Color color);
+ void setBounds(int x, int y, int width, int height);
/**
* Part of the earlier 1.1 API, apparently no longer needed.
*/
- public void setCursor(Cursor cursor);
+ void setCursor(Cursor cursor);
- public void setEnabled(boolean enabled);
- public void setFont(Font font);
- public void setForeground(Color color);
- public void setVisible(boolean visible);
- public void show();
+ void setEnabled(boolean enabled);
+ void setFont(Font font);
+ void setForeground(Color color);
+ void setVisible(boolean visible);
+ void show();
/**
* Get the graphics configuration of the component. The color model
* of the component can be derived from the configuration.
*/
- public GraphicsConfiguration getGraphicsConfiguration();
+ GraphicsConfiguration getGraphicsConfiguration();
/**
* Part of an older API, no longer needed.
*/
- public void setEventMask (long mask);
+ void setEventMask (long mask);
// Methods below are introduced since 1.1
- public boolean isObscured();
- public boolean canDetermineObscurity();
- public void coalescePaintEvent(PaintEvent e);
- public void updateCursorImmediately();
- public VolatileImage createVolatileImage(int width, int height);
- public boolean handlesWheelScrolling();
- public void createBuffers(int x, java.awt.BufferCapabilities capabilities) throws java.awt.AWTException;
- public java.awt.Image getBackBuffer();
- public void flip(java.awt.BufferCapabilities.FlipContents contents);
- public void destroyBuffers();
+ boolean isObscured();
+ boolean canDetermineObscurity();
+ void coalescePaintEvent(PaintEvent e);
+ void updateCursorImmediately();
+ VolatileImage createVolatileImage(int width, int height);
+ boolean handlesWheelScrolling();
+ void createBuffers(int x, BufferCapabilities capabilities) throws AWTException;
+ Image getBackBuffer();
+ void flip(BufferCapabilities.FlipContents contents);
+ void destroyBuffers();
}
Index: java/awt/peer/ContainerPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ContainerPeer.java,v
retrieving revision 1.9
diff -u -b -B -r1.9 ContainerPeer.java
--- java/awt/peer/ContainerPeer.java 1 Mar 2003 22:14:21 -0000 1.9
+++ java/awt/peer/ContainerPeer.java 11 Oct 2003 18:10:20 -0000
@@ -41,12 +41,19 @@
public interface ContainerPeer extends ComponentPeer
{
- public Insets insets();
- public Insets getInsets();
- public void beginValidate();
- public void endValidate();
- public void beginLayout();
- public void endLayout();
- public boolean isPaintPending();
+ Insets insets();
+
+ Insets getInsets();
+
+ void beginValidate();
+
+ void endValidate();
+
+ void beginLayout();
+
+ void endLayout();
+
+ boolean isPaintPending();
+
} // interface ContainerPeer
Index: java/awt/peer/DialogPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/DialogPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 DialogPeer.java
--- java/awt/peer/DialogPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/DialogPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,7 +40,9 @@
public interface DialogPeer extends WindowPeer
{
- public void setResizable(boolean resizeable);
- public void setTitle(String title);
+ void setResizable (boolean resizeable);
+
+ void setTitle (String title);
+
} // interface DialogPeer
Index: java/awt/peer/FileDialogPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/FileDialogPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 FileDialogPeer.java
--- java/awt/peer/FileDialogPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/FileDialogPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,8 +42,11 @@
public interface FileDialogPeer extends DialogPeer
{
- public void setFile(String file);
- public void setDirectory(String dir);
- public void setFilenameFilter(FilenameFilter ff);
+ void setFile (String file);
+
+ void setDirectory (String dir);
+
+ void setFilenameFilter (FilenameFilter ff);
+
} // interface FileDialogPeer
Index: java/awt/peer/FramePeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/FramePeer.java,v
retrieving revision 1.7
diff -u -b -B -r1.7 FramePeer.java
--- java/awt/peer/FramePeer.java 1 Mar 2003 22:14:21 -0000 1.7
+++ java/awt/peer/FramePeer.java 11 Oct 2003 18:10:20 -0000
@@ -44,12 +44,12 @@
public interface FramePeer extends WindowPeer
{
- public void setIconImage(Image image);
- public void setMenuBar(MenuBar mb);
- public void setResizable(boolean resizable);
- public void setTitle(String title);
- public int getState();
- public void setState(int state);
- public void setMaximizedBounds(Rectangle r);
+ void setIconImage(Image image);
+ void setMenuBar(MenuBar mb);
+ void setResizable(boolean resizable);
+ void setTitle(String title);
+ int getState();
+ void setState(int state);
+ void setMaximizedBounds(Rectangle r);
} // interface FramePeer
Index: java/awt/peer/LabelPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/LabelPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 LabelPeer.java
--- java/awt/peer/LabelPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/LabelPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,7 +40,7 @@
public interface LabelPeer extends ComponentPeer
{
- public void setAlignment(int alignment);
- public void setText(String text);
+ void setAlignment(int alignment);
+ void setText(String text);
} // interface LabelPeer
Index: java/awt/peer/ListPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ListPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 ListPeer.java
--- java/awt/peer/ListPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/ListPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,21 +42,20 @@
public interface ListPeer extends ComponentPeer
{
-
- public void add(String item, int index);
- public void addItem(String item, int index);
- public void clear();
- public void delItems(int start_index, int end_index);
- public void deselect(int index);
- public int[] getSelectedIndexes();
- public void makeVisible(int index);
- public Dimension minimumSize(int s);
- public Dimension preferredSize(int s);
- public void removeAll();
- public void select(int index);
- public void setMultipleMode(boolean multi);
- public void setMultipleSelections(boolean multi);
- public Dimension getPreferredSize(int s);
- public Dimension getMinimumSize(int s);
+ void add(String item, int index);
+ void addItem(String item, int index);
+ void clear();
+ void delItems(int start_index, int end_index);
+ void deselect(int index);
+ int[] getSelectedIndexes();
+ void makeVisible(int index);
+ Dimension minimumSize(int s);
+ Dimension preferredSize(int s);
+ void removeAll();
+ void select(int index);
+ void setMultipleMode(boolean multi);
+ void setMultipleSelections(boolean multi);
+ Dimension getPreferredSize(int s);
+ Dimension getMinimumSize(int s);
} // interface ListPeer
Index: java/awt/peer/MenuBarPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/MenuBarPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 MenuBarPeer.java
--- java/awt/peer/MenuBarPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/MenuBarPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,8 +42,8 @@
public interface MenuBarPeer extends MenuComponentPeer
{
- public void addHelpMenu(Menu menu);
- public void addMenu(Menu menu);
- public void delMenu(int index);
+ void addHelpMenu(Menu menu);
+ void addMenu(Menu menu);
+ void delMenu(int index);
} // interface MenuBarPeer
Index: java/awt/peer/MenuComponentPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/MenuComponentPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 MenuComponentPeer.java
--- java/awt/peer/MenuComponentPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/MenuComponentPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,6 +40,6 @@
public interface MenuComponentPeer
{
- public void dispose();
+ void dispose();
} // interface MenuComponentPeer
Index: java/awt/peer/MenuItemPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/MenuItemPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 MenuItemPeer.java
--- java/awt/peer/MenuItemPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/MenuItemPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,9 +40,9 @@
public interface MenuItemPeer extends MenuComponentPeer
{
- public void disable();
- public void enable();
- public void setEnabled(boolean enabled);
- public void setLabel(String text);
+ void disable();
+ void enable();
+ void setEnabled(boolean enabled);
+ void setLabel(String text);
} // interface MenuItemPeer
Index: java/awt/peer/MenuPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/MenuPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 MenuPeer.java
--- java/awt/peer/MenuPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/MenuPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,8 +42,8 @@
public interface MenuPeer extends MenuItemPeer
{
- public void addItem (MenuItem item);
- public void addSeparator ();
- public void delItem (int index);
+ void addItem (MenuItem item);
+ void addSeparator ();
+ void delItem (int index);
}
Index: java/awt/peer/PopupMenuPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/PopupMenuPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 PopupMenuPeer.java
--- java/awt/peer/PopupMenuPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/PopupMenuPeer.java 11 Oct 2003 18:10:20 -0000
@@ -43,11 +43,11 @@
public interface PopupMenuPeer extends MenuPeer
{
-
/**
* Part of the older API, replaced by event version instead.
*/
- public void show (Component origin, int x, int y);
- public void show (Event e);
+ void show (Component origin, int x, int y);
+
+ void show (Event e);
} // interface PopupMenuPeer
Index: java/awt/peer/RobotPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/RobotPeer.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 RobotPeer.java
--- java/awt/peer/RobotPeer.java 1 Mar 2003 22:14:21 -0000 1.1
+++ java/awt/peer/RobotPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,13 +42,13 @@
public interface RobotPeer
{
- public void mouseMove (int x, int y);
- public void mousePress (int x);
- public void mouseRelease (int x);
- public void mouseWheel (int x);
- public void keyPress (int x);
- public void keyRelease (int x);
- public int getRGBPixel (int x, int y);
- public int[] getRGBPixels (Rectangle r);
+ void mouseMove (int x, int y);
+ void mousePress (int x);
+ void mouseRelease (int x);
+ void mouseWheel (int x);
+ void keyPress (int x);
+ void keyRelease (int x);
+ int getRGBPixel (int x, int y);
+ int[] getRGBPixels (Rectangle r);
} // interface RobotPeer
Index: java/awt/peer/ScrollPanePeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ScrollPanePeer.java,v
retrieving revision 1.6
diff -u -b -B -r1.6 ScrollPanePeer.java
--- java/awt/peer/ScrollPanePeer.java 1 Mar 2003 22:14:21 -0000 1.6
+++ java/awt/peer/ScrollPanePeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,11 +42,11 @@
public interface ScrollPanePeer extends ContainerPeer
{
- public int getHScrollbarHeight();
- public int getVScrollbarWidth();
- public void setScrollPosition(int h, int v);
- public void childResized(int width, int height);
- public void setUnitIncrement(Adjustable item, int inc);
- public void setValue(Adjustable item, int value);
+ int getHScrollbarHeight();
+ int getVScrollbarWidth();
+ void setScrollPosition(int h, int v);
+ void childResized(int width, int height);
+ void setUnitIncrement(Adjustable item, int inc);
+ void setValue(Adjustable item, int value);
} // interface ScollPanePeer
Index: java/awt/peer/ScrollbarPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/ScrollbarPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 ScrollbarPeer.java
--- java/awt/peer/ScrollbarPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/ScrollbarPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,8 +40,8 @@
public interface ScrollbarPeer extends ComponentPeer
{
- public void setLineIncrement(int inc);
- public void setPageIncrement(int inc);
- public void setValues(int value, int visible, int min, int max);
+ void setLineIncrement(int inc);
+ void setPageIncrement(int inc);
+ void setValues(int value, int visible, int min, int max);
} // interface ScrollbarPeer
Index: java/awt/peer/TextAreaPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/TextAreaPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 TextAreaPeer.java
--- java/awt/peer/TextAreaPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/TextAreaPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,12 +42,12 @@
public interface TextAreaPeer extends TextComponentPeer
{
- public void insert(String text, int pos);
- public void insertText(String text, int pos);
- public Dimension minimumSize(int rows, int cols);
- public Dimension getMinimumSize(int rows, int cols);
- public Dimension preferredSize(int rows, int cols);
- public Dimension getPreferredSize(int rows, int cols);
- public void replaceRange(String text, int start_pos, int end_pos);
- public void replaceText(String text, int start_pos, int end_pos);
+ void insert(String text, int pos);
+ void insertText(String text, int pos);
+ Dimension minimumSize(int rows, int cols);
+ Dimension getMinimumSize(int rows, int cols);
+ Dimension preferredSize(int rows, int cols);
+ Dimension getPreferredSize(int rows, int cols);
+ void replaceRange(String text, int start_pos, int end_pos);
+ void replaceText(String text, int start_pos, int end_pos);
} // interface TextAreaPeer
Index: java/awt/peer/TextComponentPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/TextComponentPeer.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 TextComponentPeer.java
--- java/awt/peer/TextComponentPeer.java 1 Mar 2003 22:14:21 -0000 1.4
+++ java/awt/peer/TextComponentPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,16 +42,16 @@
public interface TextComponentPeer extends ComponentPeer
{
- public int getSelectionEnd();
- public int getSelectionStart();
- public String getText();
- public void setText(String text);
- public void select(int start_pos, int end_pos);
- public void setEditable(boolean editable);
- public int getCaretPosition();
- public void setCaretPosition(int pos);
- public int getIndexAtPoint(int x, int y);
- public Rectangle getCharacterBounds(int pos);
- public long filterEvents(long filter);
+ int getSelectionEnd();
+ int getSelectionStart();
+ String getText();
+ void setText(String text);
+ void select(int start_pos, int end_pos);
+ void setEditable(boolean editable);
+ int getCaretPosition();
+ void setCaretPosition(int pos);
+ int getIndexAtPoint(int x, int y);
+ Rectangle getCharacterBounds(int pos);
+ long filterEvents(long filter);
} // interface TextComponentPeer
Index: java/awt/peer/TextFieldPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/TextFieldPeer.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 TextFieldPeer.java
--- java/awt/peer/TextFieldPeer.java 1 Mar 2003 22:14:21 -0000 1.5
+++ java/awt/peer/TextFieldPeer.java 11 Oct 2003 18:10:20 -0000
@@ -42,11 +42,11 @@
public interface TextFieldPeer extends TextComponentPeer
{
- public Dimension minimumSize(int len);
- public Dimension preferredSize(int len);
- public Dimension getMinimumSize(int len);
- public Dimension getPreferredSize(int len);
- public void setEchoChar(char echo_char);
- public void setEchoCharacter(char echo_char);
+ Dimension minimumSize(int len);
+ Dimension preferredSize(int len);
+ Dimension getMinimumSize(int len);
+ Dimension getPreferredSize(int len);
+ void setEchoChar(char echo_char);
+ void setEchoCharacter(char echo_char);
} // interface TextFieldPeer
Index: java/awt/peer/WindowPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/peer/WindowPeer.java,v
retrieving revision 1.7
diff -u -b -B -r1.7 WindowPeer.java
--- java/awt/peer/WindowPeer.java 1 Mar 2003 22:14:21 -0000 1.7
+++ java/awt/peer/WindowPeer.java 11 Oct 2003 18:10:20 -0000
@@ -40,7 +40,7 @@
public interface WindowPeer extends ContainerPeer
{
- public void toBack();
- public void toFront();
+ void toBack();
+ void toFront();
} // interface WindowPeer