rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void setFlags(long flags) { | public synchronized void setFlags(long flags) { | public void setFlags(long flags) { Ext2Utils.set32(data, 32, flags); setDirty(true); } |
public void setGeneration(long gen) { | public synchronized void setGeneration(long gen) { | public void setGeneration(long gen) { Ext2Utils.set32(data, 100, gen); setDirty(true); } |
public void setGid(int gid) { | public synchronized void setGid(int gid) { | public void setGid(int gid) { Ext2Utils.set16(data, 24, gid); setDirty(true); } |
public void setLinksCount(int lc) { | public synchronized void setLinksCount(int lc) { | public void setLinksCount(int lc) { Ext2Utils.set16(data, 26, lc); setDirty(true); } |
public void setMode(int imode) { | public synchronized void setMode(int imode) { | public void setMode(int imode) { Ext2Utils.set16(data, 0, imode); setDirty(true); } |
public void setMtime(long mtime) { | public synchronized void setMtime(long mtime) { | public void setMtime(long mtime) { Ext2Utils.set32(data, 16, mtime); setDirty(true); } |
public void setOSD1(long osd1) { | public synchronized void setOSD1(long osd1) { | public void setOSD1(long osd1) { Ext2Utils.set32(data, 36, osd1); setDirty(true); } |
public void setSize(long size) { | public synchronized void setSize(long size) { | public void setSize(long size) { Ext2Utils.set32(data, 4, size); setDirty(true); } |
public void setUid(int uid) { | public synchronized void setUid(int uid) { | public void setUid(int uid) { Ext2Utils.set16(data, 2, uid); setDirty(true); } |
int red = (value & RED_MASK) >> 16; int green = (value & GREEN_MASK) >> 8; int blue = value & BLUE_MASK; red = red < 3 ? 3 : (int) Math.min(255, red / BRIGHT_SCALE); green = green < 3 ? 3 : (int) Math.min(255, green / BRIGHT_SCALE); blue = blue < 3 ? 3 : (int) Math.min(255, blue / BRIGHT_SCALE); return new Color(red, ... | int[] hues = new int[3]; hues[0] = (value & RED_MASK) >> 16; hues[1] = (value & GREEN_MASK) >> 8; hues[2] = value & BLUE_MASK; if (hues[0] == 0 && hues[1] == 0 && hues[2] ==0) { hues[0] = 3; hues[1] = 3; hues[2] = 3; | public Color brighter() { // Do not inline getRGB() to this.value, because of SystemColor. int value = getRGB(); int red = (value & RED_MASK) >> 16; int green = (value & GREEN_MASK) >> 8; int blue = value & BLUE_MASK; // We have to special case 0-2 because they won't scale by division. red = red... |
else { for (int index = 0; index < 3; index++) { if (hues[index] > 2) hues[index] = (int) Math.min(255, hues[index]/0.7f); if (hues[index] == 1 || hues[index] == 2) hues[index] = 4; } } return new Color(hues[0], hues[1], hues[2], 255); } | public Color brighter() { // Do not inline getRGB() to this.value, because of SystemColor. int value = getRGB(); int red = (value & RED_MASK) >> 16; int green = (value & GREEN_MASK) >> 8; int blue = value & BLUE_MASK; // We have to special case 0-2 because they won't scale by division. red = red... | |
public VolumeDescriptor( ISO9660Volume volume, byte[] buffer) throws IOException { this.volume = volume; init(buffer); } | public VolumeDescriptor(ISO9660Volume volume, byte[] buff) throws IOException { this.volume = volume; this.type = LittleEndian.getUInt8(buff, 0); this.standardIdentifier = new String(buff, 1, 5); this.systemIdentifier = new String(buff, 8, 31); this.volumeIdentifier = new String(buff, 40, 31); this.volumeSetIdentifier ... | public VolumeDescriptor( ISO9660Volume volume, byte[] buffer) throws IOException { this.volume = volume; init(buffer); } |
public int getNumberOfLB() { return numberOfLB; } | public long getNumberOfLB() { return numberOfLB; } | public int getNumberOfLB() { return numberOfLB; } |
public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.out.pri... | public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.out.pri... | public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.o... |
final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); | final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... |
int ePos = screen.getRowColFromPoint(workR.width , workR.height ); | int ePos = screen.getRowColFromPoint(workR.width + 1 , workR.height + 1 ); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... |
filledSlider = UIManager.getBoolean(SLIDER_FILL); | public MetalSliderUI() { super(null); } | |
row = 0; sb = new StringBuffer(); | public void createFileInstance(String fileName) throws FileNotFoundException { fout = new ZipOutputStream(new FileOutputStream(fileName)); fout.setMethod(ZipOutputStream.DEFLATED); writeManifestEntry(); } | |
VirtualStack vstack, X86RegisterPool pool) { | VirtualStack vstack, X86RegisterPool pool, ItemFactory ifac) { | EmitterContext(AbstractX86Stream os, X86CompilerHelper helper, VirtualStack vstack, X86RegisterPool pool) { this.os = os; this.helper = helper; this.vstack = vstack; this.pool = pool; } |
this.itemfac = ifac; | EmitterContext(AbstractX86Stream os, X86CompilerHelper helper, VirtualStack vstack, X86RegisterPool pool) { this.os = os; this.helper = helper; this.vstack = vstack; this.pool = pool; } | |
X86CompilerHelper getHelper() { | final X86CompilerHelper getHelper() { | X86CompilerHelper getHelper() { return helper; } |
X86RegisterPool getPool() { | final X86RegisterPool getPool() { | X86RegisterPool getPool() { return pool; } |
AbstractX86Stream getStream() { | final AbstractX86Stream getStream() { | AbstractX86Stream getStream() { return os; } |
VirtualStack getVStack() { | final VirtualStack getVStack() { | VirtualStack getVStack() { return vstack; } |
bad.minor = Minor.Any; | public static WrongAdapter extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (WrongAdapter) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("WrongAdapter expected"); bad... | |
ic.imageComplete(ImageConsumer.SINGLEFRAME); | ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE); | public void startProduction(ImageConsumer ic) { if (! (consumers.contains(ic))) consumers.addElement(ic); Vector list = (Vector) consumers.clone(); for (int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture(ic); if (animated) ic.imageComplete(ImageConsumer.SINGLE... |
throw new BAD_OPERATION(); | BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; | public static AlreadyBound extract(Any a) { try { return ((AlreadyBoundHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } } |
bad.minor = Minor.Any; | public static InvalidName extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (InvalidName) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("InvalidName expected"); bad.in... | |
AxisReadOrder.add(AxisObj.get(attrs.getValue(i))); | AxisReadOrder.add(0, AxisObj.get(attrs.getValue(i))); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // for node sets the iteration order for how we will setData // in the datacube (important for delimited and formatted reads). int size = attrs.getLength(); for (int i = 0; i < size; i++) {... |
newparameter = CurrentArray.addParameter(newparameter); | newparameter = (Parameter) CurrentArray.addParameter(newparameter); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM... |
newparameter = CurrentStructure.addParameter(newparameter); | newparameter = (Parameter) CurrentStructure.addParameter(newparameter); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM... |
newparameter = ((Array) LastParameterGroupParentObject).addParameter(newparameter); | newparameter = (Parameter) ((Array) LastParameterGroupParentObject).addParameter(newparameter); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM... |
newparameter = ((Structure) LastParameterGroupParentObject).addParameter(newparameter); | newparameter = (Parameter) ((Structure) LastParameterGroupParentObject).addParameter(newparameter); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM... |
CurrentStructure = XDF; | setCurrentStructure(XDF); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // The root node is just a "structure" node, // but is always the first one. XDF.setXMLAttributes(attrs); // set XML attributes from passed list CurrentStructure = XDF; // current working structure... |
private Array appendArrayToArray (Array arrayToAppendTo, Array arrayToAdd) { | private ArrayInterface appendArrayToArray ( ArrayInterface arrayToAppendTo, ArrayInterface arrayToAdd ) { | private Array appendArrayToArray (Array arrayToAppendTo, Array arrayToAdd) { if (arrayToAppendTo != null) { List origAxisList = arrayToAppendTo.getAxes(); List addAxisList = arrayToAdd.getAxes(); Hashtable correspondingAddAxis = new Hashtable(); Hashtable correspon... |
public Array getCurrentArray () { | public ArrayInterface getCurrentArray () { | public Array getCurrentArray () { return CurrentArray; } |
public Structure getCurrentStructure () { | public StructureInterface getCurrentStructure () { | public Structure getCurrentStructure () { return CurrentStructure; } |
XDF = new Structure(); | XDF = new XDF(); | private void init () { // set up logging, needed ?? Log.configure("XDFLogConfig"); // assign/init 'globals' (e.g. object fields) XDF = new Structure(); Options = new Hashtable(); startElementHandlerHashtable = new Hashtable(); // start node handler charDataHandlerHashtable... |
public void setCurrentArray(Array array) { | private void setCurrentArray(ArrayInterface array) { | public void setCurrentArray(Array array) { CurrentArray = array; } |
public void setCurrentDatatypeObject(Object object) { | private void setCurrentDatatypeObject(Object object) { | public void setCurrentDatatypeObject(Object object) { CurrentDatatypeObject = object; } |
public void setCurrentStructure (Structure structure) { | private void setCurrentStructure (StructureInterface structure) { | public void setCurrentStructure (Structure structure) { CurrentStructure = structure; } |
super(n, e); | this(Registry.RAW_ENCODING_ID, n, e); | public GnuRSAPublicKey(final BigInteger n, final BigInteger e) { // super(n); super(n, e); // // this.e = e; } |
throw new IllegalArgumentException("format"); | throw new IllegalArgumentException("Unsupported encoding format: " + format); | public byte[] getEncoded(final int format) { final byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new RSAKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("format"); } return result; } |
final IKeyPairCodec codec = new RSAKeyPairRawCodec(); return (GnuRSAPublicKey) codec.decodePublicKey(k); | return (GnuRSAPublicKey) new RSAKeyPairRawCodec().decodePublicKey(k); | public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte... |
else | catch (IllegalArgumentException ignored) | public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte... |
throw new IllegalArgumentException("magic"); | public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte... | |
return (GnuRSAPublicKey) new RSAKeyPairX509Codec().decodePublicKey(k); | public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte... | |
if (inf == null) throw new IOException("stream closed"); | public int available() throws IOException { return inf.finished() ? 0 : 1; } | |
int len = 2048; if (n < len) len = (int) n; byte[] tmp = new byte[len]; return (long) read(tmp); | if (n == 0) return 0; int buflen = (int) Math.min(n, 2048); byte[] tmpbuf = new byte[buflen]; long skipped = 0L; while (n > 0L) { int numread = read(tmpbuf, 0, buflen); if (numread <= 0) break; n -= numread; skipped += numread; buflen = (int) Math.min(n, 2048); } return skipped; | public long skip(long n) throws IOException { if (n < 0) throw new IllegalArgumentException(); int len = 2048; if (n < len) len = (int) n; byte[] tmp = new byte[len]; return (long) read(tmp); } |
System.out.print("\n Buffer Dump of data from AS400: "); | log.info("\n Buffer Dump of data from AS400: "); | public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ... |
System.out.println("Cannot dump from host\n\r"); | log.warn("Cannot dump from host\n\r"); | public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ... |
log.debug("partial stream found"); | private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ... | |
log.debug("partial stream saved"); | private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ... | |
System.out.println("load stream error " + ex.getMessage()); | log.warn("load stream error " + ex.getMessage()); | private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ... |
System.out.println(" run() " + ioef.getMessage()); | log.warn(" run() " + ioef.getMessage()); | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ... |
System.out.println(" DataStreamProducer thread interrupted and stopping "); | log.warn(" DataStreamProducer thread interrupted and stopping "); | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ... |
log.warn(ioe.getMessage()); | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ... | |
System.out.println(ex.getMessage()); | log.warn(ex.getMessage()); | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ... |
getThread.yield(); | Thread.yield(); | public void run() { Socket socket = null; DataInputStream datainputstream = null; String localFileFull = localFileF; executeCommand("TYPE","I"); try { socket = createPassiveSocket("RETR " + remoteFileF); if(socket != null) { ... |
public StackManagerImpl(X86RegisterPool pool) { | public StackManagerImpl(X86RegisterPool pool, ItemFactory ifac) { | public StackManagerImpl(X86RegisterPool pool) { this.pool = pool; } |
this.ifac = ifac; | public StackManagerImpl(X86RegisterPool pool) { this.pool = pool; } | |
final Item item = WordItem.createReg(jvmType, reg); | final Item item = ifac.createReg(jvmType, reg); | public void writePUSH(int jvmType, Register reg) { final Item item = WordItem.createReg(jvmType, reg); Item.assertCondition(pool.request(reg, item), "request"); push(item); } |
final Item item; switch (jvmType) { case JvmType.LONG: item = LongItem.createReg(lsbReg, msbReg); break; case JvmType.DOUBLE: item = DoubleItem.createReg(lsbReg, msbReg); break; default: throw new IllegalArgumentException("Unknown JvmType " + jvmType); } | final Item item = ifac.createReg(jvmType, lsbReg, msbReg); | public void writePUSH64(int jvmType, Register lsbReg, Register msbReg) { final Item item; switch (jvmType) { case JvmType.LONG: item = LongItem.createReg(lsbReg, msbReg); break; case JvmType.DOUBLE: item = DoubleItem.createReg(lsbReg, msbReg); break; default: throw new IllegalArgumentExceptio... |
final AbstractX86StackManager createStackMgr(X86RegisterPool pool) { return new StackManagerImpl(pool); | final AbstractX86StackManager createStackMgr(X86RegisterPool pool, ItemFactory ifac) { return new StackManagerImpl(pool, ifac); | final AbstractX86StackManager createStackMgr(X86RegisterPool pool) { return new StackManagerImpl(pool); } |
final void pushAll(TypeStack tstack) { | final void pushAll(ItemFactory ifac, TypeStack tstack) { | final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack.... |
final Item item = VirtualStack.createStack(type); | final Item item = ifac.createStack(type); | final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack.... |
m.minor = Minor.UserException; | public TypeCode type() { InputStream in = null; try { OutputStream out = _request("_get_type", true); in = _invoke(out); return TypeCodeHelper.read(in); } catch (ApplicationException ex) { in = ex.getInputStream(); throw new org.omg.CORBA.MARSHAL(ex.getId())... | |
return uiClassID; | return "ComboBoxUI"; | public String getUIClassID() { return uiClassID; } |
firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); | firePropertyChange("editable", ! isEditable, isEditable); | public void setEditable(boolean editable) { if (isEditable != editable) { isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } } |
firePropertyChange(EDITOR_CHANGED_PROPERTY, oldEditor, editor); | firePropertyChange("editor", oldEditor, editor); | public void setEditor(ComboBoxEditor newEditor) { if (editor == newEditor) return; if (editor != null) editor.removeActionListener(this); ComboBoxEditor oldEditor = editor; editor = newEditor; if (editor != null) editor.addActionListener(this); firePropertyChange(EDITOR_CHANGED_PROPE... |
firePropertyChange(ENABLED_CHANGED_PROPERTY, oldEnabled, (boolean) enabled); | firePropertyChange("enabled", oldEnabled, enabled); | public void setEnabled(boolean enabled) { boolean oldEnabled = super.isEnabled(); if (enabled != oldEnabled) { super.setEnabled(enabled); firePropertyChange(ENABLED_CHANGED_PROPERTY, oldEnabled, (boolean) enabled); } } |
firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, | firePropertyChange("maximumRowCount", | public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = maximumRowCount; maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, maximumRowCount); } } |
firePropertyChange(MODEL_CHANGED_PROPERTY, oldDataModel, dataModel); | firePropertyChange("model", oldDataModel, dataModel); | public void setModel(ComboBoxModel newDataModel) { // dataModel is null if it this method is called from inside the constructors. if(dataModel != null) { // Prevents unneccessary updates. if (dataModel == newDataModel) return; // Removes itself (as DataListener) from the to-be-replaced model. dat... |
firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, | firePropertyChange("renderer", oldRenderer, | public void setRenderer(ListCellRenderer aRenderer) { if (renderer != aRenderer) { ListCellRenderer oldRenderer = renderer; renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, renderer); } } |
Unsafe.debug(nr); Unsafe.debug(address); | public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberUti... | |
final String state = " (" + Unsafe.getCurrentProcessor().getCurrentThread().getReadableErrorState() + ")"; | final VmThread current = Unsafe.getCurrentProcessor().getCurrentThread(); final String state = " (" + current.getReadableErrorState() + ")"; current.setInSystemException(); | public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberUti... |
if (sm != null) { | if (sm != null) | private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } } |
} | private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } } | |
protected void resolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); | protected void resolve(PluginRegistryModel registry) throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) registry.getExtensionPoint(point); | protected void resolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); if (ep == null) { throw new PluginException("Unknown extension-point " + point); } else { ep.add(this); } } |
protected void unresolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); | protected void unresolve(PluginRegistryModel registry) throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) registry.getExtensionPoint(point); | protected void unresolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); if (ep == null) { throw new PluginException("Unknown extension-point " + point); } else { ep.remove(this); } } |
helper.writeGetStaticsEntry(curInstrLabel, resultr, (VmIsolatedStaticsEntry)sf); | final GPR tmp = (GPR) L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false); helper.writeGetStaticsEntry(curInstrLabel, resultr, (VmIsolatedStaticsEntry) sf, tmp); L1AHelper.releaseRegister(eContext, tmp); | public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis... |
lock(position, size, shared, true); | lock(position, size, shared, false); | public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (... |
writeOut(outputstream, "<for axisIdRef=\""+axis.getAxisId()+"\">"); | writeOut(outputstream, "<for axisIdRef=\""); writeOutAttribute(outputstream, axis.getAxisId()); writeOut(outputstream, "\">"); | protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { ArrayList axisIds = new ArrayList (); int numberOfAxes = 0; synchronized (parentArray) { List axisList = parentArray.getAxisList(); Iterator iter = axisList.iterator(); while(iter.hasNext()) { ... |
CurrentArray.getDataCube().setEndByte(null); } | public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute ... | |
} | public int columnAtPoint(Point point) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).getWidth() + (gap == null... | |
if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.sto... | public void editingCanceled (ChangeEvent event) { repaint(); } | |
if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = ... | public void editingStopped (ChangeEvent event) { repaint(); } | |
} | public int rowAtPoint(Point point) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return... | |
if (rowHeight < 1) | if (r < 1) | public void setRowHeight(int r) { if (rowHeight < 1) throw new IllegalArgumentException(); rowHeight = r; revalidate(); repaint(); } |
if (!isCellEditable(row, column)) return; if (value instanceof Component) add((Component)value); | public void setValueAt(Object value, int row, int column) { dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); } | |
private void closeDialog() | void closeDialog() | private void closeDialog() { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).dispose(); } |
private void filterEntries() | void filterEntries() | private void filterEntries() { FileFilter[] list = filechooser.getChoosableFileFilters(); if (filters.getItemCount() > 0) filters.removeAllItems(); int index = -1; String selected = filechooser.getFileFilter().getDescription(); for (int i = 0; i < list.length; i++) { if (selected.equals(list... |
AttributeSet atts = data[0].getAttributes(); | AttributeSet atts = child.getAttributes(); | private void createFracture(ElementSpec[] data) { BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element child = paragraph.getElement(index); Edit edit = getEditForParagraphAndIndex(paragraph, index); AttributeSet... |
int index = paragraph.getElementIndex(offset); | int index = paragraph.getElementIndex(pos); | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
int newEndOffset = offset + first.length; | int newEndOffset = pos + first.length; | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
if (offset != 0) | if (pos != 0) | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
offset); | pos); | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
offset, next.getEndOffset()); | pos, next.getEndOffset()); | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
offset, newEndOffset); offset = newEndOffset; | pos, newEndOffset); pos = newEndOffset; | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
if (current.getStartOffset() != offset) | if (current.getStartOffset() != pos) | private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.