rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public DefaultTableModel(int numRows, int numColumns)
public DefaultTableModel()
public DefaultTableModel(int numRows, int numColumns) { Vector defaultNames = new Vector(numColumns); Vector data = new Vector(numRows); for (int i = 0; i < numColumns; i++) { defaultNames.add(super.getColumnName(i)); } for (int r = 0; r < numRows; r++) { Vector ...
Vector defaultNames = new Vector(numColumns); Vector data = new Vector(numRows); for (int i = 0; i < numColumns; i++) { defaultNames.add(super.getColumnName(i)); } for (int r = 0; r < numRows; r++) { Vector tmp = new Vector(numColumns); tmp.setSize(numColumns); data.add(tmp); } setDataVector(data, defaultNames);
this(0, 0);
public DefaultTableModel(int numRows, int numColumns) { Vector defaultNames = new Vector(numColumns); Vector data = new Vector(numRows); for (int i = 0; i < numColumns; i++) { defaultNames.add(super.getColumnName(i)); } for (int r = 0; r < numRows; r++) { Vector ...
tableColumns = new Vector(); setSelectionModel(new DefaultListSelectionModel()); columnMargin = 1; columnSelectionAllowed = false;
public DefaultTableColumnModel() { // TODO }
public JTableHeader(TableColumnModel cm)
public JTableHeader()
public JTableHeader(TableColumnModel cm) { columnModel = cm == null ? createDefaultColumnModel() : cm; initializeLocalVars(); updateUI(); }
columnModel = cm == null ? createDefaultColumnModel() : cm; initializeLocalVars(); updateUI();
this(null);
public JTableHeader(TableColumnModel cm) { columnModel = cm == null ? createDefaultColumnModel() : cm; initializeLocalVars(); updateUI(); }
protected boolean requestFocusInWindow (boolean temporary)
public boolean requestFocusInWindow ()
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ...
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { synchronized (getTreeLock ()) { Container parent = getParent (); while (parent != null && !...
return requestFocusInWindow (false);
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ...
return false; }
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ...
clickCountToStart = 2;
clickCountToStart = 3;
public DefaultCellEditor(JTextField textfield) { editorComponent = textfield; clickCountToStart = 2; } // DefaultCellEditor()
public FatDirEntry(AbstractDirectory dir, String name, String ext) { super(dir); this.parent = dir; this.name = name; this.ext = ext; this.flags = F_ARCHIVE; this.lastModified = System.currentTimeMillis(); this._dirty = false;
public FatDirEntry(AbstractDirectory dir) { this(dir, "", "");
public FatDirEntry(AbstractDirectory dir, String name, String ext) { super(dir); this.parent = dir; this.name = name; this.ext = ext; this.flags = F_ARCHIVE; this.lastModified = System.currentTimeMillis(); this._dirty = false; }
Dialog(Frame parent) {
public Dialog(Frame parent) {
Dialog(Frame parent){ this(parent, "", false);}
addNotify() {
public synchronized void addNotify() {
addNotify(){ if (peer == null) peer = getToolkit ().createDialog (this); super.addNotify ();}
dispose () {
public synchronized void dispose() {
dispose (){ if (blocked) { notifyAll (); } super.dispose();}
hide () {
public synchronized void hide() {
hide (){ if (blocked) { notifyAll (); } super.hide();}
isModal() { return(modal); }
public boolean isModal() { return modal; }
isModal(){ return(modal);}
paramString() { return ("title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString()); }
protected String paramString() { return "title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString(); }
paramString(){ return ("title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString());}
setModal(boolean modal) {
public void setModal(boolean modal) {
setModal(boolean modal){ this.modal = modal;}
setResizable(boolean resizable) {
public synchronized void setResizable(boolean resizable) {
setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }}
d.setResizable (resizable);
d.setResizable(resizable); }
setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }}
}
setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }}
show() {
public synchronized void show() {
show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ...
public Window(Window owner, GraphicsConfiguration gc)
Window()
public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind...
this ();
visible = false; focusCycleRoot = true; setLayout(new BorderLayout());
public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind...
synchronized (getTreeLock())
addWindowFocusListener (new WindowAdapter ()
public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind...
if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } SecurityManager s = System.getSecurityManager(); if (s != null && ! s.checkTopLevelWindow(this)) warningString = System.getProperty("awt.appletWarning"); if (gc != nul...
public void windowGainedFocus (WindowEvent event) { if (windowFocusOwner != null) { EventQueue eq = Toolkit.getDefaultToolkit ().getSystemEventQueue (); synchronized (eq) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Component currentFocusOwner = manager.getGlobalPermanentFo...
public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind...
public abstract void setResizable(boolean resizeable);
void setResizable (boolean resizeable);
public abstract void setResizable(boolean resizeable);
public abstract void setTitle(String title);
void setTitle (String title);
public abstract void setTitle(String title);
initialFocusOwner.requestFocusInWindow (false);
initialFocusOwner.requestFocusInWindow ();
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g...
((ClasspathToolkit) Toolkit.getDefaultToolkit()).wakeNativeQueue();
protected void pop() throws EmptyStackException { if (prev == null) throw new EmptyStackException(); /* The order is important here, we must get the prev lock first, or deadlock could occur as callers usually get here following prev's next pointer, and thus obtain prev's lock before trying to...
throw new AlreadyBound("Tha object has another name");
throw new AlreadyBound("The object has another name");
public void bind(NameComponent name, org.omg.CORBA.Object object) throws AlreadyBound, InvalidName { if (containsKey(name)) { Object x = get(name); // Do not throw an exception if the same object is named by // the same name. if (x.equals(object)) throw new Alr...
rebind(name, object);
public void bind(NameComponent name, org.omg.CORBA.Object object) throws AlreadyBound, InvalidName { if (containsKey(name)) { Object x = get(name); // Do not throw an exception if the same object is named by // the same name. if (x.equals(object)) throw new Alr...
public AlreadyBound(String why)
public AlreadyBound()
public AlreadyBound(String why) { super(why); }
super(why);
public AlreadyBound(String why) { super(why); }
return ((X500Principal) o).name.equals(name);
if (!(o instanceof X500Principal)) return false; if (size() != ((X500Principal) o).size()) return false; for (int i = 0; i < size(); i++) { Map m = (Map) components.get (i); for (Iterator it2 = m.entrySet().iterator(); it2.hasNext(); ) { Map.Entry e = (Map.Entry) it2.next(); OID oid = (OID) e.getKey(); String v1 = (Str...
public boolean equals(Object o) { return ((X500Principal) o).name.equals(name); }
public X500Principal(String name)
private X500Principal()
public X500Principal(String name) { if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name); }
if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name);
components = new LinkedList(); currentRdn = new LinkedHashMap(); components.add (currentRdn);
public X500Principal(String name) { if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name); }
public static final CharBuffer wrap(CharSequence seq)
public static final CharBuffer wrap(char[] array, int offset, int length)
public static final CharBuffer wrap(CharSequence seq) { return wrap(seq, 0, seq.length()); }
return wrap(seq, 0, seq.length());
return new CharBufferImpl(array, 0, array.length, offset + length, offset, -1, false);
public static final CharBuffer wrap(CharSequence seq) { return wrap(seq, 0, seq.length()); }
if (singleton == null) singleton = new Provider ();
if (singleton == null) { singleton = (Provider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return new Provider(); } }); }
public static synchronized Provider provider () { if (singleton == null) singleton = new Provider (); return singleton; }
lastComponentEntered.dispatchEvent (exited);
tempComponent = lastComponentEntered; lastComponentEntered = null; tempComponent.dispatchEvent(exited);
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ...
if (!isDispatchThread() || (evt.getID() == WindowEvent.WINDOW_CLOSED) || (evt.getID() == WindowEvent.WINDOW_CLOSING)) ((ClasspathToolkit) Toolkit.getDefaultToolkit()).wakeNativeQueue();
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* Check for any events already on the queue with the same source and ID. */ int i = next_o...
log.finest("Processing " + sfFileName);
if (Configuration.DEBUG) log.fine("Processing " + sfFileName);
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
log.finer("Created .SF file");
if (Configuration.DEBUG) log.fine("Created .SF file");
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
log.finest("Processing " + dsaFileName);
if (Configuration.DEBUG) log.fine("Processing " + dsaFileName);
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
log.finer("Created .DSA file");
if (Configuration.DEBUG) log.fine("Created .DSA file");
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
log.finer("Renamed signed JAR file");
if (Configuration.DEBUG) log.fine("Renamed signed JAR file");
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
if (Configuration.DEBUG)
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen...
log.finer("Hash of " + name + " = " + hash);
if (Configuration.DEBUG) log.fine("Hash of " + name + " = " + hash);
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Has...
log.finest("Name: " + name); log.finest(Main.DIGEST + ": " + sfHash); log.finest("");
if (Configuration.DEBUG) { log.fine("Name: " + name); log.fine(Main.DIGEST + ": " + sfHash); log.fine(""); }
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Has...
if (Configuration.DEBUG)
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); Str...
public JarOutputStream(OutputStream out, Manifest man) throws IOException
public JarOutputStream(OutputStream out) throws IOException
public JarOutputStream(OutputStream out, Manifest man) throws IOException { super(out); if (man != null) writeManifest(man); }
super(out); if (man != null) writeManifest(man);
this(out, null);
public JarOutputStream(OutputStream out, Manifest man) throws IOException { super(out); if (man != null) writeManifest(man); }
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
if (Configuration.DEBUG) log.fine("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException(Messages.getString("SFHelper.1")); //$NON-NLS-1$ ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.to...
log.finest("+++ signer private key = " + signerKey);
if (Configuration.DEBUG) log.fine("+++ signer private key = " + signerKey);
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log...
log.finest("\n" + Util.dumpString(signedSFBytes, "+++ signedSFBytes "));
if (Configuration.DEBUG) log.fine("\n" + Util.dumpString(signedSFBytes, "+++ signedSFBytes "));
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log...
try { cert.checkValidity(); } catch (CertificateExpiredException x) { String issuerName = getIssuerName(cert); String subjectName = getSubjectName(cert); Date notAfterDate = getNotAfterDate(cert); System.out.println(Messages.getFormattedString("SFHelper.0", new Object[] { issuerName, subjectName, notAfterDate })); } ca...
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log...
final void checkForUnderflow(int length)
final void checkForUnderflow()
final void checkForUnderflow(int length) { if (remaining() < length) throw new BufferUnderflowException(); }
if (remaining() < length)
if (!hasRemaining())
final void checkForUnderflow(int length) { if (remaining() < length) throw new BufferUnderflowException(); }
final void checkForOverflow(int length)
final void checkForOverflow()
final void checkForOverflow(int length) { if (remaining() < length) throw new BufferOverflowException(); }
if (remaining() < length)
if (!hasRemaining())
final void checkForOverflow(int length) { if (remaining() < length) throw new BufferOverflowException(); }
"Button.border", BorderUIResource.getEtchedBorderUIResource(),
"Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } },
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return getKeyStroke(keyCode, modifiers, false);
public static KeyStroke getKeyStroke(char keyChar) { KeyStroke key; key = new KeyStroke(); key.keyChar = keyChar; return key;
public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return getKeyStroke(keyCode, modifiers, false); } // getKeyStroke()
return qName.hashCode();
if (hashCode == -1) { StringBuffer buf = new StringBuffer(); buf.append('{'); buf.append(namespaceURI); buf.append('}'); buf.append(localPart); hashCode = buf.toString().hashCode(); } return hashCode;
public final int hashCode() { return qName.hashCode(); }
public abstract boolean avoidingGui();
boolean avoidingGui();
public abstract boolean avoidingGui();
public abstract void dontUseGui();
void dontUseGui();
public abstract void dontUseGui();
public abstract boolean needsGui();
boolean needsGui();
public abstract boolean needsGui();
public abstract void okToUseGui();
void okToUseGui();
public abstract void okToUseGui();
this(null, null);
super(null, null);
public JMenuItem() { this(null, null); }
public void insert(Component component, int index)
public void insert(Action action, int index)
public void insert(Component component, int index) { super.add(component, index); }
super.add(component, index);
JMenuItem item = new JMenuItem(action); this.insert(item, index);
public void insert(Component component, int index) { super.add(component, index); }
accessibleContext = new AccessibleJMenuItem(this);
accessibleContext = new AccessibleJMenuItem();
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuItem(this); return accessibleContext; }
else model.setArmed(false);
public void menuSelectionChanged(boolean changed) { if (changed) model.setArmed(true); }
final FSEntry child = (FSEntry)i.next();
final FSEntry child = i.next();
public String[] list(File directory, FilenameFilter filter) throws IOException { final FSEntry entry = getEntry(directory); if (entry == null) { throw new FileNotFoundException(directory.getAbsolutePath()); } if (!entry.isDirectory()) { throw new IOException("Cannot list on non-directories " + directory); } ...
setCurrentTheme(new DefaultMetalTheme());
setCurrentTheme(new OceanTheme());
protected void createDefaultTheme() { if (theme == null) setCurrentTheme(new DefaultMetalTheme()); }
"CheckBoxMenuItem.borderPainted", new Boolean(true),
"CheckBoxMenuItem.borderPainted", Boolean.TRUE,
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
"Spinner.border", MetalBorders.getTextFieldBorder(),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
MenuElement[] path = new MenuElement[selection.size ()];
MenuElement[] path = new MenuElement[selectedPath.size()];
public MenuElement[] getSelectedPath () { MenuElement[] path = new MenuElement[selection.size ()]; for (int i = 0; i < path.length; i++) path[i] = (MenuElement) selection.get (i); return path; }
path[i] = (MenuElement) selection.get (i);
path[i] = (MenuElement) selectedPath.get(i);
public MenuElement[] getSelectedPath () { MenuElement[] path = new MenuElement[selection.size ()]; for (int i = 0; i < path.length; i++) path[i] = (MenuElement) selection.get (i); return path; }
public synchronized static void setSecurityManager(SecurityManager sm)
public static synchronized void setSecurityManager(SecurityManager sm)
public synchronized static void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
return new ByteArrayInputStream(new byte[0]);
return new EmptyInputStream();
static InputStream makeStandardInputStream() { return new ByteArrayInputStream(new byte[0]); }
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public void exit(int status) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And wait ti...
exitSequence.interrupt();
public void exit(int status) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And wait ti...
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public void load(String filename) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(filename); if (loadLib(filename) == 0) throw new UnsatisfiedLinkError("Could not load library " + filename); }
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public void loadLibrary(String libname) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(libname); String filename; ClassLoader cl = VMSecurityManager.currentClassLoader(); if (cl != null) { filename = cl.findLibrary(libname); if (filename...
filename = System.mapLibraryName(libname);
filename = VMRuntime.mapLibraryName(libname);
public void loadLibrary(String libname) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(libname); String filename; ClassLoader cl = VMSecurityManager.currentClassLoader(); if (cl != null) { filename = cl.findLibrary(libname); if (filename...
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public static void runFinalizersOnExit(boolean finalizeOnExit) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(0); VMRuntime.runFinalizersOnExit(finalizeOnExit); }
new Integer (cert.getLength()));
Integer.valueOf(cert.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (tbsCert.getLength()));
Integer.valueOf(tbsCert.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (version));
Integer.valueOf(version));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (certAlgLen));
Integer.valueOf(certAlgLen));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (val.getLength()));
Integer.valueOf(val.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (ext.getLength()));
Integer.valueOf(ext.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
logger.log (Component.X509, "count == {0}", new Integer (len));
logger.log (Component.X509, "count == {0}", Integer.valueOf(len));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
new Integer (sigAlgLen));
Integer.valueOf(sigAlgLen));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
if (orb instanceof Restricted_ORB) m_interceptor = ((Restricted_ORB) orb).iClient; if (m_interceptor != null && orb instanceof ORB_1_4) { m_slots = ((ORB_1_4) orb).ic_current.clone_slots(); }
public void setORB(ORB an_orb) { orb = an_orb; }
return null;
if (event.getSource() != null && event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); else return getFocusedComponent();
protected final JTextComponent getTextComponent(ActionEvent event) { return null; // TODO }
super(name);
public TextAction(String name) { // TODO }
return getType(ch) == CONTROL;
return isISOControl((int)ch);
public static boolean isISOControl(char ch) { return getType(ch) == CONTROL; }
System.out.println("Michael: JTextComponent.replaceSelection: Error");
public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = getSelectionStart(); int end = getSelectionEnd(); // Remove s...
if (address == null) throw new NullPointerException("Null address");
public synchronized void setAddress(InetAddress address) { if (address == null) throw new NullPointerException("Null address"); this.address = address; }