rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return(null); | return null; | public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex... |
if (labelText.length() <= underlinedChar) | if (labelText != null && labelText.length() <= underlinedChar) | public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } } |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ((AbstractButton) c).setIcon(defaults.getIcon("CheckBox.icon")); ((AbstractButton) c).setSelectedIcon(defaults.getIcon("CheckBox.checkIcon")); | public void installUI(final JComponent c) { super.installUI(c); } | |
{ } | { super(bevelType); } | public BevelBorderUIResource(int bevelType) { } |
Border insideBorder) { } | Border insideBorder) { super(outsideBorder, insideBorder); } | public CompoundBorderUIResource(Border outsideBorder, Border insideBorder) { } |
{ this(new Insets(top,left,bottom,right)); } | { super(top, left, bottom, right); } | public EmptyBorderUIResource(int top, int left, int bottom, int right) { this(new Insets(top,left,bottom,right)); } |
public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { } | public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { super(top, left, bottom, right, color); } | public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { } |
TitledBorderUIResource(String title) { } | public TitledBorderUIResource(String title) { super(title); } | TitledBorderUIResource(String title) { } |
public static Border getBlackLineBorderUIResource() { return null; } | public static Border getBlackLineBorderUIResource() { if (blackLineBorderUIResource == null) blackLineBorderUIResource = new LineBorderUIResource(Color.black); return blackLineBorderUIResource; } | public static Border getBlackLineBorderUIResource() { return null; } |
public Insets getBorderInsets(Component c) { return null; } | public Insets getBorderInsets(Component c) { return delegate.getBorderInsets(c); } | public Insets getBorderInsets(Component c) { return null; } |
public static Border getLoweredBevelBorderUIResource() { return null; } | public static Border getLoweredBevelBorderUIResource() { if (loweredBevelBorderUIResource == null) loweredBevelBorderUIResource = new BevelBorderUIResource( BevelBorder.LOWERED); return loweredBevelBorderUIResource; } | public static Border getLoweredBevelBorderUIResource() { return null; } |
public static Border getRaisedBevelBorderUIResource() { return null; } | public static Border getRaisedBevelBorderUIResource() { if (raisedBevelBorderUIResource == null) raisedBevelBorderUIResource = new BevelBorderUIResource( BevelBorder.RAISED); return raisedBevelBorderUIResource; } | public static Border getRaisedBevelBorderUIResource() { return null; } |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return delegate.isBorderOpaque(); } | public boolean isBorderOpaque() { return false; } |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { delegate.paintBorder(c, g, x, y, width, height); } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } |
return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString()); | return ("label=" + label + ",state=" + state + "," + super.paramString()); | paramString(){ return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString());} |
return parent == null ? SystemColor.window : parent.getBackground(); | return parent == null ? null : parent.getBackground(); | public Color getBackground() { if (background != null) return background; return parent == null ? SystemColor.window : parent.getBackground(); } |
if (font != null) return font; | Font f = font; if (f != null) return f; | public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } |
if (parent != null) return parent.getFont (); | Component p = parent; if (p != null) return p.getFont(); | public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } |
if (parent == null) param.append(",parent==null"); else param.append(",parent==").append(parent.getName()); | protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis... | |
if (background != null && c != null) if (background.equals(c)) | if ((c != null) && c.equals(background)) | public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... |
firePropertyChange("background", background, c); | public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... | |
firePropertyChange("background", previous, c); | public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... | |
if (font == newFont) return; | if((newFont != null && (font == null || !font.equals(newFont))) || newFont == null) { | public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); } |
} | public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); } | |
firePropertyChange("foreground", foreground, c); | public void setForeground(Color c) { firePropertyChange("foreground", foreground, c); if (peer != null) peer.setForeground(c); foreground = c; } | |
firePropertyChange("foreground", previous, c); | public void setForeground(Color c) { firePropertyChange("foreground", foreground, c); if (peer != null) peer.setForeground(c); foreground = c; } | |
if (!isLightweight()) | if (isLightweight() || getParent() == null) | public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); } |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); | Color bg = desktop.getBackground(); if (bg == null || bg instanceof UIResource) desktop.setBackground(UIManager.getColor("desktop")); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); } |
public void setPublicId(String publicID) { this.publicId = publicID; | public void setPublicId(String publicId) { this.publicId = publicId; | public void setPublicId(String publicID) { this.publicId = publicID; } |
public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { throw new RuntimeException (e.getMessage ()); } | public void setSystemId(String systemId) { this.systemId = systemId; | public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { // can't happen throw new RuntimeException (e.getMessage ()); } } |
return perms.get(perm) != null; | Enumeration elements = elements(); while (elements.hasMoreElements()) { Permission p = (Permission)elements.nextElement(); if (p.implies(perm)) return true; } return false; | public boolean implies(Permission perm) { return perms.get(perm) != null; } |
return super.isShowing(); | return isVisible(); | public boolean isShowing() { return super.isShowing(); } |
public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); | public final void extensionAdded(ExtensionPoint point, Extension extension) { loadExtensions(); | public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); findDeviceDrivers(); } |
public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); | public final void extensionRemoved(ExtensionPoint point, Extension extension) { loadExtensions(); | public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); } |
protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) { | private final void findDeviceDrivers() { final List devices; synchronized (this) { devices = new ArrayList(this.devices.values()); } for (Iterator i = devices.iterator(); i.hasNext();) { | protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) { final Device dev = (Device) i.next(); if (dev.getDriver() == null) { final Driver drv = findDriver(dev); if (drv != null) { try { ... |
public void addListDataListener(ListDataListener listener) { listenerList.add(ListDataListener.class, (EventListener) listener); } | public void addListDataListener(ListDataListener listener) { listenerList.add (ListDataListener.class, listener); } | public void addListDataListener(ListDataListener listener) { listenerList.add(ListDataListener.class, (EventListener) listener); } // addListDataListener() |
public void removeListDataListener(ListDataListener listener) { listenerList.remove(ListDataListener.class, (EventListener) listener); } | public void removeListDataListener(ListDataListener listener) { listenerList.remove (ListDataListener.class, listener); } | public void removeListDataListener(ListDataListener listener) { listenerList.remove(ListDataListener.class, (EventListener) listener); } // removeListDataListener() |
propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); | public BasicSplitPaneUI() { propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); } | |
return null; | if (divider == null) divider = new BasicSplitPaneDivider(this); return divider; | public BasicSplitPaneDivider createDefaultDivider() { return null; } |
return null; | if (nonContinuousLayoutDivider == null) { nonContinuousLayoutDivider = new Canvas(); nonContinuousLayoutDivider.setBackground(Color.DARK_GRAY); } return nonContinuousLayoutDivider; | protected Component createDefaultNonContinuousLayoutDivider() { return null; } |
return null; | return new FocusHandler(); | protected FocusListener createFocusListener() { return null; } |
return null; | return new KeyboardDownRightHandler(); | protected ActionListener createKeyboardDownRightListener() { return null; } |
return null; | return new KeyboardEndHandler(); | protected ActionListener createKeyboardEndListener() { return null; } |
return null; | return new KeyboardHomeHandler(); | protected ActionListener createKeyboardHomeListener() { return null; } |
return null; | return new KeyboardResizeToggleHandler(); | protected ActionListener createKeyboardResizeToggleListener() { return null; } |
return null; | return new KeyboardUpLeftHandler(); | protected ActionListener createKeyboardUpLeftListener() { return null; } |
return null; | return new PropertyHandler(); | protected PropertyChangeListener createPropertyChangeListener() { return null; } |
public static ComponentUI createUI(JComponent c) | public static ComponentUI createUI(JComponent x) | public static ComponentUI createUI(JComponent c) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } |
BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; | return new BasicSplitPaneUI(); | public static ComponentUI createUI(JComponent c) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } |
location = validLocation(location); if (beginDragDividerLocation == -1) beginDragDividerLocation = location; if (splitPane.isContinuousLayout()) splitPane.setDividerLocation(location); else { Point p = nonContinuousLayoutDivider.getLocation(); if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) p.x = location; else p... | protected void dragDividerTo(int location) { } | |
if (nonContinuousLayoutDivider != null) nonContinuousLayoutDivider.setVisible(false); draggingHW = false; location = validLocation(location); dragDividerTo(location); splitPane.setDividerLocation(location); splitPane.setLastDividerLocation(beginDragDividerLocation); beginDragDividerLocation = -1; splitPane.repaint(); | protected void finishDraggingTo(int location) { } | |
if (! splitPane.isContinuousLayout() && nonContinuousLayoutDivider != null && nonContinuousLayoutDivider.isVisible()) javax.swing.SwingUtilities.paintComponent(g, nonContinuousLayoutDivider, null, nonContinuousLayoutDivider .getBounds()); | public void finishedPaintingChildren(JSplitPane jc, Graphics g) { } | |
return 0; | if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) return divider.getBorder().getBorderInsets(divider).left; else return divider.getBorder().getBorderInsets(divider).top; | protected int getDividerBorderSize() { return 0; } |
return 0; | return layoutManager.sizes[0] + layoutManager.getInitialLocation(splitPane.getInsets()); | public int getDividerLocation(JSplitPane jc) { return 0; } |
return new Insets(0, 0, 0, 0); | return splitPane.getBorder().getBorderInsets(splitPane); | public Insets getInsets(JComponent jc) { return new Insets(0, 0, 0, 0); } |
return 0; | return lastDragLocation; | public int getLastDragLocation() { return 0; } |
return 0; | int value = layoutManager.getInitialLocation(jc.getInsets()) + layoutManager.getAvailableSize(jc.getSize(), jc.getInsets()) - splitPane.getDividerSize(); if (layoutManager.components[1] != null) value -= layoutManager.minimumSizeOfComponent(1); return value; | public int getMaximumDividerLocation(JSplitPane jc) { return 0; } |
return null; | return layoutManager.maximumLayoutSize((Container) jc); | public Dimension getMaximumSize(JComponent jc) { return null; } |
return 0; | int value = layoutManager.getInitialLocation(jc.getInsets()); if (layoutManager.components[0] != null) value += layoutManager.minimumSizeOfComponent(0); return value; | public int getMinimumDividerLocation(JSplitPane jc) { return 0; } |
return null; | return layoutManager.minimumLayoutSize((Container) jc); | public Dimension getMinimumSize(JComponent jc) { return null; } |
return null; | return layoutManager.preferredLayoutSize((Container) jc); | public Dimension getPreferredSize(JComponent jc) { return null; } |
resetLayoutManager(); divider = createDefaultDivider(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); splitPane.setBackground(defaults.getColor("SplitPane.background")); splitPane.setBorder(... | protected void installDefaults() { } | |
propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); splitPane.addPropertyChangeListener(propertyChangeListener); splitPane.addFocusListener(focusListener); | protected void installListeners() { } | |
if (c instanceof JSplitPane) { splitPane = (JSplitPane) c; installDefaults(); installListeners(); installKeyboardActions(); } | public void installUI(JComponent c) { } | |
return false; | return splitPane.isContinuousLayout(); | public boolean isContinuousLayout() { return false; } |
if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); getSplitPane().setLayout(layoutManager); getSplitPane().invalidate(); | protected void resetLayoutManager() { } | |
layoutManager.resetToPreferredSizes(); | public void resetToPreferredSizes(JSplitPane jc) { } | |
splitPane.setContinuousLayout(b); | public void setContinuousLayout(boolean b) { } | |
setLastDragLocation(getDividerLocation(splitPane)); splitPane.setLastDividerLocation(getDividerLocation(splitPane)); int[] tmpSizes = layoutManager.getSizes(); tmpSizes[0] = location - layoutManager.getInitialLocation(splitPane.getInsets()); tmpSizes[1] = layoutManager.getAvailableSize(splitPane.getSize(), splitPane.ge... | public void setDividerLocation(JSplitPane jc, int location) { } | |
lastDragLocation = l; | public void setLastDragLocation(int l) { } | |
splitPane.setOrientation(orientation); | public void setOrientation(int orientation) { } | |
dividerSize = divider.getDividerSize(); setLastDragLocation(-1); if (! splitPane.getLeftComponent().isLightweight() || ! splitPane.getRightComponent().isLightweight()) draggingHW = true; if (splitPane.isContinuousLayout()) nonContinuousLayoutDivider.setVisible(false); else { nonContinuousLayoutDivider.setVisible(true... | protected void startDragging() { } | |
layoutManager = null; splitPane.remove(divider); divider = null; nonContinuousLayoutDivider = null; splitPane.setBackground(null); splitPane.setBorder(null); | protected void uninstallDefaults() { } | |
splitPane.removePropertyChangeListener(propertyChangeListener); splitPane.removeFocusListener(focusListener); focusListener = null; propertyChangeListener = null; | protected void uninstallListeners() { } | |
uninstallKeyboardActions(); uninstallListeners(); uninstallDefaults(); splitPane = null; | public void uninstallUI(JComponent c) { } | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("number"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("format="); buf.append(format); buf.append(']'); return buf.toString(); } |
if (offset > gapStart) | if (offset >= gapStart) | public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i... |
return new UndoInsertString(where, strLen); | return new InsertUndo(where, strLen); | public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); ... |
if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i); REMatch tryMatch = (REMatch) mymatch.clone(); if (tk.match(input, tryMatch))... | return negative ? matchN(input, mymatch) : matchP(input, mymatch); | boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... |
} | boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... | |
int selectedIndex = tabPane.getSelectedIndex(); Component selectedComponent = tabPane.getComponentAt(selectedIndex); if (selectedComponent != null) { setVisibleComponent(selectedComponent); } | public void layoutContainer(Container parent) { calculateLayoutInfo(); int tabPlacement = tabPane.getTabPlacement(); Insets insets = tabPane.getInsets(); int childCount = tabPane.getComponentCount(); if (childCount > 0) { int compX; int compY; int tabAre... | |
if (i >= rects.length) layoutManager.layoutContainer(pane); | public Rectangle getTabBounds(JTabbedPane pane, int i) { return rects[i]; } | |
return tabPane.getComponentAt(tabPane.getSelectedIndex()); | return visibleComponent; | protected Component getVisibleComponent() { return tabPane.getComponentAt(tabPane.getSelectedIndex()); } |
tabPane.setSelectedComponent(component); | } visibleComponent = component; | protected void setVisibleComponent(Component component) { component.setVisible(true); tabPane.setSelectedComponent(component); } |
if (instance == null) | if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTextFieldUI(); return instance; } |
instances.put(component, instance); } else instance = (MetalTextFieldUI) o; | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTextFieldUI(); return instance; } | |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } vstack.push(eContext); | public final void visit_dup2_x2() { | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
System.out.println("####### dup2_x2"); | vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); | os.writePOP(helper.AAX); os.writePOP(helper.ABX); os.writePOP(helper.ACX); os.writePOP(helper.ADX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); os.writePUSH(helper.ADX); os.writePUSH(helper.ACX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
os.writePOP(helper.AAX); os.writePOP(helper.ABX); os.writePOP(helper.ACX); os.writePOP(helper.ADX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); os.writePUSH(helper.ADX); os.writePUSH(helper.ACX); os.writePUSH(helper.ABX); os.writePUSH(helper.AAX); | if (c1 == 2) { | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
assertCondition(c1 == 2, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v2); vstack.push1(v1); | vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v2); vstack.push1(v1); | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); if (c1 == 2) { assertCondition(c3 == 1, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); } else if (c3 == 2) { vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(... | final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); assertCondition(c3 == 1, "category mismatch"); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... |
} else { assertCondition(c2 == 1, "category mismatch"); final Item v3 = vstack.pop1(); int c3 = v3.getCategory(); if (c3 == 2) { vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1); } else { final Item v4 = vstack.pop1(); vst... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | |
cancelledKeys ().remove (key); | ((AbstractSelectableChannel) key.channel()).removeSelectionKey(key); | protected final void deregister (AbstractSelectionKey key) { cancelledKeys ().remove (key); } |
private static ClassLoader getClassLoader (String codebases) | public static ClassLoader getClassLoader (String codebases) | private static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ... |
if(charsetName == null) throw new IllegalArgumentException("Charset name must not be null."); | public static Charset forName (String charsetName) { Charset cs = charsetForName (charsetName); if (cs == null) throw new UnsupportedCharsetException (charsetName); return cs; } | |
if (!equal(uri, node.getNamespaceURI())) | String nodeUri = node.getNamespaceURI(); String nodeLocalName = node.getLocalName(); if (nodeLocalName != null && !equal(uri, nodeUri)) | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... |
return (localName.equals(node.getLocalName())); | if (nodeLocalName != null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... |
b.write_long(CodeSets.TAG_CODE_SETS); | b.write_long(CodeSets_profile.TAG_CODE_SETS); | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... |
int start = iter.getBeginIndex(); | public int previous () { if (iter.getIndex() == iter.getBeginIndex()) return DONE; int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.