bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); } } | public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange("enabled", !this.enabled, this.enabled); } } | 6,294 |
protected final JTextComponent getFocusedComponent() { return null; // TODO } | protected final JTextComponent getFocusedComponent() { KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component focused = kfm.getPermanentFocusOwner(); JTextComponent textComp = null; if (focused instanceof JTextComponent) textComp = (JTextComponent) focused; return textComp; // T... | 6,295 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | 6,297 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | 6,298 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | 6,299 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen... | 6,300 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat... | 6,302 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa... | 6,303 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter.clear(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeNa... | 6,305 |
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... | 6,307 |
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa... | private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa... | 6,308 |
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | 6,309 |
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | 6,310 |
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | 6,311 |
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } | public String getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } | 6,312 |
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } | public DataFormat getDatatype() { return (String) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } | 6,313 |
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ... | private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ... | 6,314 |
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); } | public String setDatatype(String strDatatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); } | 6,315 |
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); } | public DataFormat setDatatype(DataFormat datatype) { if (Utility.isValidDatatype(strDatatype)) return (String) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(strDatatype); else return null; } | 6,316 |
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith... | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith... | 6,317 |
public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); } | public void shutdownOutput() throws IOException { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); } | 6,318 |
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font... | public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font... | 6,320 |
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... | public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) ... | 6,321 |
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... | public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... | 6,323 |
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G... | public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G... | 6,324 |
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r... | public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println(" bi = null "); lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g... | 6,325 |
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this... | public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) { // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); th... | 6,329 |
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this... | public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this... | 6,330 |
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina... | public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina... | 6,332 |
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel... | public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel... | 6,334 |
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out... | 6,335 |
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | 6,336 |
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... | 6,337 |
public static boolean interrupted() { return currentThread().isInterrupted(); } | public static boolean interrupted() { VmThread current = VmThread.currentThread(); if (current != null) { return current.isInterrupted(true); } else { return false; } } | 6,338 |
public boolean isInterrupted() { return vmThread.isInterrupted(); } | public boolean isInterrupted() { return vmThread.isInterrupted(false); } | 6,339 |
public Dimension getPreferredScrollableViewportSize() { return preferredScrollableViewportSize; } | public Dimension getPreferredScrollableViewportSize() { return preferredViewportSize; } | 6,341 |
protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); ... | protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); ... | 6,342 |
public void setPreferredScrollableViewportSize(Dimension p) { preferredScrollableViewportSize = p; revalidate(); repaint(); } | public void setPreferredScrollableViewportSize(Dimension p) { preferredViewportSize = p; revalidate(); repaint(); } | 6,343 |
void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element... | void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element... | 6,344 |
public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); } | public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); } | 6,345 |
public int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); } | public synchronized int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); } | 6,347 |
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); } | public synchronized int getFreeInodesCount() { return Ext2Utils.get16(data, 14); } | 6,348 |
public int getUsedDirsCount() { return Ext2Utils.get16(data, 16); } | public synchronized int getUsedDirsCount() { return Ext2Utils.get16(data, 16); } | 6,349 |
public void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); } | public synchronized void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); } | 6,350 |
public void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); } | public synchronized void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); } | 6,351 |
public void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); } | public synchronized void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); } | 6,352 |
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); } | public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); } | 6,353 |
public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //chec... | public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //chec... | 6,354 |
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } | protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } | 6,355 |
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } | protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } | 6,356 |
protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } } | protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } } | 6,357 |
protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } } | protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } } | 6,358 |
protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptors(); superblock.update(); } | protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptor(); superblock.update(); } | 6,359 |
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } | RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) { super(subIndex); this.options = options; this.negative = negative; } | 6,360 |
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } | RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); options = new Vector(); this.negative = negative; } | 6,361 |
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); XMLDeclaration xmlDecl = new XMLDeclaration(); DocumentType doctype = new DocumentType(xdf); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("c... | 6,363 |
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | 6,364 |
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | 6,365 |
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | 6,366 |
public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copyed"); } | public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copied"); } | 6,367 |
private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.t... | private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.t... | 6,368 |
public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, new Boolean(b)); } | public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, Boolean.valueOf(b)); } | 6,369 |
public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, new Boolean(b)); } | public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, Boolean.valueOf(b)); } | 6,370 |
public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, new Boolean(b)); } | public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, Boolean.valueOf(b)); } | 6,371 |
public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, new Boolean(b)); } | public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, Boolean.valueOf(b)); } | 6,372 |
public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, new Boolean(b)); } | public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, Boolean.valueOf(b)); } | 6,373 |
public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, new Boolean(b)); } | public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, Boolean.valueOf(b)); } | 6,374 |
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... | 6,376 |
public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); ... | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); ... | 6,377 |
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | public void mousePressed(MouseEvent event) { // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // implemented (in regard to text compone... | 6,378 |
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 6,379 |
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 6,380 |
public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 6,381 |
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(... | public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(... | 6,382 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJDialog(); return accessibleContext; } | 6,383 |
protected EditorKit createDefaultEditorKit() { return null; // TODO } // createDefaultEditorKit() | protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); // TODO } // createDefaultEditorKit() | 6,384 |
protected String paramString() { return null; // TODO } // paramString() | protected String paramString() { return super.paramString(); // TODO } // paramString() | 6,385 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,389 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,390 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,391 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,392 |
protected void resolve() { // Do nothing } | protected void resolve(PluginRegistryModel registry) { // Do nothing } | 6,393 |
protected void unresolve() { // Do nothing } | protected void unresolve(PluginRegistryModel registry) { // Do nothing } | 6,394 |
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | public static IKeyPairCodec getInstance(String name) if (name == null) return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) result = new DSSKeyPairRawCodec(); } else if ... | 6,395 |
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); else if... | 6,396 |
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 6,397 |
public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 6,398 |
public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } | public static synchronized final Set getNames() { return KeyPairGeneratorFactory.getNames(); } | 6,399 |
public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } | public static final Set getNames() { if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.X509_ENCODING_SORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.PKCS8_ENCODING_SHORT_NAME); hs.add(Registry.RSA_KPG +... | 6,400 |
public Object clone() throws CloneNotSupportedException { return super.clone(); } | public Object clone() throws CloneNotSupportedException { BasePRNG result = (BasePRNG) super.clone(); if (this.buffer != null) result.buffer = (byte[])this.buffer.clone(); return result; } | 6,401 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | 6,402 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,403 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,404 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,405 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,406 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,407 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 6,408 |
public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | public void dump(PrintStream stream, int indent) { StringBuffer b = new StringBuffer(); for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | 6,409 |
public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | 6,410 |
protected Content getContent() { return content; } | protected Content getContent() { return content; } | 6,411 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.