bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public EventReaderDelegate(XMLEventReader reader) { parent = reader; }
public EventReaderDelegate() { parent = reader; }
22,574
public EventReaderDelegate(XMLEventReader reader) { parent = reader; }
public EventReaderDelegate(XMLEventReader reader) { }
22,575
public boolean hasNext() throws XMLStreamException { if (parent != null) return parent.hasNext(); return false; }
public boolean hasNext() { if (parent != null) return parent.hasNext(); return false; }
22,576
public XMLEvent next() throws XMLStreamException { if (parent != null) return parent.next(); throw new NoSuchElementException(); }
public XMLEvent next() throws XMLStreamException { if (parent != null) return parent.next(); throw new NoSuchElementException(); }
22,577
private static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ...
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
22,579
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
22,580
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("MenuItem.background")); menuItem.setBorder(defaults.getBorder("MenuItem.border")); menuItem.setFont(defaults.getFont("MenuItem.font")); menuItem.setForeground(defaults...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("MenuItem.background")); menuItem.setBorder(defaults.getBorder("MenuItem.border")); menuItem.setFont(defaults.getFont("MenuItem.font")); menuItem.setForeground(defaults...
22,581
public int getNativeFD() { NIOServerSocket socket = (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); }
public int getNativeFD() { NIOServerSocket socket = (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); }
22,583
ProxyType(ClassLoader loader, Class[] interfaces) { if (loader == null) loader = ClassLoader.getSystemClassLoader(); this.loader = loader; this.interfaces = interfaces; }
ProxyType(ClassLoader loader, Class[] interfaces) { if (loader == null) loader = ClassLoader.getSystemClassLoader(); this.loader = loader; this.interfaces = interfaces; }
22,584
public int hashCode() { //loader is always not null int hash = loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; }
public int hashCode() { //loader is always not null int hash = loader == null ? 0 : loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; }
22,585
public Object run() { return getDefaultProtectionDomain(); }
public Object run() { return Policy.getPolicy().getPermissions(cs); }
22,586
protected final Class findLoadedClass(String name) { VmType<?> vmClass = vmClassLoader.findLoadedClass(name); if (vmClass != null) { return vmClass.asClass(); } else { return null; } }
protected final Class findLoadedClass(String name) { VmType< ? > vmClass = vmClassLoader.findLoadedClass(name); if (vmClass != null) { return vmClass.asClass(); } else { return null; } }
22,587
public String getContentType() { return ctype; }
public String getContentType() { return getEditorKit().getContentType(); }
22,589
public EditorKit getEditorKit() { return kit; }
public EditorKit getEditorKit() { return editorKit; }
22,590
public EditorKit getEditorKitForContentType(String type) { return kit; }
public EditorKit getEditorKitForContentType(String type) { return editorKit; }
22,591
public URL getPage() { return page_url; }
public URL getPage() { return page; }
22,592
public void setContentType(String type) { ctype = type; invalidate(); repaint(); }
public void setContentType(String type) { ctype = type; invalidate(); repaint(); }
22,593
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
public void setEditorKit(EditorKit newValue) { this.kit = kit; invalidate(); repaint(); }
22,594
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
22,595
public void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
public void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
22,596
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (...
22,598
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (...
22,599
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,600
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,601
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,602
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,603
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,604
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,605
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,606
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,607
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,608
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,609
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
22,610
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
22,611
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
22,612
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
22,613
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((...
22,614
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
TreeNode getNextVisibleNode(TreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)) return next; ...
22,615
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { TreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)) r...
22,616
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = getNextNode(node); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current))...
22,617
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(...
22,618
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
22,619
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(next.getPath()); if (tree.isVisible(current)...
DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node) { DefaultMutableTreeNode next = null; TreePath current = null; if (node != null) next = node.getNextNode(); if (next != null) { current = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(...
22,620
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isExpa...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); TreeNode root = (TreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ...
22,621
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isExpa...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isExpa...
22,622
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
22,623
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
22,624
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
public TreePath getPathForRow(JTree tree, int row) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNex...
22,625
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
22,626
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { TreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath(prev.getPath(...
22,627
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = getPreviousNode(node); if (prev != null) { current = new TreePath(...
22,628
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
22,629
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
22,630
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
DefaultMutableTreeNode getPreviousVisibleNode (DefaultMutableTreeNode node) { DefaultMutableTreeNode prev = null; TreePath current = null; if (node != null) prev = node.getPreviousNode(); if (prev != null) { current = new TreePath...
22,631
public int getRowCount(JTree tree) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNextNode(); ...
public int getRowCount(JTree tree) { TreeNode node = ((TreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNextNode(); int count = 0; ...
22,632
public int getRowCount(JTree tree) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNextNode(); ...
public int getRowCount(JTree tree) { DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node) .getPath()))) node = node.getNextNode(); ...
22,633
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
22,634
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
22,635
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
22,636
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager....
22,637
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) ...
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(((TreeNode) node), 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { ...
22,638
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) ...
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) ...
22,639
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
22,640
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
22,641
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfH...
22,642
public RTFScanner(InputStream stream) { this(); InputStreamReader reader = new InputStreamReader(stream); in = new BufferedReader(reader); }
private RTFScanner() { this(); InputStreamReader reader = new InputStreamReader(stream); in = new BufferedReader(reader); }
22,643
public RTFScanner(InputStream stream) { this(); InputStreamReader reader = new InputStreamReader(stream); in = new BufferedReader(reader); }
public RTFScanner(InputStream stream) { this(); InputStreamReader reader = new InputStreamReader(stream); in = new BufferedReader(reader); }
22,644
protected void paintDeterminate(Graphics g, JComponent c) { Color saved = g.getColor(); int space = getCellSpacing(); int len = getCellLength(); int max = progressBar.getMaximum(); int min = progressBar.getMinimum(); int value = progressBar.getValue(); Rectangle vr = new Rectangle(); SwingUti...
protected void paintDeterminate(Graphics g, JComponent c) { Color saved = g.getColor(); int space = getCellSpacing(); int len = getCellLength(); int max = progressBar.getMaximum(); int min = progressBar.getMinimum(); int value = progressBar.getValue(); Rectangle vr = new Rectangle(); SwingUti...
22,646
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
22,647
public SecureRandom() { Provider p[] = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i, flag = 0; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { ...
public SecureRandom() { Provider p[] = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (...
22,648
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new...
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new...
22,649
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= tmp[i] << (8 * i); r...
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= (tmp[i] & 0xFF) << (8 *...
22,650
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= tmp[i] << (8 * i); r...
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= tmp[i] << (8 * i); l...
22,651
public TaggedProfileHolder(TaggedProfile initialValue) { value = initialValue; }
public TaggedProfileHolder() { value = initialValue; }
22,652
public TaggedProfileHolder(TaggedProfile initialValue) { value = initialValue; }
public TaggedProfileHolder(TaggedProfile initialValue) { }
22,653
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ...
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ...
22,654
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ...
NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, ...
22,655
TemplateNode clone(Stylesheet stylesheet) { return new NodeNumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), level, ...
TemplateNode clone(Stylesheet stylesheet) { return new NodeNumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), level, ...
22,656
boolean countMatches(Node current, Node node) { if (count == null) { int cnt = current.getNodeType(); int nnt = node.getNodeType(); if (cnt != nnt) { return false; } if (nnt == Node.ELEMENT_NODE || nnt == Node.ATTRIBUTE_NODE) { Stri...
boolean countMatches(Node current, Node node) { if (count == null) { int cnt = current.getNodeType(); int nnt = node.getNodeType(); if (cnt != nnt) { return false; } if (nnt == Node.ELEMENT_NODE || nnt == Node.ATTRIBUTE_NODE) { Stri...
22,658
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
public byte[] getData() { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
22,659
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
22,660
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
22,661
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv, VmMethod caller) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(...
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv, VmMethod caller) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(...
22,662
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv, VmMethod caller) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(...
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv, VmMethod caller) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(...
22,663
private void _handleEndTag_remaining(TagElement tag) { HTML.Tag h = tag.getHTMLTag(); handleEndTag(tag); endTag(tag.fictional()); if (h.isPreformatted()) preformatted--; if (preformatted < 0) preformatted = 0; if (h == HTML.Tag.TITLE) { titleOpen = false; titleHandled =...
void _handleEndTag_remaining(TagElement tag) { HTML.Tag h = tag.getHTMLTag(); handleEndTag(tag); endTag(tag.fictional()); if (h.isPreformatted()) preformatted--; if (preformatted < 0) preformatted = 0; if (h == HTML.Tag.TITLE) { titleOpen = false; titleHandled = true; ...
22,664
private void _handleStartTag(TagElement tag) { validator.openTag(tag, attributes); startingTag(tag); handleStartTag(tag); HTML.Tag h = tag.getHTMLTag(); if (h.isPreformatted()) preformatted++; if (h == HTML.Tag.TITLE) { if (titleHandled) error("Repetetive <TITLE> tag"); ...
void _handleStartTag(TagElement tag) { validator.openTag(tag, attributes); startingTag(tag); handleStartTag(tag); HTML.Tag h = tag.getHTMLTag(); if (h.isPreformatted()) preformatted++; if (h == HTML.Tag.TITLE) { if (titleHandled) error("Repetetive <TITLE> tag"); tit...
22,665
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new OtherwiseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
22,666
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
22,667
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new OtherwiseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
22,668
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new OtherwiseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
22,669
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) children.apply(stylesheet, mode, context, pos, len, parent, nextSiblin...
22,670
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
22,671
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) children.apply(stylesheet, mode, context, pos, len, parent, nextSiblin...
22,672
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, nextSi...
22,673
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
22,674
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l...
public Expr clone(Object context) NamespaceContext n = nsctx; if (context instanceof NamespaceContext) n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; ...
22,675
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l...
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len...
22,676
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l...
public Expr clone(Object context) NamespaceContext n = nsctx; if (context instanceof NamespaceContext) n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; ...
22,677
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < l...
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len...
22,678
public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; }
public boolean references(QName var) for (Iterator i = args.iterator(); i.hasNext(); ) if (((Expr) i.next()).references(var)) return true; } } return false; }
22,679