bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected void nextSession() { me.nextSession(); } | protected void nextSession() { fireSessionJump(JUMP_NEXT); } | 2,148 |
protected void prevSession() { me.prevSession(); } | protected void prevSession() { fireSessionJump(JUMP_PREVIOUS); } | 2,149 |
private void sendScreenEMail() { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextField subt =... | private void sendScreenEMail() { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextField subt =... | 2,150 |
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | 2,151 |
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ... | public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL file=null; try { file = My5250.classLoader.getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image... | 2,152 |
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ... | public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ... | 2,153 |
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ... | public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ... | 2,154 |
public final void writeTo(SocketBuffer skbuf, int skbufOffset) { skbuf.set(skbufOffset, address, 0, length); } | public final void writeTo(SocketBuffer skbuf, int skbufOffset) { skbuf.set(skbufOffset, address, 0, length); } | 2,155 |
public void insertItemAt(Object element, int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void insertItemAt(Object element, int index) { if (dataModel instanceof MutableComboBoxModel) ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,156 |
public void insertItemAt(Object element, int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void insertItemAt(Object element, int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,157 |
public void removeItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void removeItem(Object element) { if (dataModel instanceof MutableComboBoxModel) ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,158 |
public void removeItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void removeItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,159 |
public void removeItemAt(int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void removeItemAt(int index) { if (dataModel instanceof MutableComboBoxModel) ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,160 |
public void removeItemAt(int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | public void removeItemAt(int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } } | 2,161 |
public Statement(Object target, String methodName, Object[] arguments) { this.target = target; this.methodName = methodName; this.arguments = (arguments != null) ? arguments : new Object[0]; storeTargetName(target); } | public Statement(Object target, String methodName, Object[] arguments) { this.target = target; this.methodName = methodName; this.arguments = (arguments != null) ? arguments : new Object[0]; } | 2,162 |
final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass()... | final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = (args[i] != null) ... | 2,164 |
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+... | public String toString() { StringBuffer result = new StringBuffer(); String targetName = target.getClass().getName(); if ( targetName.startsWith("java")) { targetName = targetName.substring(targetName.lastIndexOf('.') + 1); } result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.appen... | 2,166 |
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+... | public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append(targetName); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i++) { result.append(sep); ... | 2,167 |
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+... | public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+... | 2,168 |
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ... | protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ... | 2,170 |
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ... | protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ... | 2,171 |
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ... | protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); catch (LimitReachedException lre) { irnd = null; n... | 2,172 |
public void extensionRemoved(ExtensionPoint point, Extension extension) { final ConfigurationElement[] elements = extension.getConfigurationElements(); for (int j = 0; j < elements.length; j++) { final String className = elements[j].getAttribute("class"); log.debug("Removed provi... | public void extensionRemoved(ExtensionPoint point, Extension extension) { final ConfigurationElement[] elements = extension.getConfigurationElements(); for (int j = 0; j < elements.length; j++) { final String className = elements[j].getAttribute("class"); log.debug("Removed provi... | 2,173 |
public void setDisabledIcon(Icon newIcon) { if (disabledIcon != newIcon) { Icon oldIcon = disabledIcon; disabledIcon = newIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldIcon, newIcon); } } | public void setDisabledIcon(Icon newIcon) { if (disabledIcon != newIcon) { Icon oldIcon = disabledIcon; disabledIcon = newIcon; firePropertyChange("disabledIcon", oldIcon, newIcon); } } | 2,175 |
public void setDisplayedMnemonic(int mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); ... | public void setDisplayedMnemonic(int mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange("displayedMnemonic", displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); } } | 2,176 |
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (newIndex == -1 || text == null || text.charAt(newIndex) != displaye... | public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (newIndex == -1 || text == null || text.charAt(newIndex) != displaye... | 2,177 |
public void setHorizontalAlignment(int alignment) { if (horizontalAlignment == alignment) return; int oldAlignment = horizontalAlignment; horizontalAlignment = checkHorizontalKey(alignment, "horizontalAlignment"); firePropertyChange(HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, ... | public void setHorizontalAlignment(int alignment) { if (horizontalAlignment == alignment) return; int oldAlignment = horizontalAlignment; horizontalAlignment = checkHorizontalKey(alignment, "horizontalAlignment"); firePropertyChange("horizontalAlignment", oldAlignment, hori... | 2,178 |
public void setHorizontalTextPosition(int textPosition) { if (textPosition != horizontalTextPosition) { int oldPos = horizontalTextPosition; horizontalTextPosition = checkHorizontalKey(textPosition, "horizontalTextPosition"); firePropertyChange(HORIZONTAL_TEXT_POSI... | public void setHorizontalTextPosition(int textPosition) { if (textPosition != horizontalTextPosition) { int oldPos = horizontalTextPosition; horizontalTextPosition = checkHorizontalKey(textPosition, "horizontalTextPosition"); firePropertyChange("horizontalTextPosit... | 2,179 |
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon oldIcon = icon; icon = newIcon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, newIcon); } } | public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon oldIcon = icon; icon = newIcon; firePropertyChange("icon", oldIcon, newIcon); } } | 2,180 |
public void setIconTextGap(int newGap) { if (iconTextGap != newGap) { firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, iconTextGap, newGap); iconTextGap = newGap; } } | public void setIconTextGap(int newGap) { if (iconTextGap != newGap) { firePropertyChange("iconTextGap", iconTextGap, newGap); iconTextGap = newGap; } } | 2,181 |
public void setLabelFor(Component c) { if (c != labelFor) { firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, labelFor, c); labelFor = c; } } | public void setLabelFor(Component c) { if (c != labelFor) { Component oldLabelFor = labelFor; labelFor = c; } } | 2,182 |
public void setText(String newText) { if (text != newText) { String oldText = text; text = newText; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, newText); if (text != null && text.length() <= displayedMnemonicIndex) setDisplayedMnemonicIndex(text.length() - 1); } } | public void setText(String newText) { if (text != newText) { String oldText = text; text = newText; firePropertyChange("text", oldText, newText); if (text != null && text.length() <= displayedMnemonicIndex) setDisplayedMnemonicIndex(text.length() - 1); } } | 2,184 |
public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); } | public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); } | 2,185 |
public void setVerticalTextPosition(int textPosition) { if (textPosition != verticalTextPosition) { int oldPos = verticalTextPosition; verticalTextPosition = checkVerticalKey(textPosition, "verticalTextPosition"); firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPE... | public void setVerticalTextPosition(int textPosition) { if (textPosition != verticalTextPosition) { int oldPos = verticalTextPosition; verticalTextPosition = checkVerticalKey(textPosition, "verticalTextPosition"); firePropertyChange("verticalTextPosition", oldPos, ... | 2,186 |
public void startInstruction(int address) { this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(address, offset); } | public void startInstruction(int address) { this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(currentMethod, address, offset); } | 2,189 |
public StringIndexOutOfBoundsException() { super(); } | public StringIndexOutOfBoundsException() { } | 2,191 |
protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1)// while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == 0x20)) switch(abyte0[i++]) ... | protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1)// while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == 0x20)) switch(abyte0[i++]) ... | 2,197 |
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | 2,199 |
public SwingScrollPanePeer(ScrollPane scrollPane) { super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); } | public SwingScrollPanePeer(ScrollPane scrollPane) { super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); } | 2,202 |
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;} | public AccessibleContext getAccessibleContext() /* Create the context if this is the first request */ if (accessibleContext == null) /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;} | 2,204 |
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;} | public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); return accessibleContext; | 2,205 |
getPeer(){ return(peer);} | getPeer(){ return(peer);} | 2,206 |
getToolkit(){ return(toolkit);} | getToolkit(){ return(toolkit);} | 2,207 |
setPeer(MenuComponentPeer peer){ this.peer = peer;} | setPeer(MenuComponentPeer peer){ this.peer = peer;} | 2,208 |
removeNotify(){ if (peer != null) peer.dispose(); peer = null;} | removeNotify(){ if (peer != null) peer.dispose(); peer = null;} | 2,209 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getHeight(); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.max(0,... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 2,210 |
public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } | public JSpinner() { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } | 2,212 |
public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } | public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } | 2,213 |
public DateFormatter(DateFormat format) { super(); setFormat(format); } | public DateFormatter() { super(); setFormat(format); } | 2,214 |
public DateFormatter(DateFormat format) { super(); setFormat(format); } | public DateFormatter(DateFormat format) { super(); setFormat(format); } | 2,215 |
void installDefaults(JComponent c) { c.setOpaque(true); } | protected void installDefaults(JComponent c) { c.setOpaque(true); } | 2,216 |
public void installUI(JComponent c) { super.installUI(c); installListeners(c); } | public void installUI(JComponent c) { super.installUI(c); installDefaults(c); } | 2,218 |
void uninstallDefaults(JComponent c) { } | protected void uninstallDefaults(JComponent c) { } | 2,219 |
public void uninstallUI(JComponent c) { uninstallListeners(c); } | public void uninstallUI(JComponent c) { super.uninstallUI(c); uninstallDefaults(c); } | 2,220 |
public AccessibleJViewport() { // Nothing to do here. } | protected AccessibleJViewport() { // Nothing to do here. } | 2,221 |
protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return false; Rectangle portBoun... | protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || (dy == 0 && dy == 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return fals... | 2,222 |
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | 2,223 |
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | 2,224 |
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | 2,225 |
public String parseData(byte[] cByte) { if (!translateIt) { return sbdata.toString(); } StringBuffer sb = new StringBuffer(bufferLength); int end = startOffset + length - 1; switch (type) { case 'P': // Packed decimal format // example field of buffer length 4 wi... | public String parseData(byte[] cByte) { if (!translateIt) { return sbdata.toString(); } StringBuffer sb = new StringBuffer(bufferLength); int end = startOffset + length - 1; switch (type) { case 'P': // Packed decimal format // example field of buffer length 4 wi... | 2,227 |
public DocFlavor(String mimeType, String className) { if (mimeType == null || className == null) throw new NullPointerException(); parseMimeType(mimeType); this.className = className; } | public DocFlavor(String mimeType, String className) { if (mimeType == null || className == null) throw new NullPointerException(); parseMimeType(mimeType); myClassName = className; } | 2,228 |
public String getParameter(String paramName) { if (paramName == null) throw new NullPointerException(); return (String) params.get(paramName); } | public String getParameter(String paramName) { if (paramName == null) throw new NullPointerException(); return (String) params.get(paramName.toLowerCase()); } | 2,229 |
public String getRepresentationClassName() { return className; } | public String getRepresentationClassName() { return myClassName; } | 2,230 |
public int hashCode() { return ((mediaType.hashCode() * mediaSubtype.hashCode() * className.hashCode()) ^ params.hashCode()); } | public int hashCode() { return ((mediaType.hashCode() * mediaSubtype.hashCode() * myClassName.hashCode()) ^ params.hashCode()); } | 2,231 |
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int state = 0; int lastState = 0; int tok; try { String paramName = null; StreamTokenizer in = new StreamTokenizer(new StringReader(mimeType)); in.resetSyntax(); in.whitespace... | 2,233 |
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF) { switch (tok) { case StreamTokenizer.TT_WORD: if (state == 0) { mediaType = in.sval.t... | 2,234 |
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | 2,235 |
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | 2,236 |
public String toString() { return getMimeType(); } | public String toString() { return getMimeType() + "; class=\"" + getRepresentationClassName() + "\""; } | 2,237 |
public void layoutContainer(Container container) { Component[] buttonList = container.getComponents(); int x = container.getInsets().left; if (getCentersChildren()) x += (int) ((double) (container.getSize().width) / 2 - (double) (buttonRowLength(container)) / 2); for (int i = 0; i < buttonL... | public void layoutContainer(Container container) { Component[] buttonList = container.getComponents(); int x = container.getInsets().left; if (getCentersChildren()) x += (int) ((double) (container.getSize().width) / 2 - (double) (buttonRowLength(container)) / 2); for (int i = 0; i < buttonL... | 2,238 |
public void setCentersChildren(boolean newValue) { centersChildren = newValue; optionPane.invalidate(); } | public void setCentersChildren(boolean newValue) { centersChildren = newValue; } | 2,239 |
public void setPadding(int newPadding) { padding = newPadding; optionPane.invalidate(); } | public void setPadding(int newPadding) { padding = newPadding; } | 2,240 |
public void setSyncAllWidths(boolean newValue) { syncAllWidths = newValue; optionPane.invalidate(); } | public void setSyncAllWidths(boolean newValue) { syncAllWidths = newValue; } | 2,241 |
protected Container createSeparator() { return (Container) Box.createVerticalStrut(17); } | protected Container createSeparator() { return null; } | 2,242 |
public DatagramChannel connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); socket.connect (remote); return this; } | public DatagramChannel connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { channel.connect((InetSocketAddress) remote, 0); } catch (ClassCastException cce) { throw new IOException("unsupported socked address type"); } return this; } | 2,244 |
public DatagramChannel disconnect () throws IOException { socket.disconnect (); return this; } | public DatagramChannel disconnect () throws IOException { channel.disconnect(); return this; } | 2,245 |
protected void implCloseSelectableChannel () throws IOException { socket.close (); } | protected void implCloseSelectableChannel () throws IOException { channel.close(); } | 2,246 |
protected void implConfigureBlocking (boolean blocking) throws IOException { socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); } | protected void implConfigureBlocking (boolean blocking) throws IOException { channel.setBlocking(blocking); } | 2,247 |
public boolean isConnected () { return socket.isConnected (); } | public boolean isConnected () { try { return channel.getPeerAddress() != null; } catch (IOException ioe) { return false; } } | 2,248 |
public int read (ByteBuffer dst) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); } | public int read (ByteBuffer dst) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); } | 2,249 |
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... | public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... | 2,250 |
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... | public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... | 2,251 |
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | 2,252 |
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | 2,253 |
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | 2,254 |
public int write (ByteBuffer src) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); return send (src, socket.getRemoteSocketAddress()); } | public int write (ByteBuffer src) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); return channel.write(src); } | 2,255 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 2,256 |
public GregorianCalendar(Locale locale) { this(TimeZone.getDefault(), locale); } | public GregorianCalendar() { this(TimeZone.getDefault(), locale); } | 2,257 |
public GregorianCalendar(Locale locale) { this(TimeZone.getDefault(), locale); } | public GregorianCalendar(Locale locale) { this(TimeZone.getDefault(), Locale.getDefault()); } | 2,258 |
public boolean equals (Object obj) { if (!(obj instanceof DateFormat)) return false; DateFormat d = (DateFormat) obj; return numberFormat.equals(d.numberFormat); } | public boolean equals (Object obj) { if (!(obj instanceof DateFormat)) return false; DateFormat d = (DateFormat) obj; return false; } | 2,259 |
public ISO9660Entry(EntryRecord entry) { this.CDFSentry = entry; } | public ISO9660Entry(EntryRecord entry) { this.CDFSentry = entry; } | 2,260 |
public EntryRecord getCDFSentry() { return CDFSentry; } | public EntryRecord getCDFSentry() { return CDFSentry; } | 2,261 |
public FileSystem getFileSystem() { return null; } | public FileSystem getFileSystem() { return null; } | 2,262 |
public String getName() { return CDFSentry.getFileIdentifier(); } | public String getName() { return CDFSentry.getFileIdentifier(); } | 2,263 |
public boolean isDirectory() { return CDFSentry.isDirectory(); } | public boolean isDirectory() { return CDFSentry.isDirectory(); } | 2,264 |
public boolean isFile() { return !CDFSentry.isDirectory(); } | public boolean isFile() { return !CDFSentry.isDirectory(); } | 2,265 |
public void setCDFSentry(EntryRecord sentry) { CDFSentry = sentry; } | public void setCDFSentry(EntryRecord sentry) { CDFSentry = sentry; } | 2,266 |
public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; } | public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; } | 2,267 |
public Expression(Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = UNSET; } | public Expression(Object value, Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = UNSET; } | 2,268 |
public Expression(Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = UNSET; } | public Expression(Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = value; } | 2,269 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.