bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static Policy extract(Any any) { try { PolicyHolder h = (PolicyHolder) any.extract_Streamable(); return h.value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Policy expected"); } } | public static Policy extract(Any any) { try { PolicyHolder h = (PolicyHolder) any.extract_Streamable(); return h.value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Policy expected"); bad.minor = Minor.Any; throw bad; } } | 5,905 |
private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | 5,906 |
private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | 5,907 |
private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | 5,908 |
private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | private void createExternalProgramsPanel() { // create external options panel JPanel externalPrograms = new JPanel(); // define layout externalPanel.setLayout(new BorderLayout()); externalPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5)); externalPrograms.setLayout(new AlignLayout(3,5,5)... | 5,909 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | 5,910 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | 5,911 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | 5,912 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | 5,913 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private switch (logLevel) { case TN5250jLogger.OFF: intOFF.setSelected(true); break; case TN5250jLogger.DEBUG: intDEBUG.setSelected(true); break; case TN5250jLogger.INFO: intINFO.setSelected(true); break; case TN5250jLogger.WARN: intWARN.setSelected(true); break; case TN5250jLogger.ERROR: intERROR.setSelected(true); b... | 5,914 |
private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | private void createLoggingPanel(){ loggingPanel.setLayout(new GridBagLayout()); // levelPanel levelPanel = new JPanel(new GridBagLayout()); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("logscr.Level")); tb.setTitleJustification(TitledBorder.CENTER); levelPanel.setBorder(tb); // Crea... | 5,915 |
public void itemStateChanged(ItemEvent e) { intConsole_itemStateChanged(e); } | public void itemStateChanged(ItemEvent e) { intConsole_itemStateChanged(e); } | 5,916 |
void jbInit() throws Exception { // make it non resizable setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options createButtonOptions(); JTabbedPan... | void jbInit() throws Exception { // make it non resizable setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options createButtonOptions(); JTabbedPan... | 5,918 |
private void saveProps() { setOptionAccess(); setExternalPrograms(); ConfigureFactory.getInstance().saveSettings( ConfigureFactory.SESSIONS, "------ Session Information --------"); OptionAccessFactory.getInstance().reload(); } | private void saveProps() { setOptionAccess(); setExternalPrograms(); ConfigureFactory.getInstance().saveSettings( ConfigureFactory.SESSIONS, "------ Session Information --------"); OptionAccessFactory.getInstance().reload(); } | 5,919 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,921 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,922 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,923 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,924 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,925 |
private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | private void setExternalPrograms() { // set the external browser program to use if (browser.getText().trim().length() > 0) { props.setProperty("emul.protocol.http", browser.getText().trim()); } else { props.remove("emul.protocol.http"); } // set the external mailer program to use if (mailer.getTex... | 5,926 |
public void setExceptionListener(ExceptionListener listener) { // uses a default implementation when null if (listener == null) { listener = new DefaultExceptionListener(); } exceptionListener = listener; } | public void setExceptionListener(ExceptionListener listener) { // uses a default implementation when null if (listener == null) { listener = new DefaultExceptionListener(); } exceptionListener = listener; } | 5,929 |
public static ResourceBundle getBundle(String baseName) { ClassLoader cl = security.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, Locale.getDefault(), cl); } | public static ResourceBundle getBundle(String baseName) { ClassLoader cl = VMStackWalker.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, Locale.getDefault(), cl); } | 5,930 |
static ClassLoader currentClassLoader (SecurityManager sm) { // TODO implement me return null; } | static ClassLoader currentClassLoader() { // TODO implement me return null; } | 5,931 |
protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); rightChildIndent = defaults... | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); rightChildIndent = defaults... | 5,932 |
protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); } | protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); } | 5,933 |
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, f); setPropertiesFromAttributes(); } | public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, f); StyleSheet ss = getStyleSheet(); attributes = ss.getViewAttributes(this); preferenceChanged(null, true, true); } | 5,934 |
public AttributeSet getAttributes() { // FIXME: Implement this. return super.getAttributes(); } | public AttributeSet getAttributes() { // FIXME: Implement this. if (attributes == null) { StyleSheet ss = getStyleSheet(); attributes = ss.getViewAttributes(this); } return attributes; } | 5,935 |
protected void setPropertiesFromAttributes() { // FIXME: Implement this. super.setPropertiesFromAttributes(); } | protectedvoidsetPropertiesFromAttributes(){//FIXME:Implementthis.super.setPropertiesFromAttributes();} | 5,936 |
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); final Map p... | public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); final Map p... | 5,944 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | 5,945 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | 5,946 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(highlight); g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1); g.setColor(shadow); g.drawLine(x + 1, y + h - 1, ... | 5,947 |
Graphics(){} | Graphics(){} | 5,949 |
public void finalize(){ dispose();} | public void finalize(){ dispose();} | 5,950 |
public void finalize(){ dispose();} | public void finalize(){ dispose();} | 5,951 |
public Rectangle getClipRect(){ return getClipBounds();} | public Rectangle getClipRect(){ return getClipBounds();} | 5,952 |
public Rectangle getClipRect(){ return getClipBounds();} | public Rectangle getClipRect(){ return getClipBounds();} | 5,953 |
public String toString(){ return getClass ().getName () + "[font=" + getFont () + ",color=" + getColor () + "]";} | public String toString(){ return getClass ().getName () + "[font=" + getFont () + ",color=" + getColor () + "]";} | 5,954 |
public String toString(){ return getClass ().getName () + "[font=" + getFont () + ",color=" + getColor () + "]";} | public String toString(){ return getClass ().getName () + "[font=" + getFont () + ",color=" + getColor () + "]";} | 5,955 |
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for selected text. g.setColor(sele... | protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)throws BadLocationException{// FIXME: Throw BadLocationException somehow.// Update font metrics.updateMetrics();// Get echo character.char ch = getEchoChar();// Set color for selected text.g.setColor(selectedColor);g.setColor(Color.BLACK);// Initia... | 5,956 |
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for selected text. g.setColor(sele... | protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for selected text. g.setColor(sele... | 5,957 |
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); Segment segment = new Segment(); // Set color... | protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)throws BadLocationException{// FIXME: Throw BadLocationException somehow.// Update font metrics.updateMetrics();// Get echo character.char ch = getEchoChar();Segment segment = new Segment();// Set color for unselected text.g.setColor(unselectedCo... | 5,958 |
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); Segment segment = new Segment(); // Set color... | protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); // Set color for unselected text. g.setCol... | 5,959 |
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); Segment segment = new Segment(); // Set color... | protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { // FIXME: Throw BadLocationException somehow. // Update font metrics. updateMetrics(); // Get echo character. char ch = getEchoChar(); Segment segment = new Segment(); // Set color... | 5,960 |
void clean (ObjID[] ids, long sequenceNum, VMID vmid, boolean strong) throws RemoteException; | void clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong) throws RemoteException; | 5,961 |
Lease dirty (ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException; | Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException; | 5,962 |
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listene... | private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = ... | 5,963 |
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listene... | private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)lc.elem... | 5,964 |
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | privatevoidfireScreenChanged(intwhich,intstartRow,intstartCol,intendRow,intendCol){if(listeners!=null){intsize=listeners.size();for(inti=0;i<size;i++){ScreenListenertarget=(ScreenListener)listeners.elementAt(i);target.onScreenChanged(1,startRow,startCol,endRow,endCol);}}dirtyScreen.setBounds(lenScreen,0,0,0);} | 5,965 |
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = ... | 5,966 |
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.e... | 5,967 |
private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | private void fireScreenSizeChanged() { if (listeners != null) { Vector lc = new Vector(listeners); int size = lc.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,num... | 5,968 |
private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)lc.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } } | 5,969 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 5,970 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 5,971 |
public Lease(VMID id, long duration) { vmid = id; value = duration;} | public Lease(VMID id, long duration) { vmid = id; value = duration;} | 5,972 |
public Lease(VMID id, long duration) { vmid = id; value = duration;} | public Lease(VMID id, long duration) { vmid = id; value = duration;} | 5,973 |
public VMID getVMID() { return (vmid);} | public VMID getVMID() { return (vmid);} | 5,974 |
public VMID getVMID() { return (vmid);} | public VMID getVMID() { return (vmid);} | 5,975 |
public long getValue() { return (value);} | public long getValue() { return (value);} | 5,976 |
public long getValue() { return (value);} | public long getValue() { return (value);} | 5,977 |
public String toString() { return ("[" + vmid.toString() + ", " + Long.toString(value) + "]");} | public String toString() { return ("[" + vmid.toString() + ", " + Long.toString(value) + "]");} | 5,978 |
public String toString() { return ("[" + vmid.toString() + ", " + Long.toString(value) + "]");} | public String toString() { return ("[" + vmid.toString() + ", " + Long.toString(value) + "]");} | 5,979 |
private static final void checkTag(int value_tag) { if ((value_tag < 0x7fffff00 || value_tag > 0x7fffffff) && value_tag != vt_NULL && value_tag != vt_INDIRECTION ) throw new MARSHAL("Invalid value record, unsupported header tag: " + value_tag ); } | private static final void checkTag(int value_tag) { if ((value_tag < 0x7fffff00 || value_tag > 0x7fffffff) && value_tag != vt_NULL && value_tag != vt_INDIRECTION ) throw new MARSHAL("Invalid value record, unsupported header tag: " + value_tag ); } | 5,981 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,982 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,983 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,984 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,985 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,986 |
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | private static Object read_instance(InputStream input, Object value, int value_tag, Object helper ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; ... | 5,987 |
public static void write(OutputStream output, Serializable value) { // Write null if this is a null value. if (value == null) output.write_long(vt_NULL); else write(output, value, ObjectCreator.toIDL(value.getClass().getName())); } | public static void write(OutputStream output, Serializable value) { // Write null if this is a null value. if (value == null) output.write_long(vt_NULL); else write(output, value, value.getClass()); } | 5,988 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,989 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,990 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,991 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,992 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,993 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,994 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,995 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,996 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,997 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,998 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 5,999 |
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /... | 6,000 |
public static String[] read(InputStream input) { String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) value [ i ] = input.read_wstring(); return value; } | public static String[] read(InputStream input) { String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) value [ i ] = input.read_string(); return value; } | 6,001 |
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value for (int i = 0; i < attrs.getLength (); i++) { ((XMLAttribute) this.attribHash.get(attrs.getName(i))).setAttribValue(att... | protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value for (int i = 0; i < attrs.getLength (); i++) { ((XMLAttribute) this.attribHash.get(attrs.getName(i))).setAttribValue(att... | 6,002 |
public Object clone() { SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s; } | public Object clone() { SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s; } | 6,009 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals(JS... | 6,010 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g... | 6,011 |
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = pcFileChoos... | private void getPCFile() { String workingDir = System.getProperty("user.dir"); TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = p... | 6,012 |
protected Option(String longName, String description) { this.longName = longName; this.description = description; } | protected Option(char shortName, String description) { this.longName = longName; this.description = description; } | 6,013 |
protected Option(String longName, String description) { this.longName = longName; this.description = description; } | protected Option(String longName, String description) { if (shortName == 0) throw new IllegalArgumentException("short name must not be \\0"); this.shortName = shortName; this.description = description; } | 6,014 |
private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | 6,015 |
private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz... | 6,016 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 6,017 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 6,018 |
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ... | 6,019 |
public void dumpStatistics(PrintStream out) { out.println("WriteBarrier: " + writeBarrier); } | public void dumpStatistics(PrintStream out) { out.println("WriteBarrier: " + writeBarrier); } | 6,020 |
public final void gc() { gcThread.trigger(false); } | public final void gc() { gcThread.trigger(false); } | 6,021 |
final VmBootHeap getBootHeap() { return this.bootHeap; } | final VmBootHeap getBootHeap() { return this.bootHeap; } | 6,022 |
public long getFreeMemory() { long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | public long getFreeMemory() { long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; } | 6,023 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.