bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 14,399 |
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 14,400 |
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 14,401 |
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 14,402 |
private void start() throws Exception { log.entering("Main", "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting("Main", "start"); } | private void start() throws Exception { log.entering(this.getClass().getName(), "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting("Main", "start"); } | 14,403 |
private void start() throws Exception { log.entering("Main", "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting("Main", "start"); } | private void start() throws Exception { log.entering("Main", "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting(this.getClass().getName(), "start"); } | 14,404 |
private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | private void teardown() { log.entering(this.getClass().getName(), "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessControlle... | 14,405 |
private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | 14,406 |
private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | 14,407 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering(this.getClass().getName(), "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) {... | 14,408 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,409 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,410 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,411 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,412 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,413 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,414 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,415 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,416 |
void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 14,417 |
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | public ProfileHeader() { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int) (data[ICC... | 14,419 |
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | public ProfileHeader(byte[] data) { creatorSig = 0; intent = 0; modelSig = manufacturerSig = (int) 0x6E6f6E65; magic = icMagicNumber; cmmId = 0; platform = 0; timestamp = new byte[8]; majorVersion = 2; minorVersion = 0x10; flags = 0; // Get size (the sign bit shouldn't matter. // A valid profile can never... | 14,420 |
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 14,421 |
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 14,422 |
ICC_ProfileRGB(byte[] data) { super(data); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | ICC_ProfileRGB(int cspace) { super(data); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 14,423 |
ICC_ProfileRGB(byte[] data) { super(data); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | ICC_ProfileRGB(byte[] data) { super(cspace); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 14,424 |
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); } | ICC_ProfileGray(int cspace) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 14,425 |
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); } | ICC_ProfileGray(byte[] data) { super(cspace); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 14,426 |
protected void startDevice() throws DriverException { final Device device = getDevice(); try { final DeviceManager dm = (DeviceManager)InitialNaming.lookup(DeviceManager.NAME); dm.rename(device, getDevicePrefix(), true); } catch (DeviceAlreadyRegisteredException ex) { log.error("Cannot rename device", ex); }... | protected void startDevice() throws DriverException { final Device device = getDevice(); try { final DeviceManager dm = (DeviceManager)InitialNaming.lookup(DeviceManager.NAME); if (renameToDevicePrefixOnly()) { dm.rename(device, getDevicePrefix(), true); } else { dm.rename(device, getDevicePrefix() + "-" + devic... | 14,427 |
public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | 14,428 |
public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | 14,429 |
private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 14,430 |
private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 14,431 |
private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 14,432 |
private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 14,433 |
private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 14,434 |
protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | 14,435 |
protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | 14,436 |
protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | 14,437 |
protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | protected synchronized void freeDataBlock(long i) throws IOException, FileSystemException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i != blockCount-1) throw new IOException("Only the last block of the inode can be freed." + "You were trying to free bl... | 14,438 |
private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | 14,439 |
private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | 14,440 |
private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | 14,441 |
private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | 14,442 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,443 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,444 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,445 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,447 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,448 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,450 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 14,451 |
protected synchronized void update() throws IOException{ try{ if(dirty) { log.debug(" ** updating inode **"); desc.getINodeTable().writeInodeData( desc.getIndex(), data ); dirty=false; } }catch(FileSystemException fs) { throw new IOException(fs); } } | protected synchronized void update() throws IOException{ try{ if(dirty) { log.debug(" ** updating inode **"); desc.getINodeTable().writeInodeData( desc.getIndex(), data ); dirty=false; } }catch(FileSystemException fs) { throw new IOException(fs); } } | 14,452 |
protected final void handleStartTag(TagElement tag) { htmlAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startPos... | protected final void handleStartTag(TagElement tag) { SimpleAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startP... | 14,453 |
protected boolean removeEldestEntry(Map.Entry eldest) { if(size()>MAX_SIZE) { ((Block)eldest.getValue()).flush(); return true; } else return false; } | protected boolean removeEldestEntry(Map.Entry eldest) { if(size()>MAX_SIZE) { try{ ((Block)eldest.getValue()).flush(); CacheEvent event = new CacheEvent(eldest.getValue(),CacheEvent.REMOVED); Iterator listeners=cacheListeners.iterator(); while(listeners.hasNext()) { ((CacheListener)listeners.next()).elementRemoved... | 14,454 |
public Object next() { //log.debug("next: offset=" + offset); if (nextEntry == null) { //log.debug("next: islast"); throw new NoSuchElementException(); } else { final IndexEntry result = nextEntry; final int size = nextEntry.getSize(); //lo... | public IndexEntry next() { //log.debug("next: offset=" + offset); if (nextEntry == null) { //log.debug("next: islast"); throw new NoSuchElementException(); } else { final IndexEntry result = nextEntry; final int size = nextEntry.getSize(); ... | 14,455 |
public final Class getCategory() { return RequestingUserName.class; } | public Class getCategory() { return RequestingUserName.class; } | 14,456 |
public final String getName() { return "requesting-user-name"; } | public String getName() { return "requesting-user-name"; } | 14,457 |
public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | 14,458 |
public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; Container currentParent = parent; if (currentParent != null) { currentParent.invalidate(); currentParent.repaint(); } ComponentEvent ce = new ComponentEvent(th... | 14,459 |
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... | public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... | 14,460 |
protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { throw new Error("not implemented"); } | protected void fireDragGestureRecognized(int dragAction, Point p) { throw new Error("not implemented"); } | 14,462 |
protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { throw new Error("not implemented"); } | protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { if(dragGestureListener != null) dragGestureListener.dragGestureRecognized (new DragGestureEvent(this, dragAction, p, events)); } | 14,463 |
public void resetRecognizer() throws NotImplementedException { throw new Error("not implemented"); } | public void resetRecognizer() throws NotImplementedException { events = new ArrayList(); } | 14,464 |
public JFormattedTextField getTextField() { return null; } /* TODO */ | public JFormattedTextField getTextField() { return null; } /* TODO */ | 14,466 |
public void layoutContainer(Container parent) { } /* TODO */ | public void layoutContainer(Container parent) { Insets insets = getInsets(); Dimension size = getSize(); ftf.setBounds(insets.left, insets.top, size.width - insets.left - insets.right, size.height - insets.top - insets.bottom); } /* TODO */ | 14,467 |
public Dimension minimumLayoutSize(Container parent) { return null; } /* TODO */ | public Dimension minimumLayoutSize(Container parent) { return null; } /* TODO */ | 14,468 |
public Dimension preferredLayoutSize(Container parent) { return null; } /* TODO */ | public Dimension preferredLayoutSize(Container parent) { return null; } /* TODO */ | 14,469 |
protected JComponent createEditor(SpinnerModel model) { return new StubEditor(this); } /* TODO */} | protected JComponent createEditor(SpinnerModel model) { return new StubEditor(this); } /* TODO */} | 14,470 |
public void compose(Raster src, Raster dstIn, WritableRaster dstOut) { // TODO: This implementation is very general and highly inefficient. There // are two possible ways to optimize this: // 1. Special cased implementations for common ColorModels and transfer // types. // 2. Native implementation.... | public void compose(Raster src, Raster dstIn, WritableRaster dstOut) { // TODO: This implementation is very general and highly inefficient. There // are two possible ways to optimize this: // 1. Special cased implementations for common ColorModels and transfer // types. // 2. Native implementation.... | 14,473 |
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 14,474 |
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 14,475 |
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); } | public int hashCode () { // FIXME: Check what SUN calculates here. long hashCode = Double.doubleToLongBits(get(position())) + 31; long multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (Double.doubleToLongBits(get(i)) + 30)*multiplier; } return ((int)hashCode); } | 14,476 |
final public static DoubleBuffer wrap (double[] array, int offset, int length) { return new DoubleBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | public static final DoubleBuffer wrap (double[] array, int offset, int length) { return new DoubleBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | 14,477 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNex... | 14,478 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | 14,479 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | 14,480 |
public synchronized 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 n... | 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; Ext... | 14,481 |
public synchronized 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; ... | 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... | 14,482 |
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; } | protected Thread getCurrentWriter() { // FIXME: Implement locking! return currentWriter; } | 14,484 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | 14,485 |
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); } | public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); Element[] added = new Element[1]; added[0] = root.getElement(start); boolean shouldFire = content... | 14,489 |
public Component getTopComponentAt(int x, int y) { Component comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.... | public Component getTopComponentAt(int x, int y) { Component comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.... | 14,494 |
protected Item cloneConstant() { return createConst(getValue()); } | protected WordItem cloneConstant() { return createConst(getValue()); } | 14,495 |
public static long[] read(InputStream input) { LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value; } | public static long[] read(InputStream input) { LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value; } | 14,496 |
public static void write(OutputStream output, long[] value) { LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output); } | public static void write(OutputStream output, long[] value) { LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output); } | 14,497 |
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl... | protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl... | 14,498 |
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(true); } | protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); } | 14,499 |
public abstract boolean addPermission(Permission permission); | boolean addPermission(Permission permission); | 14,502 |
public abstract boolean checkPermission(Permission permission); | boolean checkPermission(Permission permission); | 14,503 |
public abstract Principal getPrincipal(); | Principal getPrincipal(); | 14,504 |
public abstract boolean isNegative(); | boolean isNegative(); | 14,505 |
public abstract Enumeration permissions(); | Enumeration permissions(); | 14,506 |
public abstract boolean removePermission(Permission perm); | boolean removePermission(Permission perm); | 14,507 |
public abstract void setNegativePermissions(); | void setNegativePermissions(); | 14,508 |
public abstract boolean setPrincipal(Principal user); | boolean setPrincipal(Principal user); | 14,509 |
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | 14,510 |
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | public Object evaluate(Node context, int pos, int len) Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); ... | 14,511 |
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | 14,512 |
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | 14,513 |
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); } | public BufferCapabilities getBufferCapabilities() { throw new Error("not implemented"); } | 14,514 |
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); } | public BufferCapabilities getBufferCapabilities() throws NotImplementedException { if (imageCapabilities == null) getImageCapabilities(); if (bufferCapabilities == null) bufferCapabilities = new BufferCapabilities(imageCapabilities, imageCapabilities, null); return bufferCapabilities; } | 14,515 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.