bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObj... | public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObject); if (node.isChildrenLoaded()) foundNodes.add(... | 3,239,645 |
public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { System.out.println("userObject "+userObj... | public void visit(TreeImageSet node) { Object userObject = node.getUserObject(); System.out.println("userObject "+node.getChildrenDisplay()); if ((userObject instanceof DatasetData) || (userObject instanceof CategoryData)) { if (node.isChildrenLoaded()) ... | 3,239,646 |
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); } | private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); } | 3,239,647 |
private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); } | private void buildGUI() { Container c = getContentPane(); c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); getContentPane().add(player, BorderLayout.CENTER); pack(); } | 3,239,648 |
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } ... | private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } ... | 3,239,649 |
private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } ... | private void init(ViewerCtrl control, int maxT, int maxZ, MovieSettings settings) { int max = maxT; int s = settings.getStartT(), e = settings.getEndT(); if (maxT == 0) { s = settings.getStartZ(); e = settings.getEndZ(); max = maxZ; } ... | 3,239,650 |
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = ser... | protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = ser... | 3,239,651 |
public CompileResult perform(String compiler, ArrayList arguments) { Debug.trace("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler ... | public CompileResult perform(String compiler, ArrayList arguments) { Debug.trace("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler ... | 3,239,652 |
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); this.compilationThread = null; if (!readSpec()) throw new IOException("Error readin... | public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); Thread compilationThread = null; if (!readSpec()) throw new IOException("Error read... | 3,239,653 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | 3,239,654 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | 3,239,655 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | 3,239,656 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | 3,239,657 |
private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | private CompilationJob collectJobsRecursive(XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren(); ArrayList ourclasspath = (ArrayList) classpath.clone(); ArrayList files = new ArrayList(); while (toplevel_tags.hasMore... | 3,239,658 |
public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); } | public void startThread() { Thread compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); } | 3,239,659 |
public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() this.compilationThread.start(); } | public void startThread() { this.compilationThread = new Thread(this, "compilation thread"); // will call this.run() compilationThread.start(); } | 3,239,660 |
public VariableSubstitutor(Map variables) { this.variables = variables; } | public VariableSubstitutor(Properties variables) { this.variables = variables; } | 3,239,661 |
public Pack( String name, String id, String description, List osConstraints, boolean required, boolean preselected) { this.name = name; this.id = id; this.description = description; this.osConstraints = osConstraints; this.required = required; this.preselected = preselected; n... | public Pack( String name, String id, String description, List osConstraints, boolean required, boolean preselected, boolean loose) { this.name = name; this.id = id; this.description = description; this.osConstraints = osConstraints; this.required = required; this.preselected = pr... | 3,239,662 |
public Destroyer(String installPath, boolean forceDestroy, AbstractUIProgressHandler handler) { super("IzPack - Destroyer"); this.installPath = installPath; this.forceDestroy = forceDestroy; this.handler = handler; } | public Destroyer( String installPath, boolean forceDestroy, AbstractUIProgressHandler handler) { super("IzPack - Destroyer"); this.installPath = installPath; this.forceDestroy = forceDestroy; this.handler = handler; } | 3,239,664 |
private void cleanup(File file) throws Exception { if (file.isDirectory()) { File[] files = file.listFiles(); int size = files.length; for (int i = 0; i < size; i++) cleanup(files[i]); file.delete(); } else if (forceDestroy) file.delete(); } | private void cleanup(File file) throws Exception { if (file.isDirectory()) { File[] files = file.listFiles(); int size = files.length; for (int i = 0; i < size; i++) cleanup(files[i]); file.delete(); } else if (forceDestroy) file.delete(); } | 3,239,665 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); ... | private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); ... | 3,239,666 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); ... | private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for (int i = 0; i < num; i++) { ExecutableFile file = (ExecutableFile)in.readObj... | 3,239,667 |
private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile)in.readObject(); ... | private ArrayList getExecutablesList() throws Exception { ArrayList executables = new ArrayList(); ObjectInputStream in = new ObjectInputStream(getClass().getResourceAsStream("/executables")); int num = in.readInt(); for(int i=0;i<num;i++) { ExecutableFile file = (ExecutableFile) in.readObject();... | 3,239,668 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | 3,239,669 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | 3,239,670 |
public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | public void run() { try { // We get the list of the files to delete ArrayList executables = getExecutablesList(); FileExecutor executor = new FileExecutor(executables); executor.executeFiles(ExecutableFile.UNINSTALL, this.handler); ArrayList files = getFilesList(); int size = file... | 3,239,671 |
public void doStop() { synchronized (this.stop) { this.stop = new Boolean(true); } } | public void doStop() { synchronized (this.stop) { this.stop = Boolean.valueOf(true); } } | 3,239,672 |
public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); if (!readSpec()) throw new IOException("Error reading processing specification")... | public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); if (!readSpec()) throw new IOException("Error reading processing specification"); } | 3,239,673 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | 3,239,674 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream(getClass().getResourceAsStream("/lib/kun... | 3,239,675 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | 3,239,676 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | 3,239,677 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | 3,239,678 |
public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | public WebKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); ZipInputStream skeleton_is = new ZipInputStream (getClass().getResourceAsStream("/lib/ku... | 3,239,679 |
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar ... | public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar ... | 3,239,680 |
public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar ... | public WebPackager(String outputFilename, PackagerListener plistener) throws Exception { packs = new ArrayList(); langpacks = new ArrayList(); setPackagerListener(plistener); sendStart(); // Sets up the zipped output stream FileOutputStream outFile = new FileOutputStream(outputFilename); outJar ... | 3,239,681 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | 3,239,682 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | 3,239,683 |
public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | public synchronized void returnObject(Object obj) throws Exception { _numActive--; if(_maxIdle > 0 && (_pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(obj)))) { try { _factory.passivateObject(obj); } catch(Exception e) { ; // i... | 3,239,684 |
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue;... | public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue;... | 3,239,685 |
public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue;... | public RegistryLogItem(int type, int root, String key, String valueName, RegDataContainer newValue, RegDataContainer oldValue) { this.type = type; this.root = root; this.key = key; this.valueName = valueName; this.newValue = newValue; this.oldValue = oldValue;... | 3,239,686 |
public boolean good() { return (worker != null ? true : false); } | public boolean good() { return (worker != null); } | 3,239,687 |
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; ... | protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; ... | 3,239,688 |
protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; ... | protected KeyedObjectPool makeEmptyPool(int mincapacity) { GenericKeyedObjectPool pool = new GenericKeyedObjectPool( new KeyedPoolableObjectFactory() { HashMap map = new HashMap(); public Object makeObject(Object key) { int counter = 0; ... | 3,239,689 |
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter ... | public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter ... | 3,239,690 |
public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter ... | public Object makeObject(Object key) { int counter = 0; Integer Counter = (Integer)(map.get(key)); if(null != Counter) { counter = Counter.intValue(); } map.put(key,new Integer(counter ... | 3,239,691 |
public void testMaxTotal() throws Exception { pool.setMaxActive(2); pool.setMaxTotal(3); pool.setWhenExhaustedAction(GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL); Object o1 = pool.borrowObject("a"); assertNotNull(o1); Object o2 = pool.borrowObject("a"); assertNotNull(... | public void testMaxTotal() throws Exception { pool.setMaxActive(2); pool.setMaxTotal(3); pool.setWhenExhaustedAction(GenericKeyedObjectPool.WHEN_EXHAUSTED_FAIL); Object o1 = pool.borrowObject("a"); assertNotNull(o1); Object o2 = pool.borrowObject("a"); assertNotNull(... | 3,239,692 |
public void testWithInitiallyInvalid() throws Exception { GenericKeyedObjectPool pool = new GenericKeyedObjectPool(new SimpleFactory(false)); pool.setTestOnBorrow(true); try { pool.borrowObject("xyzzy"); fail("Expected NoSuchElementException"); } catch(NoSuchElement... | public void testWithInitiallyInvalid() throws Exception { GenericKeyedObjectPool pool = new GenericKeyedObjectPool(new SimpleFactory(false)); pool.setTestOnBorrow(true); try { pool.borrowObject("xyzzy"); fail("Expected NoSuchElementException"); } catch(NoSuchElement... | 3,239,693 |
public synchronized int getNumIdle(Object key) { try { return((LinkedList)(_poolMap.get(key))).size(); } catch(Exception e) { return 0; } } | public synchronized int getNumIdle(Object key) { try { return((LinkedList)(_poolMap.get(key))).size(); } catch(Exception e) { return 0; } } | 3,239,694 |
public synchronized int getNumActive(Object key) { return getActiveCount(key); } | public synchronized int getNumActive(Object key) { return getActiveCount(key); } | 3,239,695 |
public synchronized void preparePool(Object key, boolean populateImmediately) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if (null == pool) { pool = new LinkedList(); _poolMap.put(key,pool); } if (populateImmediately) { try { ... | public synchronized void preparePool(Object key, boolean populateImmediately) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if (null == pool) { pool = new LinkedList(); _poolMap.put(key,pool); } if (populateImmediately) { try { ... | 3,239,696 |
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { return getTableCellRendererComponent(table, value, isSelected, false, row, column); } | public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { return getTableCellRendererComponent(table, value, isSelected, false, row, column); } | 3,239,697 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.g... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.g... | 3,239,698 |
protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints) { JLabel label = LabelFactory.create(parent.langpack.getString(msgId), parent.icons .getImageIcon(iconId), JLabel.TRAILING); if (layout != null && constraints !=... | protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints) { JLabel label = LabelFactory.create(parent.langpack.getString(msgId), parent.icons .getImageIcon(iconId), JLabel.TRAILING); if (layout != null && constraints !=... | 3,239,699 |
protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTable table = new JTable(); table.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); table.setIntercellSpacing(new Dimension(0, 0)); table.setBac... | protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTable table = new JTable(); table.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); table.setIntercellSpacing(new Dimension(0, 0)); table.setBac... | 3,239,700 |
protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints) { JPanel panel = new JPanel(); JLabel label = new JLabel(); if (label == null) label = new JLabel(""); panel.setAlignmentX(LEFT_ALIGNMENT); panel.setLayout(new B... | protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints) { JPanel panel = new JPanel(); JLabel label = new JLabel(); if (label == null) label = new JLabel(""); panel.setAlignmentX(LEFT_ALIGNMENT); panel.setLayout(new B... | 3,239,701 |
protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTextArea area = new JTextArea(); area.setMargin(new Insets(2, 2, 2, 2)); area.setAlignmentX(LEFT_ALIGNMENT); area.setCaretPosition(0); area... | protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) { JTextArea area = new JTextArea(); area.setMargin(new Insets(2, 2, 2, 2)); area.setAlignmentX(LEFT_ALIGNMENT); area.setCaretPosition(0); area... | 3,239,702 |
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe... | public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe... | 3,239,703 |
public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe... | public void panelActivate() { try { packsTable.setModel(new PacksModel(idata.availablePacks, idata.selectedPacks, this)); CheckBoxEditorRenderer packSelectedRenderer = new CheckBoxEditorRenderer(false); packsTable.getColumnModel().getColumn(0).setCellRenderer(packSe... | 3,239,704 |
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0... | public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0... | 3,239,705 |
public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0... | public void showFreeSpace() { if (IoHelper.supported("getFreeSpace") && freeSpaceLabel != null) { String msg = null; freeBytes = IoHelper.getFreeSpace(IoHelper.existingParent( new File(idata.getInstallPath())).getAbsolutePath()); if (freeBytes > 0... | 3,239,706 |
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_lau... | public LaunchInfo(String projectName, int launchType, Collection classNames, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; ... | 3,239,707 |
public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_lau... | public LaunchInfo(String projectName, int launchType, String className, Map groupMap, String suiteName, String complianceLevel, String logLevel) { m_projectName= projectName; m_lau... | 3,239,708 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; Map classMethods= null; Map parameters= null; parameters= getMapAttribute(con... | 3,239,709 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | 3,239,710 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | 3,239,711 |
public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | public static List getLaunchSuites(IJavaProject ijp, ILaunchConfiguration configuration) { int type = ConfigurationHelper.getType(configuration); List packages= null; List testClasses = null; List groups = null; List testMethods = null; Map parameters= null; parameters= getMapAttribute(co... | 3,239,712 |
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha... | public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha... | 3,239,713 |
public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha... | public static void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, LaunchInfo launchInfo) { final List EMPTY= new ArrayList(); Map classMethods= new HashMap(); Collection classes= launchInfo.m_groupMap.values(); if(null != classes) { for(Iterator it= classes.iterator(); it.ha... | 3,239,714 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Map methodNames, ... | 3,239,715 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | 3,239,716 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | 3,239,717 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | 3,239,718 |
public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | public static LaunchSuite createCustomizedSuite(final String projectName, final Collection packageNames, final Collection classNames, final Collection methodNames, ... | 3,239,719 |
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equ... | public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equ... | 3,239,720 |
public OpenTestAction(TestRunnerViewPart testRunner, String className, String method) { this(testRunner, className, method, true); } | public OpenTestAction(TestRunnerViewPart testRunner, String className, String method) { this(testRunner, className, method, true); } | 3,239,721 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy... | protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy... | 3,239,722 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy... | protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method = fuzz... | 3,239,723 |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy... | protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzy... | 3,239,724 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | 3,239,725 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | 3,239,726 |
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperc... | 3,239,727 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | 3,239,728 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | 3,239,729 |
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= t... | 3,239,730 |
public boolean isEnabled() { try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; } | public boolean isEnabled() { try { return getLaunchedProject().findType(getClassName()) != null; } catch (JavaModelException e) { } return false; } | 3,239,731 |
protected void reveal(ITextEditor textEditor) { if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); } | protected void reveal(ITextEditor textEditor) { if (fRange != null) textEditor.selectAndReveal(fRange.getOffset(), fRange.getLength()); } | 3,239,732 |
public void activateLogging() throws NativeLibException { return; } | public void activateLogging() throws NativeLibException { } | 3,239,733 |
public void addLoggingInfo(List info) throws NativeLibException { return; } | public void addLoggingInfo(List info) throws NativeLibException { } | 3,239,734 |
public void createKey(String key) throws NativeLibException { return; } | public void createKey(String key) throws NativeLibException { } | 3,239,735 |
public void deleteKey( String key) throws NativeLibException { return; } | public void deleteKey( String key) throws NativeLibException { } | 3,239,736 |
public void deleteKeyIfEmpty(String key) throws NativeLibException { return; } | public void deleteKeyIfEmpty(String key) throws NativeLibException { } | 3,239,737 |
public void deleteValue(String key, String value) throws NativeLibException { return; } | public void deleteValue(String key, String value) throws NativeLibException { } | 3,239,738 |
public void resetLogging() throws NativeLibException { return; } | public void resetLogging() throws NativeLibException { } | 3,239,739 |
public void rewind() throws NativeLibException { return; } | public void rewind() throws NativeLibException { } | 3,239,740 |
public void setLoggingInfo(List info) throws NativeLibException { return; } | public void setLoggingInfo(List info) throws NativeLibException { } | 3,239,741 |
public void setRoot(int i) throws NativeLibException { return; } | public void setRoot(int i) throws NativeLibException { } | 3,239,742 |
public void setValue(String key, String value, String contents) throws NativeLibException { return; } | public void setValue(String key, String value, String contents) throws NativeLibException { } | 3,239,743 |
public void suspendLogging() throws NativeLibException { return; } | public void suspendLogging() throws NativeLibException { } | 3,239,744 |
public SimpleFinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints ... | public SimpleFinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints ... | 3,239,746 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.