rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (token.equals("U")) | if ("U".equals(token)) | public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java |
if (!className.equals("") && !process) | if (!"".equals(className) && !process) | private void setFields(String data) { StringTokenizer tokenizer = new StringTokenizer(data); String token; String indexString; int index; boolean process = false; String[] vals = null; int i = 0; vals = new String[tokenizer.countTokens()]; while (tok... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java |
if (!className.equals("")) | if (!"".equals(className)) | private void setFields(String data) { StringTokenizer tokenizer = new StringTokenizer(data); String token; String indexString; int index; boolean process = false; String[] vals = null; int i = 0; vals = new String[tokenizer.countTokens()]; while (tok... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java |
; | private void setFields(String data) { StringTokenizer tokenizer = new StringTokenizer(data); String token; String indexString; int index; boolean process = false; String[] vals = null; int i = 0; vals = new String[tokenizer.countTokens()]; while (tok... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/clean/src/lib/com/izforge/izpack/panels/RuleInputField.java | |
public StdPackager(String outputFilename, PackagerListener plistener) throws Exception | public StdPackager(String outputFilename, PackagerListener plistener) throws Exception | public StdPackager(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 ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
writeSkeletonInstaller (outJar); | writeSkeletonInstaller(outJar); | public StdPackager(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 ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
} catch (ZipException zerr) | } catch (ZipException zerr) | public void addJarContent(String file) throws Exception { sendMsg("Adding a jar file content ..."); JarFile jar = new JarFile(file); Enumeration entries = jar.entries(); while (entries.hasMoreElements()) { // Puts a new entry ZipEntry zentry = (ZipEntry) entries.nextElement(); try ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception | public ZipOutputStream addPack( int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception | public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
Pack pack = new Pack(name, description, osConstraints, required, preselected); | Pack pack = new Pack(name, description, osConstraints, required, preselected); | public ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
public void addPanelClass(String classFilename, InputStream input) throws Exception | public void addPanelClass(String classFilename, InputStream input) throws Exception | public void addPanelClass(String classFilename, InputStream input) throws Exception { sendMsg("Adding the (sub)classes for " + classFilename + " ..."); outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); copyStream(input, outJar); outJar.closeEntry(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); | outJar.putNextEntry( new ZipEntry("com/izforge/izpack/panels/" + classFilename)); | public void addPanelClass(String classFilename, InputStream input) throws Exception { sendMsg("Adding the (sub)classes for " + classFilename + " ..."); outJar.putNextEntry(new ZipEntry("com/izforge/izpack/panels/" + classFilename)); copyStream(input, outJar); outJar.closeEntry(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
return true; | return true; | public boolean allowPackFileBackReferences() { return true; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); | ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); | public void setPanelsOrder(ArrayList order) throws Exception { sendMsg("Setting the panels order ..."); outJar.putNextEntry(new ZipEntry("panelsOrder")); ObjectOutputStream objOut = new ObjectOutputStream(outJar); objOut.writeObject(order); objOut.flush(); outJar.closeEntry(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdPackager.java/clean/src/lib/com/izforge/izpack/compiler/StdPackager.java |
if (em.equals("functionFailed.RegOpenKeyEx")) { return (false); } | if (em.equals("functionFailed.RegOpenKeyEx") || em.equals("functionFailed.RegQueryValueEx")) { return (false); } | public boolean valueExist(String key, String value) throws NativeLibException { try { this.getValue(currentRoot, key, value); } catch (NativeLibException ne) { String em = ne.getLibMessage(); if (em.equals("functionFailed.RegOpenKeyEx")) { retur... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/ec544a764f5db6b6f0d08629afd6bc6a191c5e13/RegistryImpl.java/clean/src/lib/com/coi/tools/os/win/RegistryImpl.java |
temp.append(aStringList.get(idx) + "\n"); | temp.append(aStringList.get(idx)).append("\n"); | public static String stringArrayListToString(ArrayList aStringList) { StringBuffer temp = new StringBuffer(); for (int idx = 0; idx < aStringList.size(); idx++) { temp.append(aStringList.get(idx) + "\n"); } return temp.toString(); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/StringTool.java/buggy/src/lib/com/izforge/izpack/util/StringTool.java |
wipeAborted(); | public void windowClosing(WindowEvent e) { // We show an alert anyway if (!installdata.canClose) JOptionPane.showMessageDialog(null, langpack.getString("installer.quit.message"), langpack.getString("installer.warning"), ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/24ab501f4d8488467fd8b63b1057fcc96217b3bf/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java | |
wipeAborted(); | public void exit() { if (installdata.canClose) { // Everything went well writeUninstallData(); Housekeeper.getInstance ().shutDown (0); } else { // The installation is not over int res = JOptionPane.showConfirmDialog(this, ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/24ab501f4d8488467fd8b63b1057fcc96217b3bf/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java | |
public void activateObject(Object obj) { } | public void activateObject(Object obj) throws Exception { if (exceptionOnActivate) { if (!(validateCounter++%2 == 0 ? evenValid : oddValid)) { throw new Exception(); } } } | public void activateObject(Object obj) { } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/32caf7c554aea378c0cd19f096295176c8695402/TestGenericObjectPool.java/buggy/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java |
void setThrowExceptionOnPassivate(boolean bool) { | public void setThrowExceptionOnPassivate(boolean bool) { | void setThrowExceptionOnPassivate(boolean bool) { exceptionOnPassivate = bool; } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/32caf7c554aea378c0cd19f096295176c8695402/TestGenericObjectPool.java/buggy/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java |
public boolean validateObject(Object obj) { return validateCounter++%2 == 0 ? evenValid : oddValid; } | public boolean validateObject(Object obj) { if (enableValidation) { return validateCounter++%2 == 0 ? evenValid : oddValid; } else { return true; } } | public boolean validateObject(Object obj) { return validateCounter++%2 == 0 ? evenValid : oddValid; } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/32caf7c554aea378c0cd19f096295176c8695402/TestGenericObjectPool.java/buggy/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java |
assertNotNull(obj); | public void testSetFactoryWithActiveObjects() throws Exception { GenericObjectPool pool = new GenericObjectPool(); pool.setMaxIdle(10); pool.setFactory(new SimpleFactory()); Object obj = pool.borrowObject(); try { pool.setFactory(null); fail("Expected Illegal... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/32caf7c554aea378c0cd19f096295176c8695402/TestGenericObjectPool.java/buggy/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java | |
paramList.add("-cp=" + file.toString()); | paramList.add("-cp " + file.toString()); | public int executeFiles(int currentStage, AbstractUIHandler handler) { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e6916b0aec158418014d45d6e2e42c1c7b118e5a/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java |
String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); | if (activeField != null) { String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); | public void caretUpdate(CaretEvent event) { String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); if ((!inputFields.l... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e379bca3b699c2188efebed999375b18f7071ab3/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java |
if ((!inputFields.lastElement().equals(activeField)) && (!activeField.unlimitedEdit())) { if ((text.length() == fieldSize) && (selection == 0) && (caretPosition == fieldSize) && !backstep) | if ((!inputFields.lastElement().equals(activeField)) && (!activeField.unlimitedEdit())) | public void caretUpdate(CaretEvent event) { String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); if ((!inputFields.l... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e379bca3b699c2188efebed999375b18f7071ab3/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java |
activeField.transferFocus(); | if ((text.length() == fieldSize) && (selection == 0) && (caretPosition == fieldSize) && !backstep) { activeField.transferFocus(); } | public void caretUpdate(CaretEvent event) { String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); if ((!inputFields.l... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e379bca3b699c2188efebed999375b18f7071ab3/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java |
{ } | {} | private void setFields(String data) { StringTokenizer tokenizer = new StringTokenizer(data); String token; String indexString; int index; boolean process = false; String[] vals = null; int i = 0; vals = new String[tokenizer.countTokens()]; while (tok... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/e379bca3b699c2188efebed999375b18f7071ab3/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java |
textArea = new JTextArea(licence); | JTextArea textArea = new JTextArea(licence); | public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = LabelFactory.creat... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
scroller = new JScrollPane(textArea); | JScrollPane scroller = new JScrollPane(textArea); | public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // We load the licence loadLicence(); // We put our components JLabel infoLabel = LabelFactory.creat... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java |
buf.append("Active: ").append(numActive()).append("\n"); buf.append("Idle: ").append(numIdle()).append("\n"); | buf.append("Active: ").append(getNumActive()).append("\n"); buf.append("Idle: ").append(getNumIdle()).append("\n"); | synchronized String debugInfo() { StringBuffer buf = new StringBuffer(); buf.append("Active: ").append(numActive()).append("\n"); buf.append("Idle: ").append(numIdle()).append("\n"); Iterator it = _poolList.iterator(); while(it.hasNext()) { buf.append("\t").append(_pool... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; | public void returnObject(Object key, Object obj) throws Exception { | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(key); | CursorableLinkedList pool = null; synchronized(this) { pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key, pool); _poolList.add(key); } | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
Integer active = (Integer)(_activeMap.get(key)); if(null == active) { } else if(active.intValue() <= 1) { _activeMap.remove(key); | boolean success = true; if((_testOnReturn && !_factory.validateObject(key, obj))) { success = false; try { _factory.destroyObject(key, obj); } catch(Exception e) { } | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
_activeMap.put(key,new Integer(active.intValue() - 1)); | try { _factory.passivateObject(key, obj); } catch(Exception e) { success = false; } | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
if(_maxIdle > 0 && (pool.size() >= _maxIdle || (_testOnReturn && !_factory.validateObject(key,obj)))) { try { _factory.passivateObject(key,obj); } catch(Exception e) { ; | boolean shouldDestroy = false; synchronized(this) { _totalActive--; Integer active = (Integer)(_activeMap.get(key)); if(null == active) { } else if(active.intValue() <= 1) { _activeMap.remove(key); } else { _activeMap.put(key, new Integer(active.intValue() - 1)); | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
_factory.destroyObject(key,obj); } else { try { _factory.passivateObject(key,obj); | if(_maxIdle > 0 && (pool.size() >= _maxIdle)) { shouldDestroy = true; } else if(success) { | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java |
_factory.destroyObject(key,obj); | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java | |
notifyAll(); | public synchronized void returnObject(Object key, Object obj) throws Exception { _totalActive--; CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); _poolMap.put(key,pool); _poolList.add(ke... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/ac68a2836421b5fa4c13cdecd2ff7031f8c49bd6/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java | |
syncSlider(); | public void actionPerformed(ActionEvent e) { if (frameNumber <= max && frameNumber >= startMovie && frameNumber <= endMovie && playing) { renderImage(frameNumber); switch (movieType) { case Player.LOOP: handleLoop(); break; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/307b46abefd43070ad77e63095c151223a982ae5/PlayerManager.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/movie/PlayerManager.java | |
syncSlider(); | public void pause() { playing = false; pause = true; syncSlider(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/307b46abefd43070ad77e63095c151223a982ae5/PlayerManager.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/movie/PlayerManager.java | |
up = true; syncSlider(); | up = true; | public void stop() { timer.stop(); playing = false; pause = false; up = true; syncSlider(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/307b46abefd43070ad77e63095c151223a982ae5/PlayerManager.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/movie/PlayerManager.java |
if (text == null) text = langpack.getString("installer.quit"); quitButton.setText(text); | String text1 = text; if (text1 == null) text1 = langpack.getString("installer.quit"); quitButton.setText(text1); | public void setQuitButtonText(String text) { if (text == null) text = langpack.getString("installer.quit"); quitButton.setText(text); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
if (fullCleanup == null || !fullCleanup.equalsIgnoreCase("no")) | if (fullCleanup == null || !"no".equalsIgnoreCase(fullCleanup)) | protected void wipeAborted() { Iterator it; // We set interrupt to all running Unpacker and wait 40 sec for maximum. // If interrupt is discarded (return value false), return immediately: if (!Unpacker.interruptAll(40000)) return; // Wipes them all in 2 stages UninstallD... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
if (key.equals("__uninstallLibs__")) | if ("__uninstallLibs__".equals(key)) | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // W... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
else if (key.equals("uninstallerListeners") || key.equals("uninstallerJars")) | else if ("uninstallerListeners".equals(key) || "uninstallerJars".equals(key)) | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // W... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
return new GenericKeyedObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_maxTotal,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); | return new GenericKeyedObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_maxTotal,_minIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); | public KeyedObjectPool createPool() { return new GenericKeyedObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_maxTotal,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); } | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/cac3e9bf504f5c9299e1d37535c1b3cb67dc7166/GenericKeyedObjectPoolFactory.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.java |
error.toString(), | error, | public void errorUnpack(String error) { this.packOpLabel.setText(error); idata.installSuccess = false; JOptionPane.showMessageDialog( this, error.toString(), parent.langpack.getString("installer.error"), JOptionPane.ERROR_MESSAGE); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java |
copy.model = this.model; | public RenderingDef copy() { RenderingDef copy = new RenderingDef(); copy.defaultZ = this.defaultZ; copy.defaultT = this.defaultT; copy.qDef = this.qDef.copy(); ChannelBindings[] cb = new ChannelBindings[channelBindings.length]; for (int i = 0; i < channelBindings.length; i++) cb[i] = channelBindings[i].copy()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingDef.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/RenderingDef.java | |
return new QuantumDef(family, pixelType, curveCoefficient, cdStart, cdEnd, bitResolution); | return new QuantumDef(pixelType, cdStart, cdEnd, bitResolution, noiseReduction); | QuantumDef copy() { return new QuantumDef(family, pixelType, curveCoefficient, cdStart, cdEnd, bitResolution); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/QuantumDef.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/defs/QuantumDef.java |
super(title); | super(title); | public InstallerFrame(String title, InstallData installdata) throws Exception { super(title); guiListener = new ArrayList(); visiblePanelMapping = new ArrayList(); this.installdata = installdata; this.langpack = installdata.langpack; // Sets the window events handler ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
protected void loadConditions() { | protected void loadConditions() { | protected void loadConditions() { try { InputStream input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { // there seem to be no conditions return; } StdXMLParser parser = new StdXMLParser(); parser.set... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
InputStream input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { return; | InputStream input = null; input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { this.rules = new RulesEngine(null,installdata); return; | protected void loadConditions() { try { InputStream input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { // there seem to be no conditions return; } StdXMLParser parser = new StdXMLParser(); parser.set... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
Debug.log(e.getMessage()); e.printStackTrace(); | Debug.trace("Can not find optional resource " + CONDITIONS_SPECRESOURCENAME); this.rules = new RulesEngine(null,installdata); | protected void loadConditions() { try { InputStream input = this.getResource(CONDITIONS_SPECRESOURCENAME); if (input == null) { // there seem to be no conditions return; } StdXMLParser parser = new StdXMLParser(); parser.set... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/bbb22dc9cbe26e32540414e5f1a113931118b944/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java |
c.createCriteria("defaultPixels",LEFT_JOIN); | Criteria pix = c.createCriteria("defaultPixels",LEFT_JOIN); pix.createCriteria("pixelsType",LEFT_JOIN); pix.createCriteria("pixelsDimensions",LEFT_JOIN); | protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Image.class); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.createCriteria("defaultPixels",LEFT_JOIN); // Add restrictions to the most distan... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b8f8feca610352c631ee8c28d8b9b7279652be1b/PojosGetImagesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosGetImagesQueryDefinition.java |
in = this.getClass().getResourceAsStream(resourcePath); | in = ResourceManager.class.getResourceAsStream(resourcePath); | private String getLanguageResourceString(String resource) throws ResourceNotFoundException { InputStream in; String resourcePath = this.resourceBasePath + resource + "_" + this.locale; in = this.getClass().getResourceAsStream(resourcePath); if (in != null) return resourcePath; else { // i... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/ResourceManager.java/clean/src/lib/com/izforge/izpack/installer/ResourceManager.java |
in = this.getClass().getResourceAsStream(resourcePath); | in = ResourceManager.class.getResourceAsStream(resourcePath); | private String getLanguageResourceString(String resource) throws ResourceNotFoundException { InputStream in; String resourcePath = this.resourceBasePath + resource + "_" + this.locale; in = this.getClass().getResourceAsStream(resourcePath); if (in != null) return resourcePath; else { // i... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/ResourceManager.java/clean/src/lib/com/izforge/izpack/installer/ResourceManager.java |
QuantumDef qDef = new QuantumDef(QuantumFactory.LINEAR, pixelType, 1, 0, QuantumFactory.DEPTH_8BIT, QuantumFactory.DEPTH_8BIT); | QuantumDef qDef = new QuantumDef(pixelType, 0, QuantumFactory.DEPTH_8BIT, QuantumFactory.DEPTH_8BIT, QuantumFactory.NOISE_REDUCTION); | private RenderingDef createDefaultRenderingDef(PixelsDimensions dims, PixelsStats stats, int pixelType) { QuantumDef qDef = new QuantumDef(QuantumFactory.LINEAR, pixelType, 1, 0, QuantumFactory.DEPTH_8BIT, QuantumFactory.DEPTH_8BIT); ChannelBindings[] waves = new ChannelBindings[dims.s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
wGlobal = stats.getGlobalEntry(w); rgb = setDefaultColor(w); waves[w] = new ChannelBindings(w, wGlobal.getGlobalMin(), wGlobal.getGlobalMax(), rgb[0], rgb[1], rgb[2], 255, false); | wGlobal = stats.getGlobalEntry(w); rgb = setDefaultColor(w); waves[w] = new ChannelBindings(w, wGlobal.getGlobalMin(), wGlobal.getGlobalMax(), rgb[0], rgb[1], rgb[2], 255, false, QuantumFactory.LINEAR, 1); | private RenderingDef createDefaultRenderingDef(PixelsDimensions dims, PixelsStats stats, int pixelType) { QuantumDef qDef = new QuantumDef(QuantumFactory.LINEAR, pixelType, 1, 0, QuantumFactory.DEPTH_8BIT, QuantumFactory.DEPTH_8BIT); ChannelBindings[] waves = new ChannelBindings[dims.s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
if (renderingDef == null) | boolean isNull = false; if (renderingDef == null) { isNull = true; | private void initialize(MetadataSource source) { //Grab pixels metadata (create default display options if //none available). omeisPixelsID = source.getOmeisPixelsID(); pixelsDims = source.getPixelsDims(); pixelsStats = source.getPixelsStats(); renderingDef = source.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
source.getPixelType()); | source.getPixelType()); } | private void initialize(MetadataSource source) { //Grab pixels metadata (create default display options if //none available). omeisPixelsID = source.getOmeisPixelsID(); pixelsDims = source.getPixelsDims(); pixelsStats = source.getPixelsStats(); renderingDef = source.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
quantumManager.initStrategies(qd, pixelsStats, renderingDef.getChannelBindings()); | private void initialize(MetadataSource source) { //Grab pixels metadata (create default display options if //none available). omeisPixelsID = source.getOmeisPixelsID(); pixelsDims = source.getPixelsDims(); pixelsStats = source.getPixelsStats(); renderingDef = source.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java | |
ChannelBindings[] cBindings= renderingDef.getChannelBindings(); StatsComputer.computeStats(dataSink, source, cBindings, getDefaultPlaneDef(), isNull); quantumManager.initStrategies(qd, pixelsStats, cBindings); | private void initialize(MetadataSource source) { //Grab pixels metadata (create default display options if //none available). omeisPixelsID = source.getOmeisPixelsID(); pixelsDims = source.getPixelsDims(); pixelsStats = source.getPixelsStats(); renderingDef = source.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java | |
rgb[0] = 0; rgb[1] = 0; rgb[2] = 255; | rgb[0] = ChannelBindings.COLOR_MIN; rgb[1] = ChannelBindings.COLOR_MIN; rgb[2] = ChannelBindings.COLOR_MAX; | private int[] setDefaultColor(int w) { int[] rgb = new int[3]; if (w == 0) { //blue rgb[0] = 0; rgb[1] = 0; rgb[2] = 255; } else if (w == 1) { //green rgb[0] = 0; rgb[1] = 255; rgb[2] = 0; } else { //red rgb[0] = 255; rgb[1] = 0; rgb[2] = 0; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
rgb[0] = 0; rgb[1] = 255; rgb[2] = 0; | rgb[0] = ChannelBindings.COLOR_MIN; rgb[1] = ChannelBindings.COLOR_MAX; rgb[2] = ChannelBindings.COLOR_MIN; | private int[] setDefaultColor(int w) { int[] rgb = new int[3]; if (w == 0) { //blue rgb[0] = 0; rgb[1] = 0; rgb[2] = 255; } else if (w == 1) { //green rgb[0] = 0; rgb[1] = 255; rgb[2] = 0; } else { //red rgb[0] = 255; rgb[1] = 0; rgb[2] = 0; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
rgb[0] = 255; rgb[1] = 0; rgb[2] = 0; | rgb[0] = ChannelBindings.COLOR_MAX; rgb[1] = ChannelBindings.COLOR_MIN; rgb[2] = ChannelBindings.COLOR_MIN; | private int[] setDefaultColor(int w) { int[] rgb = new int[3]; if (w == 0) { //blue rgb[0] = 0; rgb[1] = 0; rgb[2] = 255; } else if (w == 1) { //green rgb[0] = 0; rgb[1] = 255; rgb[2] = 0; } else { //red rgb[0] = 255; rgb[1] = 0; rgb[2] = 0; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java |
for (i = 0; i < size; i++) availablePacks.add(objIn.readObject()); | ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (null == pk.os || os.toLowerCase().indexOf(pk.os.toLowerCase()) > -1) availablePacks.add(pk); } | private void loadInstallData() throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = n... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Installer.java/buggy/src/lib/com/izforge/izpack/installer/Installer.java |
String os = System.getProperty("os.name"); | private void loadInstallData() throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = n... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Installer.java/buggy/src/lib/com/izforge/izpack/installer/Installer.java | |
textArea.setText(info.toString()); | textArea.setText(info); | public void panelActivate() { // Text handling loadInfo(); parseText(); // UI handling textArea.setText(info.toString()); textArea.setCaretPosition(0); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/XInfoPanel.java/clean/src/lib/com/izforge/izpack/panels/XInfoPanel.java |
case TYPE_AT: | protected String escapeSpecialChars(String str, int type) { StringBuffer buffer; int len; int i; switch (type) { case TYPE_PLAIN: case TYPE_SHELL: return str; case TYPE_JAVA_PROPERTIES: buffer = new StringBuffer(str); len = str.length(); for (i ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/23a2028deb19509c4385e365eef9660c7315a6fe/VariableSubstitutor.java/buggy/src/lib/com/izforge/izpack/installer/VariableSubstitutor.java | |
idata.getVariableValueMap ().setVariable (variable, trueValue); | idata.setVariable (variable, trueValue); | private boolean readCheckBox (Object [] field) { String variable = null; String trueValue = null; String falseValue = null; JCheckBox box = null; try { box = (JCheckBox)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; trueValue = (String... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, falseValue); | idata.setVariable(variable, falseValue); | private boolean readCheckBox (Object [] field) { String variable = null; String trueValue = null; String falseValue = null; JCheckBox box = null; try { box = (JCheckBox)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; trueValue = (String... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, value); | idata.setVariable(variable, value); | private boolean readComboBox (Object [] field) { String variable = null; String value = null; JComboBox comboBox = null; try { variable = (String)field [POS_VARIABLE]; comboBox = (JComboBox)field [POS_FIELD]; value = ((TextValuePair)comboBox.getSelectedItem ()).getValue (); ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, group.getPassword ()); | idata.setVariable(variable, group.getPassword ()); | private boolean readPasswordField (Object [] field) { PasswordGroup group = null; String variable = null; String message = null; try { group = (PasswordGroup)field [POS_GROUP]; variable = (String)field [POS_VARIABLE]; message = (String)field... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, value); | idata.setVariable (variable, value); | private boolean readRadioButton (Object [] field) { String variable = null; String value = null; JRadioButton button = null; try { button = (JRadioButton)field [POS_FIELD]; if (!button.isSelected ()) { return (true); } variable = (String)field [POS_VARIABLE... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, ruleField.getText ()); | idata.setVariable (variable, ruleField.getText ()); | private boolean readRuleField (Object [] field) { RuleInputField ruleField = null; String variable = null; try { ruleField = (RuleInputField)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; } catch (Throwable exception) { return (true); } if ((variable... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, value); | idata.setVariable(variable, value); | private boolean readSearch (Object [] field) { String variable = null; String value = null; JComboBox comboBox = null; try { variable = (String)field [POS_VARIABLE]; comboBox = (JComboBox)field [POS_FIELD]; for (int i = 0; i < this.searchFields.size(); ++i) { SearchFiel... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
idata.getVariableValueMap ().setVariable (variable, value); | idata.setVariable(variable, value); | private boolean readTextField (Object [] field) { JTextField textField = null; String variable = null; String value = null; try { textField = (JTextField)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; value = textField.getText (); } catch (Throwab... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java |
else uninstaller[0].add( ul ); | uninstaller[0].add( ul ); | private List [] getListenerLists() throws Exception { ArrayList [] uninstaller = new ArrayList[] {new ArrayList(),new ArrayList()}; // Load listeners if exist InputStream in; ObjectInputStream objIn; in = getClass().getResourceAsStream("/uninstallerListeners"); if( in != null ) { objIn = ne... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/0a51150e3cd01a825af97d254087ae3b6dac6205/Destroyer.java/buggy/src/lib/com/izforge/izpack/uninstaller/Destroyer.java |
d.setVisible(true); | UIUtilities.centerAndShow(d); | public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } Editor editor = model.getEditor(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bfed2063c1c7e290a2c934f62443f1300b6ed76b/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
if (!url.getProtocol().equals("jar")) return null; | if (!"jar".equals(url.getProtocol())) return null; | public static File findJarFile(Class clazz) { String resource = clazz.getName().replace('.', '/') + ".class"; URL url = ClassLoader.getSystemResource(resource); if (!url.getProtocol().equals("jar")) return null; String path = url.getFile(); // starts at "file:..." (use getPath(... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelfModifier.java/clean/src/lib/com/izforge/izpack/uninstaller/SelfModifier.java |
|| !params[0].getComponentType().getName().equals("java.lang.String")) | || !"java.lang.String".equals(params[0].getComponentType().getName())) | private void initMethod(Method method) { int mod = method.getModifiers(); if ((mod & Modifier.PUBLIC) == 0 || (mod & Modifier.STATIC) == 0) throw new IllegalArgumentException("Method not public and static"); Class[] params = method.getParameterTypes(); if (params.length != ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/SelfModifier.java/clean/src/lib/com/izforge/izpack/uninstaller/SelfModifier.java |
if (!target.equalsIgnoreCase("xml")) | if (!"xml".equalsIgnoreCase(target)) | protected void processPI() throws Exception { XMLUtil.skipWhitespace(this.reader, '&', null, null); String target = XMLUtil.scanIdentifier(this.reader, '&', this.entityResolver); XMLUtil.skipWhitespace(this.reader, '&', null, null); Reader reader = new ContentReader(this.reader, this.... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/StdXMLParser.java/clean/src/lib/net/n3/nanoxml/StdXMLParser.java |
return; | protected void processSpecialTag(boolean allowCDATA) throws Exception { char ch = XMLUtil.read(this.reader, null, '&', this.entityResolver); switch (ch) { case '[': if (allowCDATA) { this.processCDATA(); } else { ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/StdXMLParser.java/clean/src/lib/net/n3/nanoxml/StdXMLParser.java | |
if( !(izPackDir.endsWith("/") ) ) izPackDir += "/"; | public void setIzPackDir(String izPackDir) { this.izPackDir = izPackDir; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/7dc3b59f3634d8eeb05612ed71392136dbb0f39d/IzPackTask.java/clean/src/lib/com/izforge/izpack/ant/IzPackTask.java | |
public ZipOutputStream addPack(int packNumber, String name, boolean required, | public ZipOutputStream addPack(int packNumber, String name, String targetOs, boolean required, | public ZipOutputStream addPack(int packNumber, String name, boolean required, String description) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name, description, required); packs.add(pa... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/WebPackager.java/buggy/src/lib/com/izforge/izpack/compiler/WebPackager.java |
Pack pack = new Pack(name, description, required); | Pack pack = new Pack(name, description, targetOs, required); | public ZipOutputStream addPack(int packNumber, String name, boolean required, String description) throws Exception { sendMsg("Adding pack #" + packNumber + " : " + name + " ..."); // Adds it in the packs array Pack pack = new Pack(name, description, required); packs.add(pa... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/WebPackager.java/buggy/src/lib/com/izforge/izpack/compiler/WebPackager.java |
log.debug("User successfully authorized."); | public void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { final HttpServletRequest request = (HttpServletRequest) servletRequest; final HttpServletResponse re... | 52448 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52448/44b8c865864662f073d1d0354ed13fe96341004e/AuthorizationFilter.java/buggy/cas-client-core/src/main/java/org/jasig/cas/client/web/filter/AuthorizationFilter.java | |
if (config.evictInvalidFrequencyMillis > 0 && config.evictIdleMillis > config.evictInvalidFrequencyMillis) { | if (config.evictInvalidFrequencyMillis > 0 && config.evictIdleMillis < config.evictInvalidFrequencyMillis) { | private static Lender getLender(final FactoryConfig config) { final BorrowPolicy borrowPolicy = config.borrowPolicy; Lender lender; if (config.maxIdle != 0) { if (BorrowPolicy.FIFO.equals(borrowPolicy)) { lender = new FifoLender(); } else if (BorrowPolicy.LI... | 50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/7839ec6d3ef0aef3c516f62c5dd26f2f30a1ac28/CompositeObjectPoolFactory.java/clean/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java |
final Experimenter exp = localAdmin.lookupExperimenter(p.getName()); | final Experimenter exp = localAdmin.userProxy(p.getName()); | public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if (ec == null) throw new InternalException( "EventContext is null in EventContext. Invalid configuration."); if... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e17e319299999d5f384efd834d4873a29017e572/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java |
List<Long> memberOfGroupsIds = exp .eachLinkedExperimenterGroup(new IdBlock()); | List<Long> memberOfGroupsIds = localAdmin.getMemberOfGroupIds(exp); | public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if (ec == null) throw new InternalException( "EventContext is null in EventContext. Invalid configuration."); if... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e17e319299999d5f384efd834d4873a29017e572/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java |
public ShellLink (int type, String name) throws Exception, IllegalArgumentException { if ((type < MIN_TYPE) || (type > MAX_TYPE) ) { throw (new IllegalArgumentException ("the type parameter used an illegal value")); } if (name == null) { throw (new IllegalArg... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java | ||
if (GetLinkPath (linkType) != SL_OK) | int result = GetLinkPath (linkType); if (result != SL_OK) | private void get () throws Exception { if (GetArguments () != SL_OK) { throw (new Exception ("could not get arguments")); } if (GetDescription () != SL_OK) { throw (new Exception ("could not get description")); } if (GetHotkey () != SL_OK) { throw (new Exception ("could not get... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
throw (new Exception ("could not get link path")); | if (result == SL_WRONG_DATA_TYPE) { throw (new Exception ("could not get link path, registry returned unexpected data type")); } else { throw (new Exception ("could not get link path")); } | private void get () throws Exception { if (GetArguments () != SL_OK) { throw (new Exception ("could not get arguments")); } if (GetDescription () != SL_OK) { throw (new Exception ("could not get description")); } if (GetHotkey () != SL_OK) { throw (new Exception ("could not get... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
private void get () throws Exception { if (GetArguments () != SL_OK) { throw (new Exception ("could not get arguments")); } if (GetDescription () != SL_OK) { throw (new Exception ("could not get description")); } if (GetHotkey () != SL_OK) { throw (new Exception ("could not get... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java | ||
linkDirectory = null; | linkDirectory = ""; | public void save () throws Exception { // set all values on the native side set (); // make sure the target actually resolves int result = Resolve (); if (result != SL_OK) { throw (new Exception ("cannot resolve target")); } // make sure the directory exists File directory = new Fi... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
result = saveLink (saveTo); | result = saveLink (saveTo); | public void save () throws Exception { // set all values on the native side set (); // make sure the target actually resolves int result = Resolve (); if (result != SL_OK) { throw (new Exception ("cannot resolve target")); } // make sure the directory exists File directory = new Fi... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/80e14fc27a7fb67b4c5101aace4a3e9167e551e3/ShellLink.java/clean/src/lib/com/izforge/izpack/util/os/ShellLink.java |
installButton.setIcon(parent.icons.getImageIcon("empty")); | public void stopUnpack() { parent.releaseGUI(); parent.lockPrevButton(); parent.unlockNextButton(); installButton.setEnabled(false); progressBar.setString(parent.langpack.getString("InstallPanel.finished")); progressBar.setEnabled(false); opLabel.setText(""); ... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/24ab501f4d8488467fd8b63b1057fcc96217b3bf/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java | |
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java | ||
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java | ||
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java | ||
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))... | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.