rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
loadClass(VmClassLoader.class); | loadClass(VmSystemClassLoader.class); | public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin... |
public VmClassLoader getClsMgr() { | public VmSystemClassLoader getClsMgr() { | public VmClassLoader getClsMgr() { return clsMgr; } |
return getComponentAt(i); | return getComponent(i); | public Component getComponentAtIndex(int i) { return getComponentAt(i); } |
return paintBorder; | return borderPainted; | public boolean isBorderPainted() { return paintBorder; } |
if (paintBorder) | if (borderPainted) | protected void paintBorder(Graphics g) { if (paintBorder) getBorder().paintBorder(this, g, 0, 0, getSize(null).width, getSize(null).height); } |
paintBorder = b; | boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } | public void setBorderPainted(boolean b) { paintBorder = b; } |
selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } | public void setSelectionModel(SingleSelectionModel model) { } | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PrinterStateReason.class; } |
public final String getName() | public String getName() | public final String getName() { return "printer-state-reason"; } |
return super.getAttributes(); | return getStyleSheet().getViewAttributes(this); | public AttributeSet getAttributes() { // FIXME: return getStyleSheet().getViewAttributes(this); return super.getAttributes(); } |
getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.height, this); | public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: getStyleSheet(). // BoxPainter.paint(g, rect.x, rect.y, rect.width, rect.height, this); super.paint(g, a); } | |
tabPane.layout(); tabPane.repaint(); | public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll... | |
panel.setBounds(0, 0, w + p.x, h + p.y); | panel.setSize(w + p.x, h + p.y); | public void layoutContainer(Container pane) { super.layoutContainer(pane); int tabCount = tabPane.getTabCount(); if (tabCount == 0) return; int tabPlacement = tabPane.getTabPlacement(); incrButton.hide(); decrButton.hide(); if (tabPlacement == SwingConstants.TOP || tab... |
return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); | decreaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return decreaseButton; | protected JButton createDecreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); } |
return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); | increaseButton = new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); return increaseButton; | protected JButton createIncreaseButton(int orientation) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollBarWidth = defaults.getInt("ScrollBar.width"); return new MetalScrollButton(orientation, scrollBarWidth, isFreeStanding); } |
if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else | protected Dimension getMinimumThumbSize() { return MIN_THUMB_SIZE; } | |
scrollBarShadowColor = UIManager.getColor("ScrollBar.shadow"); | protected void installDefaults() { // need to initialise isFreeStanding before calling the super class, // so that the value is set when createIncreaseButton() and // createDecreaseButton() are called (unless there is somewhere earlier // that we can do this). Boolean prop = (Boolean) scrollbar.... | |
g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); int hAdj = 1; int wAdj = 1; | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... | |
hAdj++; else wAdj++; g.setColor(new Color(102, 102, 153)); g.drawRect(thumbBounds.x, thumbBounds.y, thumbBounds.width - wAdj, thumbBounds.height - hAdj); g.setColor(thumbHighlightColor); g.drawLine(thumbBounds.x + 1, thumbBounds.y + 1, thumbBounds.x + thumbBounds.width - 2, thumbBounds.y + 1); g.drawLine(thumbBounds... | paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thumbBounds); | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... |
thumbBounds.width - 6, thumbBounds.height - 6, thumbHighlightColor, new Color(102, 102, 153)); | thumbBounds.width - 6, thumbBounds.height - 6, thumbHighlightColor, thumbLightShadowColor); | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ... |
g.setColor(MetalLookAndFeel.getControlShadow()); | g.setColor(scrollBarShadowColor); | private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... |
else { g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 1); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1); } | private void paintTrackHorizontal(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);... | |
protected void paintTrackVertical(Graphics g, JComponent c, | private void paintTrackVertical(Graphics g, JComponent c, | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... |
g.setColor(MetalLookAndFeel.getControlShadow()); | g.setColor(scrollBarShadowColor); | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... |
g.drawLine(x + 1, y + h - 2, x + w - 1, y + h - 2); | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | |
else { g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1); } | protected void paintTrackVertical(Graphics g, JComponent c, int x, int y, int w, int h) { if (c.isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);... | |
if (viewListener != null) getView().removeComponentListener(viewListener); | Component currView = getView(); if (viewListener != null && currView != null) currView.removeComponentListener(viewListener); | public void setView(Component v) { if (viewListener != null) getView().removeComponentListener(viewListener); if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } re... |
case 304: | Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco... | |
this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); | this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmThreadQueue.AllThreadsQueue("scheduler-all"); | public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... |
this.readyQueue = new VmThreadScheduleQueue("scheduler-ready"); this.wakeupQueue = new VmThreadWakeupQueue("scheduler-wakeup"); | this.readyQueue = new VmThreadQueue.ScheduleQueue("scheduler-ready"); this.sleepQueue = new VmThreadQueue.SleepQueue("scheduler-sleep"); | public VmScheduler(VmArchitecture architecture) { this.architecture = architecture; this.allThreadsLock = new ProcessorLock(); this.allThreadsQueue = new VmAllThreadsQueue("scheduler-all"); this.queueLock = new ProcessorLock(); this.readyQueue = new VmThreadScheduleQueue("schedule... |
Unsafe.debug(e.thread.getThreadStateName()); | Unsafe.debug(e.thread.getThreadState()); | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... |
Object wf = e.thread.waitForObject; if (wf == null) { Unsafe.debug("null"); } else { Unsafe.debug(VmMagic.getObjectType(wf).getName()); } | VmThread waitFor = e.thread.getWaitForThread(); Unsafe.debug((waitFor != null) ? waitFor.getName() : "none"); | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... |
Unsafe.debug("\n"); | final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.th... | |
Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | |
break; case 'a': Unsafe.debug("<threads: "); Unsafe.debug("\n"); dumpAllThreads(false, null); Unsafe.debug("/>\n"); break; case 'A': Unsafe.debug("<threads: "); Unsafe.debug("\n"); dumpAllThreads(true, architecture.getStackReader()); Unsafe.debug("/>\n"); | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... | |
wakeupQueue.dump(false, null); | sleepQueue.dump(false, null); | private final void processKdbInput(int input) { switch ((char) input) { case '?': case 'h': Unsafe.debug("Commands:\n"); Unsafe.debug("a Print all threads\n"); Unsafe.debug("A Print stacktraces of all threads\n"); Unsafe.debug("l Show Load/Compi... |
highbits = rnd.nextInt() >>> (32 - highbits); | { rnd.nextBytes(highBitBytes); highbits = (highBitBytes[highBitByteCount - 1] & 0xFF) >>> discardedBitCount; for (int i = highBitByteCount - 2; i >= 0; i--) highbits = (highbits << 8) | (highBitBytes[i] & 0xFF); } | private void init(int numBits, Random rnd) { int highbits = numBits & 31; if (highbits > 0) highbits = rnd.nextInt() >>> (32 - highbits); int nwords = numBits / 32; while (highbits == 0 && nwords > 0) { highbits = rnd.nextInt(); --nwords; } if (nwords == 0 && highbits >= 0) { ival ... |
* @throws ConcurrentModificationException if the * list has been modified elsewhere. | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | |
checkMod(); | public ListIterator<E> listIterator(final int index) { checkMod(); checkBoundsInclusive(index); return new ListIterator<E>() { private final ListIterator<E> i = backingList.listIterator(index + offset); private int position = index; /** * Tests to see if there are any more ob... | |
checkMod(); | public boolean hasNext() { checkMod(); return position < size; } | |
checkMod(); | public boolean hasPrevious() { checkMod(); return position > 0; } | |
checkMod(); | public boolean hasNext() { checkMod(); return pos < size; } | |
checkMod(); | public int nextIndex() { checkMod(); return position; } | |
checkMod(); | public int previousIndex() { checkMod(); return position - 1; } | |
setBorder(UIManager.getBorder("Table.focusCellHighlightBorder")); if (table.isCellEditable(row, column)) { super.setBackground(UIManager.getColor("Table.focusCellBackground")); super.setForeground(UIManager.getColor("Table.focusCellForeground")); } | if (isSelected) b = UIManager.getBorder("Table.focusSelectedCellHighlightBorder"); if (b == null) b = UIManager.getBorder("Table.focusCellHighlightBorder"); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... |
setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); | b = noFocusBorder; setBorder(b); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setValue(value); setOpaque(true... |
else { position(limit()); limit(capacity()); } | public ByteBuffer compact () { int pos = position(); if (pos > 0) { int count = remaining(); shiftDown(0, pos, count); position(count); limit(capacity()); } return this; } | |
} | public void mouseDragged(MouseEvent e) { curr = new Point(e.getX(), e.getY()); updateSelection(e.isControlDown()); } | |
} | public void mousePressed(MouseEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int colLead = colModel.getLeadSelectionIndex(); begin = new Point(e... | |
} | public void mouseReleased(MouseEvent e) { begin = null; curr = null; } | |
highlightCellBorder = UIManager.getBorder("Table.focusCellHighlightBorder"); cellBorder = BorderFactory.createEmptyBorder(1, 1, 1, 1); | protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ... | |
if (propertyChangeListener == null) propertyChangeListener = new PropertyChangeHandler(); table.addPropertyChangeListener(propertyChangeListener); | protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); table.addFocusListener(focusListener); if (keyListener == null) keyListener = createKeyListener(); table.addKeyListener(keyListener); if (mouseInputListener == null) mouseInputListen... | |
int halfGapWidth = gap.width / 2; int halfGapHeight = gap.height / 2; | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | |
Rectangle bounds = new Rectangle(x, y, width, height); | Rectangle bounds = new Rectangle(x + halfGapWidth, y + halfGapHeight + 1, width - gap.width + 1, height - gap.height); | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... |
gfx.drawLine(x - gap.width, y0, x - gap.width, ymax); | gfx.drawLine(x, y0, x, ymax); | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... |
boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); | boolean rowSelAllowed = table.getRowSelectionAllowed(); boolean colSelAllowed = table.getColumnSelectionAllowed(); boolean isSel = false; if (rowSelAllowed && colSelAllowed || !rowSelAllowed && !colSelAllowed) isSel = table.isCellSelected(row, col); else isSel = table.isRowSelected(row) && table.getRowSelectionAllowed(... | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... |
if (table.getSelectionModel().getLeadSelectionIndex() == row && table.getColumnModel().getSelectionModel(). getLeadSelectionIndex() == col) ((JComponent) comp).setBorder(highlightCellBorder); else ((JComponent) comp).setBorder(cellBorder); | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean isSel = table.isCellSelected(row, col); boolean hasFocus = (table.getSelectionModel().getLeadSelectionIndex() == row) && table.hasFocus(); ... | |
table.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; | protected void uninstallListeners() { table.removeFocusListener(focusListener); table.removeKeyListener(keyListener); table.removeMouseListener(mouseInputListener); table.removeMouseMotionListener(mouseInputListener); } | |
int x3 = Math.max(x2 + w.width + hgap, t.width - i.right - e.width); | int x3; if (t.width <= i.right + e.width) x3 = x2 + w.width + hgap; else x3 = t.width - i.right - e.width; | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... |
int y3 = Math.max(y2 + midh + vgap, t.height - i.bottom - s.height); | int y3; if (t.height <= i.bottom + s.height) y3 = y2 + midh + vgap; else y3 = t.height - i.bottom - s.height; | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... |
return(getMenuCount()); | return menus.size (); | countMenus(){ return(getMenuCount());} |
public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException( "defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; | public PolicyFile() { | public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException( "defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; cs2pc = new HashMap(); refresh(); } |
private static void error(Throwable t) { System.err.println(">> PolicyFile"); t.printStackTrace(System.err); | private static void error(URL base, StreamTokenizer in, String msg) throws IOException { throw new IOException(base+":"+in.lineno()+": "+msg); | private static void error(Throwable t) { System.err.println(">> PolicyFile"); t.printStackTrace(System.err); } |
public final PermissionCollection getPermissions(CodeSource codeSource) { | public PermissionCollection getPermissions(CodeSource codeSource) { | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... |
for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) { debug(cs + " -> " + codeSource); final PermissionCollection pc = (PermissionCollection) e .getValue(); for (Enumeration ee = pc.element... | for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) { logger.log (Component.POLICY, "{0} -> {1}", new Object[] { cs, codeSource }); PermissionCollection pc = (PermissionCollection) e.getValue(); for (... | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... |
} else { debug(cs + " !-> " + codeSource); | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | |
addPermissions(codeSource, perms); | logger.log (Component.POLICY, "returning permissions {0} for {1}", new Object[] { perms, codeSource }); | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... |
private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); | private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); | private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a... |
null, null, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); | null, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); | private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a... |
target, null, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); | target, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); | private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a... |
target, action, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); | target, action, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); | private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a... |
final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { | final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); debug("policy.file." + i + "=" + s); if (s == null) break; l.add(new URL(s)); } String s = System .getProperty("java.security.policy"); debug("java.security.policy=" + s);... | AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); logger.log (Component.POLICY, "... | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
for (Iterator it = policyFiles.iterator(); it.hasNext();) { try { | catch (PrivilegedActionException pae) { logger.log (Component.POLICY, "reading policy properties", pae); } catch (MalformedURLException mue) { logger.log (Component.POLICY, "setting default policies", mue); } logger.log (Component.POLICY, "building policy from URLs {0}", policyFiles); for (Iterator it = policyFiles.it... | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
} catch (IOException ioe) { error(ioe); | } catch (IOException ioe) { logger.log (Component.POLICY, "reading policy", ioe); | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... |
public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); debug("policy.file." + i + "=" + s); if (s == null) break; l.add(new URL(s)); } String s = System .getProperty("java.security.policy"); debug("java.security.policy=" + s);... | public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); logger.log (Component.POLICY, "java.security.policy={0}", s); if (s != null) { boolean only = s.... | public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); ... |
public FTPFSFile(FTPFileSystem fileSystem, FTPFile ftpFile) { | FTPFSFile(FTPFileSystem fileSystem, FTPFile ftpFile) { | public FTPFSFile(FTPFileSystem fileSystem, FTPFile ftpFile) { super(fileSystem, ftpFile); } |
ORB orb = Restricted_ORB.Singleton; | ORB orb = OrbRestricted.Singleton; | public static synchronized TypeCode type() { if (typeCode == null) { ORB orb = Restricted_ORB.Singleton; synchronized (TypeCode.class) { if (typeCode == null) { if (active) { return orb.create_recursive_tc(id())... |
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) | public LineTable(long start, long end, int[] lineNum, long[] lineCI) | public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; } |
this.lines = lines; | this.lineNum = lineNum; | public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; } |
this.lineNum = lineNum; | public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; } | |
g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; | Graphics g2 = g.create(); g2.setFont(this.getFont()); g2.setColor(this.getForeground()); return g2; | protected Graphics getComponentGraphics(Graphics g) { g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; } |
if (knownMod != modCount) throw new ConcurrentModificationException(); | public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return next != max; } | |
return getType(ch) == LOWERCASE_LETTER; | return isLowerCase((int)ch); | public static boolean isLowerCase(char ch) { return getType(ch) == LOWERCASE_LETTER; } |
public static ServiceContext read(cdrInput istream) | public static ServiceContext read(AbstractCdrInput istream) | public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ... |
case cxCodeSet.ID: | case CodeSetServiceContext.ID: | public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ... |
cxCodeSet codeset = new cxCodeSet(); | CodeSetServiceContext codeset = new CodeSetServiceContext(); | public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ... |
public static ServiceContext[] readSequence(cdrInput istream) | public static ServiceContext[] readSequence(AbstractCdrInput istream) | public static ServiceContext[] readSequence(cdrInput istream) { int size = istream.read_long(); ServiceContext[] value = new gnu.CORBA.GIOP.ServiceContext[size]; for (int i = 0; i < value.length; i++) value[i] = read(istream); return value; } |
public void write(cdrOutput ostream) | public void write(AbstractCdrOutput ostream) | public void write(cdrOutput ostream) { ostream.write_ulong(context_id); ostream.write_sequence(context_data); } |
public static void writeSequence(cdrOutput ostream, ServiceContext[] value) | public static void writeSequence(AbstractCdrOutput ostream, ServiceContext[] value) | public static void writeSequence(cdrOutput ostream, ServiceContext[] value) { ostream.write_long(value.length); for (int i = 0; i < value.length; i++) value[i].write(ostream); } |
double S = y0; | double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (... | |
double D = x0; | double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (... | |
return this.createNodes(b, x); | return createNodes(b, x); | int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); Intersection[] x = null; if (b instanceof QuadSegment) x = cubicCubicIntersect(this, ((QuadSegment) b).getCubicSegment()); if (b instanceof CubicSegment) x = cubicCubicIntersect(this, (Cubic... |
return this.createNodes(b, x); | return createNodes(b, x); | int splitIntersections(Segment b) { if (b instanceof LineSegment) { Intersection i = linesIntersect(this, (LineSegment) b); if (i == null) return 0; return createNode(b, i); } Intersection[] x = null; if (b instanceof QuadSegment) x = lineQuadIntersect(this, (QuadSegment) b... |
double R = y0; | double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double R = y0; double A = (x2 - 2 * x1 + x0); ... | |
double C = x0; | double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double R = y0; double A = (x2 - 2 * x1 + x0); ... | |
return this.createNodes(b, x); | return createNodes(b, x); | int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); if (b instanceof CubicSegment) return (b.splitIntersections(this)); if (b instanceof QuadSegment) { // Use the cubic-cubic intersection routine for quads as well, // Since a quadratic ... |
editor = new JTextField("", 9); | editor = new EditorTextField("", 9); | public MetalComboBoxEditor() { editor = new JTextField("", 9); editor.setBorder(new MetalComboBoxEditorBorder()); } |
{ | public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) { throw new IllegalAr... | |
} | public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) { throw new IllegalAr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.