rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (startDayOfWeek > 0) startMode = DOW_IN_MONTH_MODE; else { startDayOfWeek = -startDayOfWeek; if (startDay < 0) | if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); return DOM_MODE; } else if (dayOfWeek > 0) | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... |
startDay = - startDay; startMode = DOW_LE_DOM_MODE; | if (Math.abs(day) > (daysInMonth + 6) / 7) throw new IllegalArgumentException("dayOfWeekInMonth out of range"); if (dayOfWeek > Calendar.SATURDAY) throw new IllegalArgumentException("dayOfWeek out of range"); return DOW_IN_MONTH_MODE; | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... |
startMode = DOW_GE_DOM_MODE; } if (startDayOfWeek > Calendar.SATURDAY) throw new IllegalArgumentException("day of week out of range"); } if (startMode != DOW_IN_MONTH_MODE && (startDay <= 0 || startDay > getDaysInMonth(month, 1))) | { if (day == 0 || Math.abs(day) > daysInMonth) | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... |
return startMode; | private int checkRule(int month) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); if (startDayOfWeek == 0) startMode = DOM_MODE; else { if (startDayOfWeek > 0) startMode = DO... | |
this.endMode = checkRule(month); | public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_TIME) // Convert from STANDARD to DST this... | |
this.startMode = checkRule(month); | public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.startTime = time; else // Convert from UTC to STAN... | |
private RefItem(int kind, Register reg, Object val, int offsetToFP) { | private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { | private RefItem(int kind, Register reg, Object val, int offsetToFP) { super(kind, REFERENCE, offsetToFP); this.reg = reg; this.value = val; } |
static RefItem createConst(Object value) { | static RefItem createConst(VmConstString value) { | static RefItem createConst(Object value) { return new RefItem(CONSTANT, null, value, 0); } |
Object getValue() { | VmConstString getValue() { | Object getValue() { myAssert(getKind() == CONSTANT); return value; } |
os.writeMOV_Const(reg, value); | if (value == null) { os.writeMOV_Const(reg, value); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writeGetStaticsEntry(l, reg, value); } | void loadTo(EmitterContext ec, Register reg) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); myAssert(!pool.isFree(reg)); switch (getKind()) { case REGISTER: if (this.reg != reg) { release(ec); os.writeMOV(INTSIZE, reg, this.reg); } break; case LOCAL: os.wr... |
os.writePUSH_Const(value); | if (value == null) { os.writePUSH_Const(null); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writePushStaticsEntry(l, value); } | void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case REGISTER: os.writePUSH(reg); break; case LOCAL: os.writePUSH(FP, offsetToFP); break; case CONSTANT: os.writePUSH_Const(value); break; case FREGISTER: //TODO notImplement... |
byte[] buf = new byte[str.length()]; | final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; | public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... |
if (c > 127) throw new MalformedURLException(str + " : Invalid character"); | public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... | |
else if (c > 127) { try { byte [] c_as_bytes = Character.toString(c).getBytes("utf-8"); System.arraycopy(c_as_bytes, 0, buf, pos, c_as_bytes.length); } catch (java.io.UnsupportedEncodingException x2) { throw (Error) new InternalError().initCause(x2); } } | public static String unquote(String str) throws MalformedURLException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new MalformedURLException(str + " : Invalid character"); ... | |
public static String toString(char ch) | public String toString() | public static String toString(char ch) { // Package constructor avoids an array copy. return new String(new char[] { ch }, 0, 1, true); } |
return new String(new char[] { ch }, 0, 1, true); | return new String(new char[] { value }, 0, 1, true); | public static String toString(char ch) { // Package constructor avoids an array copy. return new String(new char[] { ch }, 0, 1, true); } |
debug("start CRL entry len == " + entry.getLength()); | if (Configuration.DEBUG) log.fine("start CRL entry len == " + entry.getLength()); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("encoded entry:\n" + Util.hexDump(encoded, ">>>> ")); | if (Configuration.DEBUG) log.fine("encoded entry:\n" + Util.hexDump(encoded, ">>>> ")); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("userCertificate == " + serialNo + " current count == " + len); | if (Configuration.DEBUG) log.fine("userCertificate == " + serialNo + " current count == " + len); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("revocationDate == " + revocationDate + " current count == " + len); | if (Configuration.DEBUG) log.fine("revocationDate == " + revocationDate + " current count == " + len); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("start Extensions len == " + exts.getLength()); | if (Configuration.DEBUG) log.fine("start Extensions len == " + exts.getLength()); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("start Extension len == " + val.getLength()); | if (Configuration.DEBUG) log.fine("start Extension len == " + val.getLength()); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
debug("current count == " + len); | if (Configuration.DEBUG) log.fine("current count == " + len); | private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded... |
if (name.equals("enabled")) | else if (name.equals("enabled")) | public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { ... |
else if (name.equals("background")) { Color c = (Color) e.getNewValue(); arrowButton.setBackground(c); listBox.setBackground(c); } else if (name.equals("foreground")) { Color c = (Color) e.getNewValue(); arrowButton.setForeground(c); listBox.setForeground(c); } | public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { ... | |
Insets comboInsets = comboBox.getInsets(); if (editor instanceof JComponent) { Insets editorInsets = ((JComponent) editor).getInsets(); d.height += editorInsets.top + editorInsets.bottom; } | public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... | |
d.height += comboInsets.top + comboInsets.bottom; | d.width += arrowMargin.left + arrowMargin.right; | public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; ... |
getNumberOfPages(); | int getNumberOfPages(); | getNumberOfPages(); |
getPageFormat(int pageIndex) throws IndexOutOfBoundsException; | PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException; | getPageFormat(int pageIndex) throws IndexOutOfBoundsException; |
getPrintable(int pageIndex) throws IndexOutOfBoundsException; | Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException; | getPrintable(int pageIndex) throws IndexOutOfBoundsException; |
Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); | Ext2DirectoryRecord dr=null; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); }catch(Exception e){ fs.handleFSError(e); return false; } | public boolean hasNext() { Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); //inode nr=0 means the entry i... |
Ext2File dir = new Ext2File(iNode); | synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); iNode.incLocked(); } | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... |
synchronized(iNode) { Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); | synchronized(iNode) { try{ Ext2File dir = new Ext2File(iNode); Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if(rec!=null) { long lastPos = rec.getF... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... |
Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if(rec!=null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecLen(); rec.truncateRecord(); long remainingLength = fs.getBlockSize() - (lastPos%fs.getBlockSize()) - rec.getRecLen(); log.debug("LAST-1 record: begins at: "+lastPos+", length: "+lastL... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSyst... | |
newINode.setLinksCount( 2 ); | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | |
iNode.update(); | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | |
iNode.update(); | public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director... | |
public ClassNotFoundException() { super(); } | public ClassNotFoundException() { this(null, null); } | public ClassNotFoundException() { super(); } |
} | public void propertyChange(PropertyChangeEvent ev) { if (ev.getPropertyName().equals("preferredWidth")) { JTableHeader header = getTableHeader(); TableColumn col = (TableColumn) ev.getSource(); header.setResizingColumn(col); doLayout(); header.setResizingC... | |
int x0 = getLocation().x; | public int columnAtPoint(Point point) { if (point != null) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { ... | |
java.util.ArrayList ls = new java.util.ArrayList(); | private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... | |
boolean rsa = getRowSelectionAllowed(); boolean csa = getColumnSelectionAllowed(); boolean rs = rsa ? getSelectionModel().isSelectedIndex(row) : false; boolean cs = csa ? columnModel.getSelectionModel().isSelectedIndex(column) : false; boolean isSelected = ((rsa && csa && rs && cs) || (rsa && !csa && rs) || (!rsa && cs... | boolean rowSelAllowed = getRowSelectionAllowed(); boolean colSelAllowed = getColumnSelectionAllowed(); boolean isSel = false; if (rowSelAllowed && colSelAllowed || !rowSelAllowed && !colSelAllowed) isSel = isCellSelected(row, column); else isSel = isRowSelected(row) && getRowSelectionAllowed() || isColumnSelected(colum... | public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { boolean rsa = getRowSelectionAllowed(); boolean csa = getColumnSelectionAllowed(); boolean rs = rsa ? getSelectionModel().isSelectedIndex(row) : false; b... |
isSelected, false, | isSel, hasFocus, | public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { boolean rsa = getRowSelectionAllowed(); boolean csa = getColumnSelectionAllowed(); boolean rs = rsa ? getSelectionModel().isSelectedIndex(row) : false; b... |
int y0 = getLocation().y; | public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); int height = getRowHeight(); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return i; y -... | |
bc.add (new DERValue (DER.BOOLEAN, new Boolean (ca))); | bc.add (new DERValue (DER.BOOLEAN, Boolean.valueOf (ca))); | public byte[] getEncoded() { if (encoded == null) { List bc = new ArrayList (2); bc.add (new DERValue (DER.BOOLEAN, new Boolean (ca))); if (pathLenConstraint >= 0) bc.add (new DERValue (DER.INTEGER, BigInteger.valueOf ((long) pathLenConstraint))); ... |
public TreePath[] getPaths() { return paths; | public TreePath[] getPaths() { return (TreePath[]) paths.clone(); | public TreePath[] getPaths() { return paths; } // getPaths() |
public boolean isAddedPath() { return false; | public boolean isAddedPath() { return areNew[0]; | public boolean isAddedPath() { return false; // TODO } // isAddedPath() |
textComponent.revalidate(); textComponent.repaint(); | protected final void setView(View view) { rootView.setView(view); view.setParent(rootView); } | |
if (date.length() == 12); | if (date.length() == 12) | private Date makeTime(int tag, byte[] value) throws IOException { Calendar calendar = Calendar.getInstance(); String str = makeString(PRINTABLE_STRING, value); // Classpath's SimpleDateFormat does not work for parsing these // types of times, so we do this by hand. String date = str; String tz = ""... |
public ClassFormatError() { super(); } | public ClassFormatError() { } | public ClassFormatError() { super(); } |
int extraItems = onFpu ? 0 : 1; ensureStackCapacity(os, ec, vstack, extraItems); | private final static void prepareForOperation(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, FPUStack fpuStack, Item left) { final boolean onFpu = left.isFPUStack(); if (onFpu) { // Operand is on the FPU stack if (!fpuStack.isTos(left)) { ... | |
final private String capitalize(String s) | private String capitalize(String s) | final private String capitalize(String s) { return s.substring(0, 1).toUpperCase() + s.substring(1); } |
bufferedResponseHandler i_handler = null; | ResponseHandlerImpl i_handler = null; | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
r_handler instanceof bufferedResponseHandler | r_handler instanceof ResponseHandlerImpl | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
i_handler = (bufferedResponseHandler) r_handler; | i_handler = (ResponseHandlerImpl) r_handler; | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
activeObjectMap.Obj self = poa.aom.get(Id); | AOM.Obj self = poa.aom.get(Id); | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
if (d instanceof servantDelegate) | if (d instanceof ServantDelegateImpl) | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
if (((servantDelegate) d).object != this) { servant._set_delegate(new servantDelegate(servant, poa, Id)); | if (((ServantDelegateImpl) d).object != this) { servant._set_delegate(new ServantDelegateImpl(servant, poa, Id)); | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
servant._set_delegate(new servantDelegate(servant, poa, Id)); | servant._set_delegate(new ServantDelegateImpl(servant, poa, Id)); | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
a.insert_Streamable(new streamReadyHolder( | a.insert_Streamable(new StreamHolder( | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
recordTypeCode r = new recordTypeCode(TCKind.tk_except); | RecordTypeCode r = new RecordTypeCode(TCKind.tk_except); | public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; bufferedResponseHandler i_handler = null; ... |
else if (other instanceof IOR_contructed_object) | else if (other instanceof IorObject) | public boolean _is_equivalent(org.omg.CORBA.Object other) { if (other instanceof gnuServantObject) { gnuServantObject g = (gnuServantObject) other; return orb == g.orb && poa == g.poa && Arrays.equals(Id, g.Id); } else if (other instanceof IOR_contructed_object) { IOR_contru... |
IOR_contructed_object ir = ((IOR_contructed_object) other); | IorObject ir = ((IorObject) other); | public boolean _is_equivalent(org.omg.CORBA.Object other) { if (other instanceof gnuServantObject) { gnuServantObject g = (gnuServantObject) other; return orb == g.orb && poa == g.poa && Arrays.equals(Id, g.Id); } else if (other instanceof IOR_contructed_object) { IOR_contru... |
IOR_Delegate ird = (IOR_Delegate) ir._get_delegate(); | IorDelegate ird = (IorDelegate) ir._get_delegate(); | public boolean _is_equivalent(org.omg.CORBA.Object other) { if (other instanceof gnuServantObject) { gnuServantObject g = (gnuServantObject) other; return orb == g.orb && poa == g.poa && Arrays.equals(Id, g.Id); } else if (other instanceof IOR_contructed_object) { IOR_contru... |
return new dynImpHandler((DynamicImplementation) a_servant); | return new DynamicImpHandler((DynamicImplementation) a_servant); | public InvokeHandler servantToHandler(Servant a_servant) { if (a_servant instanceof InvokeHandler) { return (InvokeHandler) a_servant; } else if (a_servant instanceof DynamicImplementation) { return new dynImpHandler((DynamicImplementation) a_servant); } else { ... |
cdrBufInput in = new cdrBufInput(ior_key); | BufferredCdrInput in = new BufferredCdrInput(ior_key); | public byte[] idFormIor(byte[] ior_key) { cdrBufInput in = new cdrBufInput(ior_key); int signature = in.read_long(); if (signature != SIGNATURE) return null; byte[] object_id = in.read_sequence(); byte[] poa_id = in.read_sequence(); if (Arrays.equals(poa_id, id())) return object_id; el... |
if (fto instanceof IOR_contructed_object) | if (fto instanceof IorObject) | public static Servant create(org.omg.CORBA.Object a_ref) { try { ObjectImpl fto = (ObjectImpl) a_ref; // Check maybe the remote side forwarded back to our local object. if (fto instanceof IOR_contructed_object) { IOR_contructed_object iref = (IOR_contructed_object) ft... |
IOR_contructed_object iref = (IOR_contructed_object) fto; | IorObject iref = (IorObject) fto; | public static Servant create(org.omg.CORBA.Object a_ref) { try { ObjectImpl fto = (ObjectImpl) a_ref; // Check maybe the remote side forwarded back to our local object. if (fto instanceof IOR_contructed_object) { IOR_contructed_object iref = (IOR_contructed_object) ft... |
if (d instanceof IOR_Delegate) | if (d instanceof IorDelegate) | public static Servant create(org.omg.CORBA.Object a_ref) { try { ObjectImpl fto = (ObjectImpl) a_ref; // Check maybe the remote side forwarded back to our local object. if (fto instanceof IOR_contructed_object) { IOR_contructed_object iref = (IOR_contructed_object) ft... |
IOR_Delegate ird = (IOR_Delegate) iref._get_delegate(); | IorDelegate ird = (IorDelegate) iref._get_delegate(); | public static Servant create(org.omg.CORBA.Object a_ref) { try { ObjectImpl fto = (ObjectImpl) a_ref; // Check maybe the remote side forwarded back to our local object. if (fto instanceof IOR_contructed_object) { IOR_contructed_object iref = (IOR_contructed_object) ft... |
activeObjectMap.Obj rx = orb.rootPOA.findIorKey(ior.key); | AOM.Obj rx = orb.rootPOA.findIorKey(ior.key); | public static Servant create(org.omg.CORBA.Object a_ref) { try { ObjectImpl fto = (ObjectImpl) a_ref; // Check maybe the remote side forwarded back to our local object. if (fto instanceof IOR_contructed_object) { IOR_contructed_object iref = (IOR_contructed_object) ft... |
activeObjectMap.Obj ref = aom.get(the_Object_Id); | AOM.Obj ref = aom.get(the_Object_Id); | public Servant id_to_servant(byte[] the_Object_Id) throws ObjectNotActive, WrongPolicy { if (applies(ServantRetentionPolicyValue.RETAIN)) { activeObjectMap.Obj ref = aom.get(the_Object_Id); if (ref == null || ref.isDeactiveted()) { if (default_servant ... |
EntryInputStream(final ZipEntry entry, final InputStream in) | EntryInputStream(final ZipEntry entry, final InputStream in, final JarFile jar) | EntryInputStream(final ZipEntry entry, final InputStream in) throws IOException { super(in); this.entry = entry; length = entry.getSize(); pos = 0; checked = false; Attributes attr = manifest.getAttributes(entry.getName()); if (DEBUG) debug("verifying entry " + entr... |
Attributes attr = manifest.getAttributes(entry.getName()); | Attributes attr; Manifest manifest = jarfile.getManifest(); if (manifest != null) attr = manifest.getAttributes(entry.getName()); else attr = null; | EntryInputStream(final ZipEntry entry, final InputStream in) throws IOException { super(in); this.entry = entry; length = entry.getSize(); pos = 0; checked = false; Attributes attr = manifest.getAttributes(entry.getName()); if (DEBUG) debug("verifying entry " + entr... |
verified.put(entry.getName(), Boolean.FALSE); | jarfile.verified.put(entry.getName(), Boolean.FALSE); } | private void eof() throws IOException { if (checked) return; checked = true; for (int i = 0; i < md.length; i++) { byte[] hash = md[i].digest(); if (DEBUG) debug("verifying " + md[i].getAlgorithm() + " expect=" + new java.math.BigInteger(... |
verified.put(entry.getName(), Boolean.TRUE); | jarfile.verified.put(entry.getName(), Boolean.TRUE); } | private void eof() throws IOException { if (checked) return; checked = true; for (int i = 0; i < md.length; i++) { byte[] hash = md[i].digest(); if (DEBUG) debug("verifying " + md[i].getAlgorithm() + " expect=" + new java.math.BigInteger(... |
JarEnumeration(Enumeration e) | JarEnumeration(Enumeration e, JarFile f) | JarEnumeration(Enumeration e) { entries = e; } |
jarfile = f; | JarEnumeration(Enumeration e) { entries = e; } | |
manifest = getManifest(); | manifest = jarfile.getManifest(); | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
if (!signaturesRead) | synchronized(jarfile) { if (!jarfile.signaturesRead) | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
readSignatures(); | jarfile.readSignatures(); | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
if (DEBUG) | if (JarFile.DEBUG) | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
debug(ioe); | JarFile.debug(ioe); | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
signaturesRead = true; | jarfile.signaturesRead = true; | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
if (entryCerts != null && verified.containsKey(zip.getName()) && ((Boolean) verified.get(zip.getName())).booleanValue()) | if (jarfile.entryCerts != null && jarfile.verified.get(zip.getName()) == Boolean.TRUE) | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
Set certs = (Set) entryCerts.get(jar.getName()); | Set certs = (Set) jarfile.entryCerts.get(jar.getName()); | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... |
} | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getNa... | |
private static void debug(Object msg) | static void debug(Object msg) | private static void debug(Object msg) { System.err.print(JarFile.class.getName()); System.err.print(" >>> "); System.err.println(msg); } |
return new JarEnumeration(super.entries()); | return new JarEnumeration(super.entries(), this); | public Enumeration entries() throws IllegalStateException { return new JarEnumeration(super.entries()); } |
public ZipEntry getEntry(String name) | public synchronized ZipEntry getEntry(String name) | public ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.attr = manife... |
if (entryCerts != null && verified.containsKey(name) && ((Boolean) verified.get(name)).booleanValue()) | if (entryCerts != null && verified.get(name) == Boolean.TRUE) | public ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.attr = manife... |
return new EntryInputStream(entry, super.getInputStream(entry)); | return new EntryInputStream(entry, super.getInputStream(entry), this); | public synchronized InputStream getInputStream(ZipEntry entry) throws ZipException, IOException { // If we haven't verified the hash, do it now. if (!verified.containsKey(entry.getName()) && verify) { if (DEBUG) debug("reading and verifying " + entry); return new EntryInputStream... |
if (!((Boolean) verified.get(entry.getName())).booleanValue()) | if (verify && verified.get(entry.getName()) == Boolean.FALSE) | public synchronized InputStream getInputStream(ZipEntry entry) throws ZipException, IOException { // If we haven't verified the hash, do it now. if (!verified.containsKey(entry.getName()) && verify) { if (DEBUG) debug("reading and verifying " + entry); return new EntryInputStream... |
public Manifest getManifest() throws IOException | public synchronized Manifest getManifest() throws IOException | public Manifest getManifest() throws IOException { if (!manifestRead) manifest = readManifest(); return manifest; } |
parent.removeFocusListener(this); parent.removeMouseListener(this); parent = null; | textComponent.removeFocusListener(this); textComponent.removeMouseListener(this); textComponent.removeMouseMotionListener(this); textComponent = null; | public void deinstall(JTextComponent c) { parent.removeFocusListener(this); parent.removeMouseListener(this); parent = null; } |
return blink; | return blinkRate; | public int getBlinkRate() { return blink; } |
return parent; | return textComponent; | protected final JTextComponent getComponent() { return parent; } |
return magic; | return magicCaretPosition; | public Point getMagicCaretPosition() { return magic; } |
parent.addFocusListener(this); parent.addMouseListener(this); parent = c; | textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); | public void install(JTextComponent c) { parent.addFocusListener(this); parent.addMouseListener(this); parent = c; repaint(); } |
return vis_sel; | return selectionVisible; | public boolean isSelectionVisible() { return vis_sel; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.